/security:scan [--quick] [--deep] [--diff] [--diff-base <ref>] [--path <dir>] [--suppress <id>] [--show-suppressed]from security
Runs deterministic security scanners (SAST/linters) on a codebase and uses LLM triage to classify results. Supports full, deep, and diff scans with suppression management.
Ships in security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run a deterministic security scan and triage only findings produced by tools. Tools detect; the model classifies and reports.
Parse $ARGUMENTS:
--quick: run tools and report raw findings without LLM triage. Budget: 10 findings.--deep: run tools, load CWE criteria, delegate triage. Budget: 50 findings.--diff: scan changed files only.--diff-base <ref>: base ref for --diff; default is auto-detected by get-changed-files.sh.--path <dir>: scan this directory; default ..--suppress <id>: add suppression for an existing finding and redisplay results; do not rescan.--show-suppressed: include suppressed findings in final report.If --suppress <id> is present:
Read .security/triaged.json if it exists, otherwise .security/correlated.json.
Find the requested finding ID.
Append a suppression rule to .security/suppressions.json with the finding's file, first rule_id/sources value when present, cwe, timestamp, and reason "User suppressed via /security:scan --suppress".
Run:
"${CLAUDE_PLUGIN_ROOT}/scripts/apply-suppressions.sh" .security/correlated.json .security/suppressions.json .security/correlated.json
Display .security/report.md if present and tell the user to rerun /security:scan for a refreshed report.
Stop.
Create artifact directories:
mkdir -p .security/artifacts
Detect tools and save the result:
"${CLAUDE_PLUGIN_ROOT}/scripts/detect-tools.sh" | tee .security/tools.json
Detect project context and save the result:
"${CLAUDE_PLUGIN_ROOT}/scripts/recon.sh" "$SCAN_PATH" | tee .security/recon.json
If .security/profile.json exists, read it and use it for severity context. If it does not exist, continue and mention that /security:baseline can create one.
If --diff is present, run:
"${CLAUDE_PLUGIN_ROOT}/scripts/get-changed-files.sh" "$DIFF_BASE" | tee .security/changed-files.json
If the changed file count is zero, report "No changed files to scan" and stop.
Run external scanners plus the built-in regex scanner through the orchestrator:
"${CLAUDE_PLUGIN_ROOT}/scripts/run-scanners.sh" .security/artifacts --path "$SCAN_PATH"
For diff mode:
"${CLAUDE_PLUGIN_ROOT}/scripts/run-scanners.sh" .security/artifacts --path "$SCAN_PATH" --files .security/changed-files.json
The orchestrator always writes .security/artifacts/scan-summary.json and .security/artifacts/regex-scan.json; external tool artifacts are written when those tools are available.
Run correlation:
"${CLAUDE_PLUGIN_ROOT}/scripts/correlate.sh" .security/artifacts .security/correlated.json
correlate.sh automatically applies .security/suppressions.json when it exists.
Read .security/correlated.json. If there are zero unsuppressed findings, write a short .security/report.md with the scan date, mode, tools, and coverage gaps, display it, and stop.
If not --quick, load:
${CLAUDE_PLUGIN_ROOT}/data/triage-criteria.md.security/recon.json.security/profile.json when present.security/correlated.jsonUse this command to list matching CWE reference files:
jq -r '.findings[]?.cwe // empty' .security/correlated.json | sort -u | while read -r cwe; do
file="${CLAUDE_PLUGIN_ROOT}/data/cwe-criteria/$(printf "%s" "$cwe" | tr "[:upper:]" "[:lower:]")-*.md"
ls $file 2>/dev/null || true
done
Read only the files that exist.
If --quick, skip this phase and report raw correlated findings.
Otherwise, delegate to security/triage-agent with this task:
Triage .security/correlated.json using plugins/security/data/triage-criteria.md and the loaded CWE criteria. Read only flagged files and only the allowed local context. Write .security/triaged.json exactly as specified by the agent.
After the agent finishes, read .security/triaged.json. If it is missing or invalid JSON, stop and report the failure.
Generate .security/report.md and display it.
Report structure is fixed:
# Security Scan Report
**Date:** [timestamp]
**Mode:** [quick/standard/deep]
**Scope:** [path or diff base]
## Summary
| Severity | Count |
|----------|-------|
| CRITICAL | N |
| HIGH | N |
| MEDIUM | N |
| LOW | N |
## Tools
| Tool | Version | Findings | Status |
|------|---------|----------|--------|
## Findings
### [SEVERITY] CWE-NNN: Title -- file:line
**Provenance:** [Static: tool]
**Severity:** SEVERITY
Explanation paragraph.
**Code:**
```language
snippet
Remediation: Minimal fix.
Rules:
- Summary counts include `TRUE_POSITIVE` and `NEEDS_REVIEW` findings only.
- `FALSE_POSITIVE` findings go under suppressed/false positives unless `--show-suppressed` is omitted and the user only needs counts.
- Enforce budget after sorting by severity: quick 10, standard 25, deep 50.
- Use `.security/artifacts/scan-summary.json` and `.security/tools.json` for tool status.
- Always include coverage gaps from missing tools and detected languages.
- Do not read full source files while building the report. Use snippets from findings or the triage agent output.
## Post-Scan
Ask what the user wants next:
- Fix critical findings -> suggest `/security:fix <finding-id>` or proceed if they ask.
- Run deeper scan -> rerun with `--deep`.
- Create baseline/profile -> run `/security:baseline`.
- Done -> stop.
## Examples
```bash
/security:scan
/security:scan --quick
/security:scan --deep
/security:scan --diff
/security:scan --diff --diff-base HEAD~3
/security:scan --path src/api
/security:scan --suppress finding-003
/security:scan --show-suppressed
Begin at Phase 0.
What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/asvs-requirementsOWASP ASVS 5.0 requirements database for security audits. Provides chapter structure, control objectives, and verification requirements for all 17 ASVS domains./baselineCreate or update the project security baseline, profile, suppressions file, and gitignore entries for security scans/fixFix or guide remediation for a specific security finding from the latest scan report/remediation-authSecurity fix patterns for authentication and authorization vulnerabilities (credentials, JWT, deserialization, access control). Provides language-specific secure implementations.npx claudepluginhub zate/cc-plugins --plugin securityOther plugins' skills for the same job