api-security-scan
Installation
SKILL.md
Activation Contract
Use this skill to scan a whole HTTP API (global) or given routes/modules (targeted) for security vulnerabilities, including information leaks, and prove each one. Not for PR review, dependency CVE audits, infra/cloud config, or live pentesting.
Hard Rules
- NEVER modify production code and NEVER write fixes; give at most a one-line
remediation_hint. Exploit tests are throwaway. - NEVER send requests to a running server, staging, production, or third-party host: exploit the app in-process with the repo's test harness and stub outbound HTTP.
- ALWAYS open with one option prompt: mode, categories, and output format (
chat|markdown); never infer them. - Cite
file:line, the endpoint, and a concrete attack (identity + request → impact); no speculation. - NEVER print real secrets, tokens, or PII: synthetic fixtures only, redact to the first 4 chars.
- Previous reports are leads, never evidence: re-verify every inherited finding.
docs/api-security-scan/{YYYY-MM-DD}.jsonis the only artifact; never overwrite one.- Delegate reconnaissance to an exploration subagent; verify with one write-capable subagent per finding, at most 4 concurrent; they return facts, verdicts stay with you.
- ALWAYS state what was not reviewed and which controls live outside the repo (gateway, WAF).
- ALWAYS run
python3 assets/reconcile.py --report <report.json>, thenpython3 assets/validate_report.py --file <report.json>; fix everyERROR:until exit 0.