agentleFS
tanbopptanbopp/ai-development-framework/.agents/skills/sast-scanner/SKILL.md

sast-scanner

Skill1 starsChanged 19 days agoMITView on GitHub

Runs Static Application Security Testing via Semgrep MCP (or Semgrep CLI / OWASP checklist fallback) in Phases 6-7, saving results to docs/tasks/logs/sast-[timestamp].log and blocking on HIGH or CRITICAL findings.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If Semgrep MCP is available, invoke semgrep_scan or scan_directory against all application source directories (for example src/, app/, …

    line 15
  2. Very specific:

    If Semgrep MCP is unavailable, attempt to run the Semgrep CLI (semgrep scan --config auto).

    line 17
  3. Very specific:

    If neither Semgrep MCP nor Semgrep CLI is installed in the environment, perform a systematic manual SAST review against …

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SAST Scanner

Trigger

Phase 6 (Implementation) and Phase 7 (Audit).

Process

  1. Run Semgrep MCP (Preferred):
    • If Semgrep MCP is available, invoke semgrep_scan or scan_directory against all application source directories (for example src/, app/, cmd/, crates/, lib/) to detect OWASP Top 10 and CWE Top 25 vulnerabilities (SQL injection, XSS, path traversal, command injection, SSRF, insecure deserialization, broken crypto).
  2. CLI & Manual Fallback:
    • If Semgrep MCP is unavailable, attempt to run the Semgrep CLI (semgrep scan --config auto).
    • If neither Semgrep MCP nor Semgrep CLI is installed in the environment, perform a systematic manual SAST review against .agents/skills/security-hardening/references/owasp-checklist.md and .agents/skills/security-hardening/references/secure-coding-rules.md, noting the fallback explicitly in the log.
  3. Save Scan Evidence:
    • Save raw scan output and categorized findings to docs/tasks/logs/sast-[timestamp].log.
  4. Block on HIGH/CRITICAL Findings:
    • Block Phase 7 completion immediately if any HIGH or CRITICAL vulnerability is detected. Return to Phase 6, fix the issue, and re-run the SAST scan until zero HIGH/CRITICAL findings remain.

Output Contract

Raw scan log saved at docs/tasks/logs/sast-[timestamp].log showing zero unresolved HIGH or CRITICAL findings before Phase 7 can pass.

Checklist

  • Source directories scanned with Semgrep MCP (semgrep_scan / scan_directory), Semgrep CLI, or documented OWASP checklist fallback
  • Raw scan output saved to docs/tasks/logs/sast-[timestamp].log
  • Zero unresolved HIGH or CRITICAL SAST findings remain

Prohibitions

  • Marking Phase 7 complete without a saved SAST scan log.
  • Suppressing, deleting, or ignoring HIGH or CRITICAL SAST findings without verified code fixes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.