Cloudflare's Free Security Audit Skill for Claude Code, Explained
Ask an AI agent to "find security bugs" and you usually get a confident list where half the findings are wrong. Cloudflare's security-audit skill is built around that problem. It's the skill that seeded Cloudflare's own vulnerability-hunting system, released free under MIT, and its core rule is simple: the agent that finds a bug is never the agent that confirms it.
How an audit runs
You open your coding agent in a repo and say "security audit this codebase." The skill then runs six phases, each with its own isolated agents.
First, reconnaissance. It maps the architecture, the trust boundaries and every place input comes in, and writes that down in architecture.md plus a coverage ledger. Then hunters go after specific parts of the code, each one recording what it checked, while "coverage critics" look for the gaps nobody covered. Every candidate bug then goes to a fresh verifier whose job is to disprove it. What survives is written to findings.json, validated against a schema, and checked once more by another independent agent before the final REPORT.md gets written.
Each finding ends up in one of three states. confirmed means there's a complete trace through the source and an observed result. needs_validation means the agent got close but one exact fact is still unresolved, and it says which fact. rejected means someone tried to prove it and couldn't. I like that middle bucket a lot. It's an honest "we don't know yet" instead of a made-up severity.
It knows what to look for
The hunting guides are where Cloudflare's experience shows. There are separate playbooks for web protocols and auth, client-side and browser bugs, cloud and deployment config, supply chain and release pipelines, RPC and message queues, multi-tenant data isolation, desktop and mobile apps, memory safety in native code, and prompt injection in LLM-backed apps. The skill picks the ones that fit your target.
It's also strict about what counts. Severity has to come from real impact, not from breaking a checklist. And if one layer already blocks an attack, a missing second layer is filed as a hardening note, not a vulnerability. That alone cuts a lot of the noise you get from generic scanners.
Run it more than once
Runs are additive. The second audit reads the first one's ledger and findings, goes after the gaps, and re-checks code that changed. Cloudflare says that in their tests a single run found roughly half of the vulnerabilities that repeated runs found in total. So budget for several passes on anything that matters, and expect it to use a fair amount of your agent's quota each time.
Install and requirements
Install with npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit (add --global for all projects). You need an agent and model that support tool use and parallel subagents (Claude Code is the obvious fit) and Node.js for the validators.
One requirement people will skip and shouldn't: if you want it to actually run the target's code, builds or tests, it expects an OS-level sandbox with no outside network and writes limited to scratch folders. Without that, it won't execute anything and leaves those leads as needs_validation. That's the right call. Output goes to ~/security-audit-skill/<repo-name>/ by default, outside your repo.
Who it's for
Engineering teams that want a serious code-level audit before a launch or a pen test, and security folks who want an agent that shows its work. Only point it at code you own or have permission to test. If what you need is a quicker check of a live website (headers, HTTPS, exposed files, leaked keys), our free website security audit skill is built for that, and the two work well together. It had about 78,000 GitHub stars at the time of writing, and Cloudflare's blog post "Build your own vulnerability harness" explains how it grew into their fleet-wide system.
Get Cloudflare Security Audit on GitHub
Cloudflare Security Audit is free and open source. The code, install steps and docs all live in the repository: cloudflare/security-audit-skill.
View Cloudflare Security Audit on GitHub →
Listed by AgentsKit. We don't maintain this project and aren't affiliated with its author. Read the code before you run anything that touches your machine or your inbox.
More free skills and plugins
Harvey
An autonomous SDR that runs on your Claude subscription
Read →/brag
Turn the thing you just built into a launch video
Read →GEO-SEO Claude
Audit any site for ChatGPT, Perplexity and AI Overviews
Read →Hypit
Clone a viral video into a workflow you can remix
Read →REA
See a feature you like, find out how it's built
Read →API Anything
Stop making your agent click through websites
Read →Hallmark
Pages that don't look AI-generated
Read →Anatomy
Explain an idea by building it as a machine
Read →ECC
A full engineering process for your agent
Read →Impeccable
Design words your agent understands
Read →Ponytail
Your agent, but it writes one line instead of fifty
Read →Matt Pocock's Skills
Small, composable skills for real engineering
Read →Browse the marketplace
Every free skill and plugin we've reviewed, in one place.
Read →