The Cloudflare security audit skill is a free set of instructions that turns a coding agent into a source code auditor. Cloudflare published it on GitHub under the MIT licence in June 2026. By late November the repository had about 78,500 stars, and searches for it were climbing fast. The obvious question for a business is whether a run replaces a security test. For most teams it does not, and the reasons are useful to know before you rely on it.
The Cloudflare security audit skill runs a coding agent through six phases, from mapping the code to independently checked findings. It reads source code, tests only inside a sandbox and never touches deployed systems. Treat it as a strong first pass on code you own. Live servers, settings outside the repository and anything one run misses still need other checks.
We read the repository’s README and SKILL.md on 26 November 2026. We also read Cloudflare’s own account of how the skill started. Everything below about how it works comes from those pages.
What the Cloudflare security audit skill is
Where it came from
Cloudflare calls the skill the seed of its own vulnerability discovery system. A June 2026 post on Cloudflare’s blog tells the story. The team started with a security audit skill of about 450 lines. They ran it against single repositories and tuned the prompts until real bugs came out. The fleet-wide system grew from there.
The public version lives in the cloudflare/security-audit-skill repository . It is a folder of Markdown files with a JSON schema and two small validators written in JavaScript. Your coding agent reads the files and follows them. Nothing runs as a hosted service. Your code does go to the model provider behind your coding agent, so your usual rules for sharing source with that provider apply.
The six phases of an audit
The Cloudflare security audit skill splits an audit into six phases, each handled by separate agents. Reconnaissance maps the architecture, the trust boundaries and every place input comes in. Hunters then work through a coverage ledger one unit at a time. They record each check they make. A fresh verifier tries to disprove every candidate the hunters raise.
The survivors become structured records in a findings file, checked against the schema. More fresh agents then re-verify each record against the source. Only after that does the skill write its reports. The agent that checks a finding is never the one that found it. The README lists that adversarial check among its design principles.
Running the Cloudflare security audit skill
Install and first run
The README installs the skill with the Skills command line tool.
1npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit
Then start your coding agent inside the repository you want audited. Ask for an audit in plain words, such as “security audit this codebase”.
The Cloudflare security audit skill has two modes. A security question or a focused review uses guidance mode, which borrows only the relevant parts and writes no files. An explicit request to audit a whole codebase starts full audit mode. That runs all six phases and writes a set of report files. If a request could mean either, the skill tells the agent to ask you first.
Sandbox, budget and output folder
The requirements are stricter than most people expect. Your agent needs a model with tool use and parallel sub-agents. Node.js runs the two validators. Building or running the target’s code needs an operating system sandbox. It must turn external networking off, start from a clean environment and set hard limits on processor time, memory and disk. Without that sandbox, the Cloudflare security audit skill does not execute your code at all. Any lead that needs execution stays open.
Runs of the Cloudflare security audit skill also cost money in model usage. The skill offers quick, standard and deep profiles. It also supports scoped runs on chosen paths or on the changes between two versions. Before any hunting starts, it checks the plan against your budget. If the money will not stretch, it proposes a tighter scope. By default the reports go to a folder in your home directory, outside the repository. It only writes inside the repository when you pick a folder that version control ignores.
What the Cloudflare security audit skill finds
Confirmed findings and how severity works
A confirmed finding has a complete trace through the source and an observed result. The skill asks for the lower-trust actor and the input they control. It also wants the control that should have stopped them and the resource that ends up exposed. A missing best practice does not count. If one layer already blocks an attack, a missing second layer becomes a hardening note.
Only confirmed findings get a severity rating, set from the result actually shown. Critical means an attacker without a login gains code execution, full data store access or takeover of arbitrary accounts. High covers a full defeat of a security control. A login bypass, reading another customer’s data and code execution after login all count. Medium and low cover narrower damage. The skill puts its rule plainly. “If you cannot state the concrete damage, the severity is lower than it feels.”
Its attack class files show how wide the hunt goes. They cover web protocols and logins, browser-side code, and supply chain and release pipelines. Cloud and container settings kept in the repository get a file too. So do prompt injection in AI features, tenant isolation, memory safety in native code and resource exhaustion.
Leads it cannot settle
Some candidates hit a wall that the Cloudflare security audit skill cannot get past from the source alone. The skill records those as needs_validation, with the exact fact that is still unresolved and no severity. A typical case is a weakness whose impact depends on how the application is deployed.
However, these records matter as much as the confirmed ones. Each one is a specific question for your team. Is a header set at the proxy? Can anyone outside reach a queue? An owner who skips them throws away part of what the run paid for.
| Verdict | What it means | What to do with it |
|---|---|---|
| confirmed | Full source trace and an observed result, with a severity | Fix in severity order, then check the fix |
| needs_validation | A specific open question, no severity yet | Answer the question, often in the live setup |
| rejected | A verifier disproved the candidate | Read for context, no action needed |
What the skill misses
Anything outside the repository
The skill is source first by design. Its rules tell the agent to leave deployed endpoints, external services and production accounts alone. Shared infrastructure is off limits too, and tests use dummy users and secrets. That keeps your live systems safe. It also means a large part of your real exposure stays out of view.
For example, settings in a cloud console, DNS records, firewall rules and access policies rarely live in the repository. Neither does the runtime itself. The Java4Shell flaw shows the gap well. Whether a server is exposed depends on its Java build and its processor. No reading of application code can tell you either. Problems between repositories fall outside a single run as well. Cloudflare’s write-up says a single repository session is blind to the applications that consume it.
Coverage of one Cloudflare security audit skill run
Cloudflare is also candid about coverage. In its tests, the README says, a single run found roughly half of the vulnerabilities that repeated runs found in total. The blog adds that the bugs one run did find skewed towards the simpler ones. Runs are additive, so a second run reads the first run’s ledger and aims at the gaps.
Long sessions also strain the agent. Cloudflare reports that an hour in, the context window fills and the model starts to forget earlier work. A crash mid-run can cost the whole session. Those limits pushed Cloudflare to build a database-backed pipeline for its own fleet. Anyone running the skill on a large codebase meets the same limits.
Reading a Cloudflare security audit skill report
The skill writes three reports from the verified records. REPORT.md is the summary, FINDINGS-DETAIL.md holds the evidence and NEEDS-VALIDATION.md lists the open questions. Each confirmed finding comes with a safe reproduction and the smallest source change that fixes it.
Start with confirmed critical and high findings, and give each one an owner and a date. Then work through the open leads. Some of them turn into the most serious problems once someone checks the live setup. Keep the ledger and findings files with the code. The next run of the Cloudflare security audit skill reads them and targets what the last one missed.
When you still need a human tester
A person testing the deployed application covers what the skill leaves out on purpose. That means real logins with real roles and the production settings behind the proxy. It also means business rules the code alone does not explain. Contracts and payment partners can ask for a named tester, a test window and a retest report. An agent run provides none of those.
The Cloudflare security audit skill and a human tester work well together. Run the skill on code you own and fix what it confirms. Then give the tester the report, so their days go on the live system and the open leads. Our guide to black box, white box and grey box testing explains how much a tester should know before starting.
Using the Cloudflare security audit skill safely
Only audit code you own or have written permission to test. The skill keeps execution inside the sandbox, yet the agent still reads everything in the folder you point it at. Remove real secrets from the checkout first, or point the agent at a copy without them.
Read SKILL.md before the first run. It is long, and it spells out what the agent will do, where it writes and what it refuses to touch. Install it straight from Cloudflare’s own repository and keep a note of the version you reviewed. A new version of the Cloudflare security audit skill can change how it behaves, so read the changes before you update.
Our application security analysis combines automated and manual code review with runtime testing. It adds a dependency and supply chain audit and an API review. Every finding comes with a risk rating, proof of concept and a recommended fix. The full tier adds the fixes, security testing in your CI pipeline and a follow-up review 30 days later. You may have run the Cloudflare security audit skill already and want a second opinion, or a test of the live system behind the code. Our application security analysis page has the details, and the quote request form reaches us directly.