agentsclimarketplace

Daw security sast

Skill luckypadua/Gestion-de-vacaciones-daw/.claude/skills/daw-security-sast

Static Application Security Testing (SAST). Scans the code for security vulnerabilities. A BLOCKING GATE — you cannot advance to VERIFY with open vulnerabilities. Trigger: /daw-security-sast, during DAW's CODE phase.From its SKILL.md

Install
npx -y skills add luckypadua/Gestion-de-vacaciones-daw --skill daw-security-sast

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.9 KB, as published. Nobody here has run it

Skill: /daw-security-sast

Description

Static Application Security Testing (SAST). Scans the code for security vulnerabilities. BLOCKING GATE — you cannot advance to the VERIFY phase with open vulnerabilities.

Inputs

  • The files modified during implementation.
  • .daw/rules/security.instructions.md for the practices.
  • .daw/rules/validation-rules.instructions.md §4 for the rules (F-SAST-01 to F-SAST-19, W-SAST-01) — the single source of truth for severity and disposition.
  • The project's stack: the "Stack" section of AGENTS.md.

Execution Protocol

  1. Scan for hardcoded secrets (F-SAST-01, always Critical):

    • Look for API key, password, token and connection string patterns.
    • Check that .env is in .gitignore.
    • Look for sensitive files that should not be in the repo.
  2. Scan for injection patterns:

    • SQL/NoSQL: string concatenation in queries; user objects passed straight into queries (F-SAST-02, Critical).
    • Command injection: user input reaching exec/spawn/system (F-SAST-03, Critical).
    • Path traversal: user input in file paths (F-SAST-05, High).
  3. Scan for XSS (F-SAST-06, High):

    • innerHTML, dangerouslySetInnerHTML with user input.
    • Missing sanitization on HTML output.
  4. Scan for unsafe functions and broken crypto:

    • eval(), exec(), insecure deserialization (F-SAST-04 Critical / F-SAST-17 Medium, depending on whether the input is controlled).
    • Weak crypto: MD5/SHA1 for passwords, DES, ECB mode (F-SAST-08, High).
  5. Scan the rest of the mandatory categories: SSRF (F-SAST-07), debug mode in production (F-SAST-09), logging of sensitive data (F-SAST-10), unrestricted upload (F-SAST-11), missing CSRF protection (F-SAST-12). Then the two Medium code categories, which the scan protocol used to skip past entirely: incomplete input validation (F-SAST-14) and error handling that leaks internals (F-SAST-15).

  6. Audit dependencies (F-SAST-13/16):

    • Run the package manager's audit if available (npm audit, pip audit, cargo audit, etc.).
    • Check for known CVEs.
  7. Classify the findings and apply the catalog's disposition:

    • 🔴 Critical and 🟠 High → FAIL, always blocking, not suppressible.
    • 🟡 Medium → FAIL by default, suppressible only with the full documentation in §4.4.
    • 🟢 Low / Informational → WARNING, reported, does not block.

Suppressions

Every finding, including false positives, has to be documented — an undocumented finding is an unreviewed finding. To suppress a Medium, use the 7-field format in .daw/rules/validation-rules.instructions.md §4.4 (file, category, disposition, reviewer, date, justification, compensating control/review-by). Missing any field is a FAIL (F-SAST-18), and a suppression older than 6 months has to be re-evaluated (F-SAST-19).

Critical and High can never be suppressed. They get fixed.

Output Format

┌─────────────────────────────────────────────────────────────┐
│  /daw-security-sast — [PASSED | BLOCKED]                     │
├─────────────────────────────────────────────────────────────┤
│                                                              │
│  Secrets:                                                    │
│    ✅/❌ [ID]: [what was checked]                            │
│                                                              │
│  Injection:                                                  │
│    ✅/❌ [ID]: [what was checked, with file:line]            │
│                                                              │
│  XSS and unsafe functions:                                   │
│    ✅/❌ [ID]: [what was checked]                            │
│                                                              │
│  Dependencies:                                               │
│    ✅/❌/⚠️ [ID]: [what was checked]                          │
│                                                              │
│  Suppressions: [N]  (each with its 7 fields)                 │
│                                                              │
│  ────────────────────────────────────────────────────────────│
│  Total: X clean, Y vulnerabilities (C critical, H high)       │
│  Report: [path]                                              │
│  Next: [recommended action] (attempt N/3)                    │
└─────────────────────────────────────────────────────────────┘

PASS/FAIL criteria

  • PASSED: 0 Critical or High vulnerabilities, and every Medium either fixed or properly suppressed → gates.sast = true.
  • BLOCKED: 1+ Critical or High → fix before advancing. Max 3 attempts, then escalate to the user.

For triage of whether a finding is a true or false positive, spawn daw-sec-auditor via the Agent tool.

Tier modifier: QUICK-FIX

SAST applies in full. It is that tier's only security validation and it is not relaxed.

Updating .daw-state.json

  • gates.sast → true on PASS. The report is saved to docs/daw/security/sast-{ticket}.md (derived from the ticket).

Language

Write the report in the language the user is working in, citing the rule IDs verbatim.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.