| name | auditing-code-security |
| description | Audit code against OWASP Top 10 vulnerabilities with structured findings. Use when reviewing code for security issues or conducting security audits. |
| compatibility | Designed for Claude Code |
| metadata | {"allowed-tools":"Read, Grep, Glob, WebSearch, WebFetch","argument-hint":["file-or-directory"],"stability":"stable","content-hash":"sha256:1fe9fc0023ad3221ad15390f00036732376243b3f77f8137ebab5824ee1747d8"} |
OWASP Top 10 Code Security Audit
Scope: $ARGUMENTS
When to Use
- Security review before release or merge
- Auditing new features for vulnerability exposure
- Periodic security posture assessment
- Compliance-driven code review
Workflow
- Identify scope — files, modules, or full codebase
- Scan each OWASP category using the checklist below
- Record findings in the output table
- Assign severity (Critical / High / Medium / Low / Info)
- Propose remediation for each finding
Workflow Mode (full-codebase scope)
When auditing a whole codebase or many modules and the Workflow tool is
available, fan the ten OWASP categories out in parallel instead of scanning
them one after another:
Workflow({
scriptPath: "${CLAUDE_PLUGIN_ROOT}/workflows/audit-owasp.js",
args: { scope: "<dir>",
skillPath: "${CLAUDE_PLUGIN_ROOT}/skills/auditing-code-security/SKILL.md" }
})
args reaches the script as a JSON string (the script parses it). One read-only
agent scans the scope per category (A01–A10) and returns structured findings;
render them with the Output Format below. Fall back to the inline per-category
scan (steps 1–5) when the Workflow tool is unavailable. The agents are
read-only, so the only permission to pre-grant is the Workflow tool.
OWASP Top 10 Checklist
A01: Injection
A02: Broken Authentication
A03: Cross-Site Scripting (XSS)
A04: Insecure Direct Object References
A05: Security Misconfiguration
A06: Sensitive Data Exposure
A07: Missing Function-Level Access Control
A08: Cross-Site Request Forgery (CSRF)
A09: Using Components with Known Vulnerabilities
A10: Server-Side Request Forgery (SSRF)
Output Format
Present findings as:
| # | Category | Severity | File:Line | Description | Remediation |
|---|
| 1 | A01 Injection | Critical | src/db.py:42 | Raw SQL with f-string | Use parameterized query |
| 2 | A03 XSS | High | templates/profile.html:18 | Unescaped user input | Apply output encoding |
Severity Definitions
- Critical — Exploitable now, data breach or RCE risk
- High — Exploitable with moderate effort, significant impact
- Medium — Requires specific conditions, limited impact
- Low — Minor issue, defense-in-depth concern
- Info — Best practice recommendation, no direct risk