Cloudflare security-audit: each bug must survive a skeptic

Cloudflare's MIT-licensed skill turns a coding agent into a six-phase repo auditor with adversarial verifiers, for builders auditing code they own.

Picture a two-person studio that ships client SaaS apps built mostly with Claude Code. Before launch, one of them types "is this codebase secure?" and gets back a confident list of twelve maybe-problems. Four are real, five are wrong, and three are hardening notes dressed up as criticals. Nobody can say which routes were actually checked. Two weeks later a client finds that any logged-in user can read another tenant's invoices by changing an ID in the URL. The review missed it, and nothing in the output showed that the review had never looked there.

Cloudflare's security-audit skill targets those gaps. It is a set of instructions plus two small Node.js validators that make your coding agent run an audit as a process. Hunters work from a coverage ledger. A fresh agent tries to disprove every candidate bug. Findings come out as machine-readable records with three distinct verdicts. The repo was created on June 18, 2026, so this isn't a new release. It's the README after a September rework, and it is trending now.

What it is

The skill, per its GitHub README, "orchestrates isolated agents" through six phases:

  1. Reconnaissance: maps architecture, trust boundaries and input surfaces into architecture.md and a coverage-ledger.json. This answers the studio's "what did it even look at?" problem.
  2. Coverage-led hunting: isolated hunters take units from the ledger, and coverage critics look for gaps.
  3. Candidate validation: every unique candidate goes to a fresh verifier that tries to disprove it. This targets the five wrong findings.
  4. Structured output: records go to findings.json and are checked against report-schema.json.
  5. Independent record verification: fresh agents re-check the final source claims.
  6. Target-neutral reporting: REPORT.md, FINDINGS-DETAIL.md and NEEDS-VALIDATION.md are built from the verified records.

The three verdicts carry the design. Per the README, confirmed needs a complete source trace and a bounded observed result. needs_validation names one exact unresolved fact and gets no severity. rejected records a disproved candidate. Two README rules deal with the inflated criticals: "Severity requires impact," and "Defense-in-depth gaps are not vulnerabilities." If one layer already blocks the attack, a missing second layer is logged as a hardening note.

Hunting is guided by attack-class files: web protocols and auth, client-side code, AI and LLM features (prompt injection, agent tools, output handling), supply chain and release, cloud and deployment, data isolation between tenants, resource exhaustion, native memory safety and more. That cross-tenant invoice read is the kind of thing DATA-ISOLATION-AND-LIFECYCLE.md is for, according to Digital Zoom Studio's walkthrough. Runs are additive. A second run reads earlier ledgers and findings to target gaps and revalidate changed source.

Two things are easy to misread. First, the headline number. Cloudflare's harness post reports 7,245 actionable findings, but Digital Zoom Studio notes that figure comes from "a larger harness that grew out of this skill, run across Cloudflare's repos." The README calls the skill "the single-repo starting point it evolved from." Second, the version. The Diego Rodriguez blog reports a Sept 10, 2026 commit that reworked the workflow, added the three verdicts, the coverage ledger, the domain files and the sandbox rule. Cloudflare's June post describes a 7-phase audit run in one session, so older write-ups may describe a different skill.

Alternatives. No alternative was fetched from its own page. VibeDoctor's comparison describes three, summarizing Anthropic's documentation:

Who it's for

Pick it up if:

Vibe-coded apps holding customer data, multi-tenant SaaS, and apps with LLM features are the obvious targets. The studio in the lede fits.

Skip it if:

It also doesn't replace a professional penetration test on high-stakes systems, as both Nic's notes and fireup.pro say.

Before and after

Before:

  1. Ask the agent, in one session, to review the repo for security issues.
  2. The same agent that raised each issue judges whether it's real.
  3. You get a prose list with mixed severities and no record of what was covered.
  4. You triage by hand, re-reading code to rule out false positives.
  5. Next month you start from zero.

After:

  1. Ask for a full audit in plain language. The skill activates on requests like "security audit" or "find vulnerabilities."
  2. Recon writes an architecture map and a ledger of units to cover. Isolated hunters work those units, and critics flag gaps.
  3. A fresh verifier tries to refute each candidate. A further agent re-checks the final records.
  4. You get findings.json with three verdicts, validated by two zero-dependency Node scripts, plus readable reports derived from it.
  5. You triage confirmed records first and route each needs_validation item with its named blocker.
  6. Next run, the skill reads the old ledger and targets what it missed.

The shift is the one this site keeps tracking, from vibe coding to vibe engineering. The model is the same. What changes is a contract around it: coverage you can count, separated roles, and a schema.

Try it

First, the cost. The skill is MIT-licensed and free. Running it uses your coding agent's model, which Digital Zoom Studio notes you pay for as usual. You need Node.js for the validators. You also need an OS-enforced sandbox if you want target code to run: no external network, a sanitized allowlisted environment, resource limits, and writes only to scratch paths. Without one, the README says leads that need execution stay needs_validation.

Install with the Skills CLI, exactly as the README shows:

# project-level install
npx skills add https://github.com/cloudflare/security-audit-skill \
  --skill security-audit

Add --global for a user-level install. Watch the URL: Digital Zoom Studio found that a shorter link circulating in a social video reel returns a 404. To target Claude Code directly and skip the prompts, the Diego Rodriguez guide cites the Skills CLI's -a and -y flags:

npx skills add https://github.com/cloudflare/security-audit-skill \
  --skill security-audit -a claude-code -y
# Project: .claude/skills/security-audit/

Now walk one task through: a first pass on an API service.

Step 1. Open your agent inside the repo and ask. These three prompts are from the README:

security audit this codebase
find security vulnerabilities in ./src
do a security review, output to ~/audits/my-project

A direct audit request runs full audit mode. A security question runs guidance mode, which, per Nic's notes, writes no files. For a cheaper first look, Nic's notes describes three profiles: quick (one hunter wave, one critic pass, one verifier per candidate), standard and deep. Scoped runs can cover named paths, one subsystem, or the diff between two commits. Diego Rodriguez says the profile is picked from your request and gives this as his own phrasing:

security audit this codebase, quick profile, scoped to src/api, budget 20 agents

Step 2. Check what you get. Unless you name a folder, output lands in ~/security-audit-skill/<repo-name>/run-<N>, outside your repo. The README says the skill writes inside the repo only if you pick a directory that version control ignores. Expect architecture.md, coverage-ledger.json, findings.json and the three Markdown reports.

Step 3. Re-run the validators yourself. Diego Rodriguez gives these invocations from VALIDATION-AND-REPORTING.md, with a project-level Claude Code install and the default output folder:

node .claude/skills/security-audit/validate-findings.cjs \
  ~/security-audit-skill/my-api/run-1/findings.json
node .claude/skills/security-audit/validate-coverage-ledger.cjs \
  ~/security-audit-skill/my-api/run-1/coverage-ledger.json

Step 4. Triage. Diego Rodriguez's own jq line lists confirmed findings by severity:

jq -r '.[] | select(.verdict=="confirmed") | "\(.severity.overall_severity)\t\(.title)"' \
  ~/security-audit-skill/my-api/run-1/findings.json

Read FINDINGS-DETAIL.md for every medium-or-worse record. Read NEEDS-VALIDATION.md as seriously as the confirmed list, as Nic's notes advises.

Step 5. Run it again after fixes. Each run builds on the last.

To make this repeatable, here is our example of a CLAUDE.md block. It sticks to the practice the sources describe:

## Security audits (Bluemat example)
- For audits, use the security-audit skill: quick profile first, scoped to the paths I name.
- Keep output in the default ~/security-audit-skill/ folder, never inside the repo.
- Do not run target code outside the OS sandbox; leave those leads as needs_validation.
- After a run, list confirmed findings by severity and each needs_validation blocker.
- Do not apply fixes from the audit. I review each fix, with a test that fails before and passes after.

The last line mirrors the practice fireup.pro reports from Cloudflare's harness: a failing-then-passing test and human review for every fix. On Windows, Diego Rodriguez points to Claude Code's sandboxing docs, which say native Windows runs commands unsandboxed, and suggests WSL2.

Where it breaks

One run is a sample. The README says that in Cloudflare's tests "a single run found roughly half of the vulnerabilities that repeated runs found in total," a figure Nic's notes repeats. Budget for several passes, and don't treat a clean report as proof. Digital Zoom Studio says Cloudflare's blog doesn't claim a false-negative rate. Diego Rodriguez and fireup.pro both say no false-positive rate is published for the public skill.

The validators check format, not truth. Diego Rodriguez quotes VALIDATION-AND-REPORTING.md: "Validator success proves format and ledger consistency only." The real filter is the chain of verifiers, and then you.

Without a sandbox, the audit stays static. Installing the skill doesn't set one up, per fireup.pro. Diego Rodriguez writes that Claude Code's built-in sandbox doesn't document CPU, memory or process limits, so he reads it as a partial layer. He also reports that Cloudflare's post says running its unshare-based sandbox in Docker needed seccomp=unconfined and apparmor=unconfined. His advice is a disposable VM with no production credentials.

Cost and runtime are unknown. No source gives token counts or run times for the skill itself. The only numbers are for Cloudflare's harness, and they differ by source. Diego Rodriguez reports about 100 initial findings in a 3–4 hour run on a ~30K-line repo. fireup.pro reports around 80 distinct bugs in roughly 3 hours. Diego Rodriguez also notes Claude Code sub-agents count toward your usage limits, with a default cap of 20 concurrent. For Anthropic's own multi-agent scanner, VibeDoctor cites Anthropic as saying scans are nondeterministic and a full scan can take a while and use a significant number of tokens. Expect similar behavior here, though no source measures it for this skill.

Model and scale questions are open. The README names no recommended or tested model. No source says how it behaves on very large repos or monorepos. Digital Zoom Studio notes it audits one repository at a time. The minimum Node.js version for the .cjs validators isn't stated.

Fixes need care. fireup.pro reports Cloudflare saw model-written patches that fixed the bug but broke dependent code. The skill describes fixes but never modifies target source, per Diego Rodriguez, and Cloudflare's harness fixer isn't in this repo.

Some versus-the-hype checks:

Sources