/cdx:web-security-auditfrom cdx
Run a deep web-application security audit — combine static code review with live-instance testing to discover real exploits, not just checklist items. Trigger whenever the user asks to security-review, harden, audit, pentest, or look for vulnerabilities/exploits/CVEs in a web app, API, or backend service. Also trigger for related framings ("is this app secure?", "OWASP audit", "find security bugs", "check for SQL injection / XSS / SSRF / IDOR", "review the auth flow", "harden this before launch", "production readiness from a security angle"), even when the user doesn't explicitly say "audit" or "skill".
Ships in cdx. 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; scripts run unread.
This skill runs a thorough security audit against a web application. It combines static analysis of the codebase with live-instance probing to find real, exploitable issues — not a generic OWASP checklist.
Audit like an attacker, report like an engineer.
The audit runs in seven phases. Use TaskCreate to track them so the user can see progress.
Don't skip ahead. Each phase informs the next — recon decides what to look for in code; code review surfaces hypotheses to test live.
Before doing anything else, establish:
Target type — codebase only, live instance only, or both?
For codebase targets: what's the path? Any monorepo subset to focus on? Are there .gitignored configs (env files, secrets) that should be in scope?
For live targets: ask for URL, any authentication (credentials, API tokens, OAuth flows, session cookies), known account types (admin / regular user / service account), and any out-of-scope endpoints (e.g., third-party integrations, payment gateways, prod-only systems).
Authorization for live testing. Before sending any traffic to a live target, get an explicit yes from the user that they have authorization to test it. This is non-negotiable. See the authorization gate section below.
Time budget / depth. Quick sanity check (~30 min) vs. deep audit (multiple hours)? Adjust the breadth of the threat model accordingly.
Capture all of this in security-audit-<YYYYMMDD-HHMM>/SCOPE.md so it's auditable later. Use the user's local time for the timestamp.
Run scripts/preflight.sh to detect which security tools are installed. Read the output and report it to the user.
The skill is designed to work with pure curl + scripting as a baseline — every active probe in references/live-testing.md includes a manual fallback. But several common scanners dramatically speed up specific phases (nuclei for known-CVE checks, ffuf for content discovery, sqlmap for SQLi confirmation, trivy/grype for dependency CVEs, gitleaks for secrets).
After running preflight, ask the user whether to install missing tools. Show them the install commands from references/tooling.md. Don't install without asking — the user may be on a shared system, prefer a different package manager, or want to keep their environment minimal.
If the user declines a tool, note it in SCOPE.md and use the manual fallback for the relevant phase.
Establish what you're attacking. Detailed techniques live in references/recon.md — read it now if this is your first phase.
For codebase recon:
For live recon (passive only at this phase):
Save findings to recon/stack.md. This becomes the basis for the threat model.
A generic OWASP Top 10 sweep is low-signal. The valuable threat model is stack-specific: what does this exact combination of choices make likely?
Examples:
body-parser and dynamic req.body access → mass assignment, prototype pollutionfind_by_id(params[:id]) → IDOR, mass assignment via permitReference references/recon.md for the stack→threat mapping. Output a prioritized list of attack surface to investigate, saved to recon/attack-surface.md. This drives Phase 5.
This is where the real work happens. Code audit and live testing are interleaved — code review surfaces a hypothesis ("this endpoint takes user input and passes it to child_process.exec"), live testing confirms it.
Read references/code-audit.md for language- and framework-specific patterns. The high-leverage areas across every stack:
innerHTML, dangerouslySetInnerHTML, v-htmltrivy/grype/npm audit/pip-audit/bundler-audit if availableFor each suspected issue: capture file path + line number, the relevant code excerpt, and what makes it suspicious. If a live target is in scope, queue it for confirmation.
Read references/live-testing.md for the playbook. It's split into two tiers:
Passive tier — always allowed once authorization is confirmed. Headers, TLS, info disclosure, fingerprinting, observation of normal app behavior with valid creds. No payloads.
Active tier — requires per-class authorization. SQLi probes, XSS, SSRF, IDOR, auth bypass attempts, file upload abuse, brute force. See the authorization gate below.
Capture full request/response for every probe — these become evidence in findings.
Every finding gets its own markdown file in security-audit-<timestamp>/findings/, named F<NNN>-<slug>.md (e.g., F003-sqli-search-endpoint.md). Number sequentially in discovery order; severity isn't part of the filename so files don't get renamed if you re-rate.
Use the template and severity rubric in references/findings.md. Each finding must have:
If you can't write the Evidence section, you don't have a finding yet — you have a hypothesis. Either go confirm it or downgrade to "Suspected" and say what would confirm it.
Write security-audit-<timestamp>/README.md using the template in references/findings.md. It should include:
The "what was not tested" section matters. It's honest and it tells the reader where residual risk remains.
Active testing against a live system can:
Before any active probe:
auth-bypass (login probes, JWT manipulation, session fixation)injection (SQLi, NoSQLi, command, template, deserialization payloads)xss (reflected/stored payload injection)access-control (IDOR, privilege escalation attempts)ssrf (server-side request probes — risky if internal network is reachable)file-upload (uploading test files to confirm filter bypass)brute-force (any credential or token guessing — coordinate with WAF/lockout)Passive testing (headers, TLS scan, observing normal app behavior with provided creds) is allowed once initial authorization is confirmed and does not require per-class confirmation.
Refusal scenarios — do not proceed even if asked:
If a request feels off, ask before acting.
security-audit-<YYYYMMDD-HHMM>/
├── README.md # Executive summary + index
├── SCOPE.md # What was in scope, what wasn't, authorization context
├── recon/
│ ├── stack.md # Tech stack discovered
│ └── attack-surface.md # Threat model output
└── findings/
├── F001-<slug>.md
├── F002-<slug>.md
└── ...
Create the timestamped folder at the start of Phase 1 and write into it incrementally — don't batch everything for the end. If something interrupts the audit, the partial output is still useful.
The audit ends when one of:
What was not tested honestly)Always finish with the summary report — don't leave the audit folder without a README.md. A partial summary is more useful than a complete absence.
references/recon.md — Stack fingerprinting techniques (code + live), stack→threat mappingreferences/tooling.md — CLI tool catalog with install commands per OSreferences/code-audit.md — Static analysis patterns by language/frameworkreferences/live-testing.md — Passive + active testing playbook with concrete probesreferences/findings.md — Severity rubric, finding template, summary templatescripts/preflight.sh — Tool detection script (run in Phase 2)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub deviantony/claude-plugins --plugin cdx9 skills in this plugin
/coderevPre-PR code review of the current branch, run by an independent reviewer subagent in a fresh context; the main agent then triages its findings on its own, fixes what is worth fixing in a separate commit, and reports what it fixed, skipped and needs the user for. Use proactively, without being asked, right before opening a pull request on the user's own branch: before running `gh pr create`, or when the user says "open a PR", "ready for review", "ship it", "push this up for review". Also invoked manually as `/cdx:coderev`./dev-docsGenerate and maintain a `docs/` directory of markdown developer documentation for a project. Scans source code, writes structured docs with YAML frontmatter for git-based drift tracking, and produces clean markdown that renders on GitHub (including mermaid diagrams). Use this skill when the user asks to generate, create, update, or refresh developer documentation, scan their codebase for documentation purposes, or check whether existing docs have drifted from the code. Also trigger on phrases like "dev docs", "documentation builder", "doc generator", "refresh the docs", "check docs for drift", or "document this codebase". Do NOT trigger for implementation plans, architecture decisions, migration plans, general project planning, code reviews, API reference generation from annotations, or any task that isn't specifically about producing or maintaining a hand-written developer documentation set.