Cloudflare Security Audit
Code qualityCloudflare's multi-phase security audit skill: isolated agents hunt, a fresh agent tries to disprove each finding.
Install
$ npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit
Works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and any other agent that reads SKILL.md.
Update
$ npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit
Re-run the install command to pull the latest version.
When to use it
- You want a deep, source-level security review of a repo before a release or after a big AI-generated change.
- You need findings that were independently checked, so you are not triaging a pile of unverified scanner output.
- The target has LLM or agent features, multi-tenant data, or auth flows, and you want prompt injection, auth bugs and cross-user data leaks hunted separately.
Commands & flags
- security audit this codebase
- Full audit mode: all six phases, with report files written to an output directory.
- find security vulnerabilities in ./src
- Audit one part of the codebase.
- do a security review, output to ~/audits/my-project
- Choose where the audit artifacts go.
- npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit --global
- Install at user level instead of per project.
How to use it
Start Claude Code in the repo and ask for a security audit. A direct audit or pen-test request runs the full workflow; a security question or a focused review runs in guidance mode and writes no files unless you ask for report artifacts.
The full audit runs six phases: reconnaissance (architecture, trust boundaries, input surfaces), coverage-led hunting by isolated agents, validation of each candidate by a fresh agent that tries to disprove it, structured output in findings.json, independent record verification, and a target-neutral report. Each finding is confirmed, needs_validation or rejected. Unspecified output goes to ~/security-audit-skill/<repo-name>/run-<N>.
It needs Node.js for the bundled validators and a model that supports parallel sub-agents. The README requires an OS-enforced sandbox before the workflow executes target-controlled code; without one it keeps the lead as needs_validation.
Do not use it as a replacement for a dependency scanner or for audits of systems you are not authorized to test. Runs are additive, so repeat them to widen coverage.
Why it earns its place
Most AI security reviews stop at a list of suspicions. This skill is the single-repo starting point of Cloudflare's own vulnerability-discovery harness: the agent that finds a bug is never the one that confirms it, severity needs a real impact, and defense-in-depth gaps are reported as hardening notes rather than vulnerabilities. Each finding carries source evidence and a verdict. Expect heavy token use on large repositories.
Try it
> security audit this codebase, output to ~/audits/my-project