/dominiks-skills:security-auditfrom dominiks-skills
White-hat audit of a codebase against the OWASP Top 10. Maps the attack surface, proves vulnerabilities with PoCs, classifies severity, files parent + sub-issues via `gh`. Use when user asks for a security review, hardening pass, vuln scan, or "audit this".
Ships in dominiks-skills. 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.
None: SKILL.md is the whole skill.
Think like an attacker, document like an engineer. Audit a codebase, prove what's broken, file issues. Never exploit production. Never edit code.
| Flag | Scope |
|---|---|
| (none) | Full audit |
--api | Backend handlers and middleware |
--frontend | UI — XSS, CSP, client-side auth |
--infra | Deployment env, headers, config |
--deps | Dependency CVEs |
--endpoint <path> | Deep dive on one endpoint |
Skip phases that don't apply for scoped runs. Note the scope in the summary.
Build the attack surface before scanning.
For deployments, inspect env and recent logs for: secrets in logs, debug log levels in prod, backtraces enabled, permissive CORS, missing security headers, exposed internal ports, hardcoded secrets in non-secret env vars.
Ask before running any command that reads secrets.
For each, grep the patterns and reason about the result.
Command::new / exec / spawn with user input; raw HTML sinks (innerHTML writes, React's raw-HTML escape hatch); rich-text rendered without a sanitizer (DOMPurify or equivalent).unsafe-inline for scripts), X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy. CORS: specific origin, never * with credentials. Debug flags off in prod.cargo audit / npm audit --omit=dev / pip-audit / etc. For each: production or dev? Exploitable in this context? Patched version available?localhost/127.0.0.1/0.0.0.0/::1 and internal ranges; restrict scheme to https://.Every finding gets a PoC. "Might be vulnerable" is not a finding.
curl with expected vulnerable vs. safe response.State exploitability: authenticated or not, internet-reachable or local, theoretical or demonstrated.
Never test against production. Local or staging only. If neither exists, describe the PoC and ask before testing prod.
| Severity | Examples | Labels |
|---|---|---|
| Critical | Unauth RCE, auth bypass, direct DB access, secrets in logs | bug,security,phase:1 |
| High | Authenticated privesc, IDOR across tenants, missing webhook signature, SSRF to internal | bug,security,phase:1 |
| Medium | Missing security headers, permissive CORS, no auth rate limit, exploitable CVE | enhancement,security,phase:2 |
| Low | Verbose errors, missing non-critical rate limit, theoretical CVE, backtraces on | enhancement,security,phase:2 |
| Info | Hardening, outdated-but-clean deps | enhancement,security,phase:3 |
ghFor Medium and above, file an issue. Multiple findings → parent epic + one sub per finding. Adapt labels (gh label list first).
Parent:
PARENT=$(gh issue create \
--title "Security audit: <date or scope>" \
--label "security,epic" \
--body "$(cat <<'EOF'
## Audit Summary
- Scope: <full | --api | …>
- Findings: <N total — N Critical, N High, N Medium, N Low>
## Sub-issues
- [ ] #TBD — <Critical: title>
- [ ] #TBD — <High: title>
## Test Strategy (overall)
| Category | Scenario | Expected |
|---|---|---|
| Regression | Re-run every PoC after fixes | All blocked |
| Hardening | Headers / CORS / rate-limits applied | Per checklist |
EOF
)" --json number --jq .number)
Each sub:
gh issue create \
--title "fix(security): <one-line vuln>" \
--label "bug,security,phase:1" \
--body "$(cat <<EOF
Parent: #${PARENT}
## Security Finding
- Severity, OWASP category, affected file/route
## Proof of Concept
<curl or steps>
## Impact
<who/what is at risk>
## Recommended Fix
<specific, file:line>
## Test Strategy
| Category | Scenario | Expected |
|---|---|---|
| Tracer bullet | A failing test that demonstrates the vuln today | 200 / leak |
| Regression | Re-run after fix | 403/400, no leak |
| Authorization | Valid request with correct role | Normal 200 |
| Boundary | Adjacent vector (case variation, encoding) | Blocked |
Fix per Pocock-style TDD: regression test first (failing demo of the vuln), fix flips it green.
EOF
)"
After all subs filed, rewrite parent body replacing #TBD with real numbers.
Never put actual secret values in issue bodies — describe the leak without the value.
Present a checklist of deployment-level fixes (log level, backtraces, headers, CORS, rate limiting, secret rotation). For each that requires a CLI/dashboard change, show the exact command and ask before running. Read-only inspection runs without confirmation.
## Findings
| # | Severity | OWASP | Title | Issue |
## Hardening status
| Setting | Status |
## Clean areas
<credit where due>
## Top 3 priorities
1. <highest impact> — <one sentence>
If a layer is clean, say so. Don't pad.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
25 skills in this plugin
/add-backend-endpointAdd a new backend HTTP endpoint following the project's existing conventions — language and framework agnostic. Walks the layers (schema → repo → handler → routing → spec → client wiring), TDD-first. Use when adding a new API route to a backend codebase./add-list-pageScaffold a new CRUD list page in any frontend codebase — language and framework agnostic. Walks the layers (data fetch, mutations, RBAC, loading/empty/error, i18n, accessibility, UX polish), TDD-first. Use when adding a list/management page to a UI codebase./architect-reviewArchitectural evaluation of a codebase. Finds tech debt, missing patterns, coverage gaps, design inconsistencies; files parent + sub-issues via `gh`. Use when user asks for an architecture review, codebase evaluation, or wants to know what to fix structurally.Generated from the plugin's indexed repository (dominikdorfstetter/skills) — no native marketplace selected
npx claudepluginhub p/dominikdorfstetter-dominiks-skills