Audits code, configuration, and architecture for security vulnerabilities using OWASP standards. Loads reference files on demand for findings.
Ships in security-audit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Perform a structured security audit of code, configuration, and architecture. Identify vulnerabilities, rank them by severity, and recommend concrete fixes grounded in OWASP standards, framework-specific best practices, and DevSecOps controls.
This is a read-only analysis. Do not modify code — audit, then report.
/security-audit [scope]
full to audit the whole repository for systemic issues.The audit draws on five reference areas. Load the relevant reference file when a finding needs grounding or when you need detailed requirements for a topic:
| Area | Reference | When to load |
|---|---|---|
| OWASP Top 10 | reference/owasp-top-10.md | Classifying a finding against the major vulnerability categories (2021 + 2025) |
| OWASP ASVS | reference/owasp-asvs.md | Deriving concrete security requirements or building a verification checklist |
| OWASP Cheat Sheet Series | reference/owasp-cheat-sheets.md | Needing practical implementation guidance (auth, JWT, file upload, CSRF, password storage) |
| Node.js Security | reference/nodejs-security.md | Auditing Express, NestJS, Fastify, or Node.js dependency/supply-chain issues |
| DevSecOps | reference/devsecops.md | Reviewing CI/CD pipeline security, dependency/container/secret/SAST/DAST scanning |
Use progressive disclosure: keep the reference files unloaded until a finding maps to them. Load only the file the current finding needs.
# Detect the default branch
BASE_BRANCH=$(git remote show origin 2>/dev/null | grep 'HEAD branch' | awk '{print $NF}' || echo main)
# Diff under audit
git diff "$BASE_BRANCH"...HEAD --stat
git diff "$BASE_BRANCH"...HEAD
# Dependency surface
cat package.json 2>/dev/null | jq '.dependencies, .devDependencies'
npm audit --json 2>/dev/null | jq '.metadata.vulnerabilities' 2>/dev/null
# Configuration surface
find . -maxdepth 2 \( -name '*.yml' -o -name '*.yaml' -o -name 'Dockerfile*' -o -name '.env*' \) -not -path './node_modules/*'
For a full audit, also enumerate: auth/session code, input handlers, file upload paths, database query construction, crypto usage, CI/CD workflow files, and container definitions.
Completion criteria:
full audits, the additional security-critical code paths are listed.Walk every changed or in-scope file against this checklist. Each item maps to an OWASP Top 10 category — use reference/owasp-top-10.md for the full category definitions and examples.
exec/spawn with user input; uses argument arraysdangerouslySetInnerHTML/v-html/|raw justified and sanitizedreference/owasp-cheat-sheets.md* with credentialscrypto.randomUUID()/crypto.randomBytes() — never Math.random() for securityreference/devsecops.md for secret scanningnpm ci used in CI; lockfile committed; --ignore-scripts consideredreference/owasp-cheat-sheets.mdCompletion criteria:
For Node.js projects, load reference/nodejs-security.md and check framework-specific concerns:
helmet(), express-rate-limit, cors allow-list, no X-Powered-By, body size limits, prototype pollution defensesValidationPipe with whitelist + forbidNonWhitelisted, ClassSerializerInterceptor to strip sensitive fields, Guards for authz, helmet middleware, throttler@fastify/helmet, @fastify/rate-limit, @fastify/cors with origin allow-list, schema validation on routes, @fastify/under-pressurenpm audit/Snyk/Socket, non-root container user, event-loop blocking (ReDoS, sync APIs), prototype pollutionCompletion criteria:
When the scope includes CI/CD or deployment, load reference/devsecops.md and verify:
Completion criteria:
| Level | Criteria | Examples |
|---|---|---|
| 🔴 Critical | Immediate, exploitable risk | SQL injection, RCE, exposed secrets, broken auth |
| 🟠 High | Significant concern, likely exploitable | auth bypass, IDOR, missing authz on sensitive data |
| 🟡 Medium | Potential vulnerability | missing validation, weak crypto, verbose errors |
| 🟢 Low | Defense-in-depth improvement | missing security header, better logging |
| ℹ️ Info | Awareness note | version end-of-life, future hardening |
## Executive Summary
- Overall posture: Secure / Needs attention / Critical issues
- N findings: 🔴 x 🟠 x 🟡 x 🟢 x ℹ️ x
- Top recommendations (ordered by impact)
## Findings
### [Severity] Title
- **OWASP**: A03:2021-Injection (and A05:2025 if reclassified)
- **Location**: `src/api/upload.ts:42`
- **Issue**: One-line description
- **Impact**: What an attacker can do
- **Recommendation**: Concrete fix with code snippet or config change
- **Reference**: OWASP Cheat Sheet — File Upload; ASVS v5.0.0-5.2.1
## Positive Practices
- Well-implemented controls worth keeping
Cite the relevant OWASP category, ASVS requirement ID (e.g. v5.0.0-6.2.3), and Cheat Sheet in each finding so the recommendation is traceable to a standard.
Completion criteria:
git diff, npm audit, cat, grep). If your environment provides an execute() wrapper, prefer it for read-only command execution.reference/owasp-top-10.md).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/security-audit:security-auditfrom security-audit
npx claudepluginhub jellydn/my-ai-tools --plugin security-auditOther plugins' skills for the same job