Tool profilesTested by us

Cloudflare security-audit skill: a free AI audit of your own code, and what it found on our site

Cloudflare's open-source skill turns a coding agent into a security auditor that maps your code, hunts for flaws and tries to disprove its own findings. We read it before installing, ran it twice on our own worker and fixed what it found. Here is what it does, what it needs, what it missed and what we could not check.

TypeAI agent skill for security audits of source code (runs inside a coding agent)
Reviewed23 Nov 2026
VersionNot stated in the README; we read commit c1c8a8c of 14 Sep 2026
License and cost

MIT licence, free (you pay for the AI model tokens it uses)

Best for

Developers and small teams who already work with a coding agent such as Claude Code and want a structured second look at their own code, with findings that say what is confirmed and what is still unproven.

Watch out for

It needs a real sandbox to run your code, a coding agent that can launch parallel sub-agents, and several runs, because one pass finds only part of the flaws. It reads and reasons: a clean report is not proof that the code is safe.

← All tool profilesNo. 14 / 21

Watch the short video

The video loads from YouTube (privacy-enhanced mode) only when you press play.

In one sentence

You tell your coding agent "security audit this codebase" and the skill makes it work like a small security team: it maps the code and where the trust boundaries are, sends separate agents to hunt for flaws, hands every suspected flaw to a new agent whose only job is to prove it wrong, and writes a report that separates what is confirmed from what is still unproven.

Who it is for

Anyone who builds software with a coding agent (Claude Code, Codex and similar) and wants a structured review of their own code before shipping, not a list of generic warnings. It is made for source code you own and can read. It is not a scanner you point at someone else's website.

What it is, from the sources

  • It is a skill: a folder of instructions, checklists and two small validation scripts that your agent loads. Nothing runs by itself; your agent does the work.
  • Cloudflare says it is the starting point of the system they built to find their own vulnerabilitiesVulnerability A weakness in software, a setting or a process that an attacker could use to get in or do harm. Tap again to open the glossary. In the blog post they describe a skill of about 450 lines that they ran on one repository before building a larger pipeline around it. They say the published version was "slightly cleaned up" and "substantially the same".
  • Licence: MIT. The repository's README says questions go to [email protected].

What it does, phase by phase

The README lists six phases. Each one uses fresh, isolated agents:

  1. Reconnaissance. Maps the architecture, trust boundaries, input points and what has been covered, and writes them to architecture.md and a coverage-ledger.json.
  2. Coverage-led hunting. Assigns hunters to units of that ledger. Coverage critics look for gaps.
  3. Candidate validation. Every candidate goes to a fresh verifier that tries to disprove it. The agent that checks a finding is never the one that found it.
  4. Structured output. Results go to findings.json, in one of three verdicts: confirmed, needs_validation or rejected, checked against a JSON schema.
  5. Independent record verification. Fresh agents check the source claims in the final records.
  6. Reporting. Produces REPORT.md, FINDINGS-DETAIL.md and NEEDS-VALIDATION.md.

The verdicts mean different things. Confirmed needs a full trace through the source and a bounded, observed result. Needs validation means a specific fact is missing, such as a server setting you cannot see in the code, and it gets no severity. Rejected records a suspicion that was disproved.

The skill also carries extra checklists for different kinds of code: web and authentication, browser code, AI and LLM apps, cloud setup, memory-unsafe code, supply chainSupply chain attack An attack that reaches you through something you already trust and install, such as a code package, a tool or a provider. Tap again to open the glossary, resource exhaustion and more. The agent picks the ones that fit.

The good

  • It separates proof from suspicion. A finding is either confirmed with evidence or it says exactly what is missing. That makes the report honest and easy to act on.
  • It argues with itself. Our verifiers corrected the hunters: they cut an impact claim that went too far and narrowed another to the cases that really apply (details below).
  • It is defensive by design. SKILL.md says to read the source first, use dummy data only and never touch live or shared systems.
  • Several runs add up. The README says later runs use earlier ledgers to target gaps instead of starting again.
  • Free and open. MIT licence, plain text you can read before you use it.

The limits it admits

  • One run is not enough. The README says that in Cloudflare's tests a single run found roughly half of the vulnerabilities that repeated runs found. The blog says the same, and adds that the ones found skew to the simpler bugs.
  • It needs a sandboxSandbox A fenced-off area where a program runs with limited access, so if it misbehaves it cannot touch the rest of the system. Tap again to open the glossary to run your code. The requirements ask for an OS-enforced sandbox with no external network, an empty environment, read-only target and limited resources. Without it, the skill does not execute anything and keeps the lead as needs_validation.
  • It needs a capable agent. Requirements: an agent whose model can use tools and run parallel sub-agents, plus Node.js for the two validation scripts.
  • It is a single-repository skill. The blog says the larger Cloudflare system adds a database, resumable runs, de-duplication and cross-repository tracing. The post says only the skill was released with it and that the harness itself might follow.
  • It costs tokens. Cloudflare says the hunting stage takes most of the compute in their own system. See what we measured below.

When not to use it

  • As your only security check. It is a second pair of eyes, not a replacement for tests, dependency checks or a human review.
  • On code you may not send to your AI provider.
  • On a live service: it is designed to work on source and local fixtures only.
  • If you read "no findings" as "safe". The README itself says repeated runs find more.

What it costs you

The skill is free. The agents it launches use your model's tokens. For our two runs, the harness reported about 445,000 tokens across 11 sub-agents for the first (quick) run and about 942,000 across 18 sub-agents for the second (standard) run: roughly 1.4 million in all. That does not include the session that coordinated them, and we did not convert it to money. The target was small: 44 to 51 KB of source in 10 files.

How we tried it, and what we changed

We did not install it blindly.

  1. We read it first. We cloned the repository into an empty folder and read SKILL.md. The two validation scripts only use Node's file, path and text modules: no network, no running of other programs. We searched the markdown for download commands and hidden instructions and found none. We pinned commit c1c8a8c and copied it by hand into the project instead of running the install command.
  2. We chose a target. A snapshot of our own public worker (the code behind the comments, the tool-suggestion form and the passive header scanner on this site): 10 files, no secretsSecret (API key, token, password) Any piece of text that proves to a service that you are allowed in, such as an API key, a database password or an access token. Tap again to open the glossary.
  3. We ran the quick profile, source only. Four reconnaissance agents, three hunters, three verifiers and one coverage critic: 11 of a budget of 20. All of them were read-only. No code of ours was executed, because our Windows machine has no sandbox of the kind the skill requires.
  4. What we adapted. Instead of pasting every checklist into each hunter's prompt, we pointed the hunters at the skill's files to read. We used read-only agents for all roles.
  5. We fixed, then ran it again. The second run used the standard profile: 12 coverage units at first and 5 more after the critic, two waves of hunters (ten in all), a fresh verifier for each candidate and two coverage critics. 18 agents of a budget of 40. Still read-only: the skill executed none of our code. This time we also got its validators to run (next section).

What went wrong on our side

On native Windows the two validation scripts refuse to start (OS no-follow and nonblocking input protection is unavailable). For the first run that meant it counted as incomplete and its findings file was never checked against the schema. For the second run we got them working by preloading a small script of our own that defines the two operating-system options the validators look for (opening files without following links, and without blocking). With that, both passed: 20 coverage units and 2 findings valid. Be clear about what this proves: the data is well formed and the coverage states are consistent. The validators' protections against symlinks and special files are not enforced on Windows, so it does not prove that the input path is safe. The README does not mention Windows; the scripts seem to assume Linux or macOS. If you work on Windows, plan for WSL or a Linux container.

What it found on our own site

First run: three candidates

Each was re-checked by a fresh agent, and we fixed all three.

1. Anyone could hide any comment: confirmed from the code, low severity. Our comment-report endpoint had no captcha, no limit and no check of who was reporting. Three requests from one person hid any approved comment. The counter was not reset when we approved it again, so one more report hid it again. The comment form itself had a captcha and a per-person limit; the report path did not. Impact: censorship of public comments, no data exposed, and comments are moderated first.

*Fix:* a new table keeps one row per reporter and comment, so three reports need three different reporters. Only published comments can be reported, a person can send at most 20 reports an hour, and approving a comment resets its count.

2. Our scanner's block list had a hole: confirmed in the code, unproven in practice. The scanner fetches a site the visitor names, so it must refuse private addresses (this kind of abuse is called SSRF: making a server fetch things it should not). It compared names such as localhost and .internal as plain text. A trailing dot, as in localhost., is the same name for the network but not for that comparison. The verifier confirmed the bypass by reading the code and scoped it: numeric addresses with a dot at the end were already blocked. Whether Cloudflare's runtime could reach anything through such a name is a platform fact we could not see, so it stays needs_validation.

*Fix:* strip trailing dots before the checks, and rebuild the address from the cleaned name, so redirects are covered too.

3. A file read with no size limit: unproven, low. After the scanner got the headers of a site's security.txt, its 8-second timer was switched off and the whole body was read before keeping the first 4,000 characters. A hostile site could stream a body without end. The verifier cut the claim down: the code shows per-request cost, not harm to other visitors, and that depends on Cloudflare's limits.

*Fix:* read at most about 4 KB, with the same time limit.

We also made a malformed Origin header return a clean refusal instead of an error. And what it did not find: no secrets in the code, no SQL injectionSQL injection A flaw where text typed into a form or a link is run as a database command, letting an attacker read or change data. Tap again to open the glossary, and no way to inject script into a page.

How we checked our fixes

We tested the fixes locally with fake data and a real SQLite database, using the same table definitions. The new tests fail on the old code: the report tests fail, and the test for the endless body hangs, which reproduces problem 3 in a simulation. After the fixes they pass. Then we created the new table, deployed, and checked on the live site that the scanner refuses localhost. and that the report endpoint answers.

Second run, after our fixes

We fixed, then ran it again on the new code. Both of its findings were holes in our own fixes.

4. One person could still pose as three reporters: needs validation, low. Our first fix counted reporters by a hash of their network address. An IPv6 visitor does not have one address but an enormous block of them (a /64 is the usual allocation), so someone with a block could still present three "reporters" and hide a comment. The same weak identity also gave each address its own hourly allowance for comments and suggestions (each still needs a solved captcha). The verifier confirmed the mechanism from the code and rated it low: the admin can restore the comment, and it only works if the site is served over IPv6 to someone with such a block, which we could not see.

*Fix:* the identity is now the /64 block. A hunter also noticed that the same address written in compressed form (2001:db8::1:0:0:1) and in full form is the same network but different text, so the helper expands the address first. An IPv4-mapped IPv6 address counts as the IPv4 address.

5. The admin lock-out had the same hole: needs validation, low. Ten wrong admin guesses in a minute lock a client out, but the lock was keyed on the raw address, so the same trick avoided it. We had applied the block identity everywhere except there. Whether it matters depends on the strength of the admin token, which we did not look at: with a long random token it is immaterial. The lock-out lives inside each server instance, so it is a speed bump. The verifier's advice is the one we repeat: use a long random token and add a rate-limiting rule in Cloudflare, which is global.

*Fix:* the lock-out uses the same block identity. A trade-off we accept: anyone sharing the admin's block can keep the admin at "too many attempts" for a minute by sending wrong tokens; the admin can switch network.

What else the hunters flagged. These were notes, not rated findings. We fixed each one and proved it with a real SQLite database:

  • Deleting a comment that had replies crashed with FOREIGN KEY constraint failed. Now the comment, its replies and their report rows go in one transaction.
  • Replies of a hidden comment stayed public through the API (our page hid them, the API did not). The API now filters them, and a reply sent while its parent is hidden or deleted gets a clean refusal.
  • The moderation queue could bury a new comment behind 100 old hidden ones. Pending comments now come first.
  • The body size cap came after reading the whole body. It now counts bytes while streaming and cancels at the cap (10,000 bytes), so a body with no length header is cut after about 10 KB instead of being read to the end.
  • The captcha check had no timeout (now 5 seconds), the report rate check was not atomic (now it is), and the scanner refuses reserved suffixes such as .localdomain and .test.

A bug that was not a security bug. One hunter noticed in passing that our scanner page called a text function that cannot survive being sent as JSON, so a site with a too-short HSTS setting would have broken the result display. We checked the built page, confirmed the function was missing, and fixed it. None of our tests had seen it.

A bug our latest fix introduced. The coverage critic noticed that the filter we had added to hide replies of hidden comments made the public list read every published comment on each page load. We rewrote it as a lookup by primary key, and the list now serves the newest 300 comments instead of the oldest.

The tests for all of this fail on the previous code. For example, with a delay added to the fake database as a real one has, 8 simultaneous comments from one address were all stored before the fix and 3 after.

What the second run did not settle

The final critic still named three areas: the public comment list after our latest fix, the admin lock-out as a way of locking the admin out, and what the identity change does to data stored under the old one. We stopped there on purpose, handled them by hand, and the skill gave no verdict on that code. The skill's own rules call that run incomplete, and we say so. The lesson we take is that the second run was worth it: both of its findings were mistakes in our first fixes.

Typical setup mistakes

  • Running it without a sandbox and letting the agent execute code it does not trust. The skill's own rule is not to.
  • Running it once and filing the report as "done". Our second run found two holes in our own first fixes.
  • Fixing and not running it again. A fix is new code, and new code has new holes.
  • Pointing it at a huge repository with no scope or budget. The skill supports profiles (quick, standard, deep), scoped runs and a budget in agent calls; set one.
  • Sending code to an AI provider you have not checked.
  • Treating needs_validation as noise. Each one names the exact fact to check.

How to try it

Cloudflare's README gives this install command, which uses the Skills tool (we did not use it ourselves, we copied the reviewed files by hand):

npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit

Then start your agent inside the codebase and say, for example, "security audit this codebase". Read SKILL.md first, ask for a small scope, and keep the output folder outside your repository: by default it writes to ~/security-audit-skill/<repo-name>/run-<N>.

What we could not confirm

  • We did not execute any of our code through the skill, so nothing we report was observed running. The first run's comment finding is confirmed by reading the code and the SQL, then by our local tests. The rest depend on Cloudflare's runtime, on whether our zone serves IPv6, or on the strength of a secret we did not look at.
  • Both runs are partial. The first used the quick profile on a 10-file snapshot. The second used the standard profile in two waves and we stopped it: the final critic still named three areas, which we handled by hand and the skill did not check. So the second run counts as incomplete, and "nothing else found" still means nothing.
  • Our validators passed only through a Windows workaround that skips their protections against symlinks and special files.
  • We do not know how it behaves on large repositories, other languages or with other agents.
  • We did not read Cloudflare's results beyond the blog post and the README, and the blog's figures describe their own larger system, not this skill.
  • The blog post describes the original skill as seven phases (the last submits to an internal system), the published one lists six. We followed the published six.

Sources

Follow us

New profiles and security news: YouTube (@safet2ship) and Instagram (@safet2ship).

YouTube channel · Instagram

More tool profiles

Same topic first, then the newest.

All tool profiles
AI skillsOfficial docs

Claude Security

Anthropic's plugin that sets several agents to look for vulnerabilities in your code

Best forAnyone already using Claude Code who wants a second review of their own code, or of a change before merging it.

Reviewed 4 Dec 2026
AI skillsOfficial docs

SkillSpector

Check an AI agent skill before you install it

Reviewed 29 Oct 2026
MonitoringOfficial docs

Fail2Ban

A free guard that bans IP addresses after too many failed logins

Best forAnyone who runs their own Linux or Unix server with SSH, a web server or a mail server open to the internet and wants the constant password guessing to stop filling the logs and hitting the login page.

Reviewed 2 Dec 2026

Our own free checks

Small tools we built: they run in your browser and store nothing.

All our tools
Before you launchPaste an address

Website security check

Paste your site address and get a grade, a plain-language report and copy-paste fixes for HTTPS, security headers and cookies.

FreeOpen the tool
Before you launchYour file, in your browser

Keys-in-your-code check

Find API keys and secrets that your app exposes in public files. Built for apps made with AI.

FreeOpen the tool
What you leakYour file, in your browser

Metadata check

See what hidden data your photos, PDFs and Office files carry (author, software, dates, GPS location) before you share them. Runs in your browser.

FreeOpen the tool
What you leakChecklist

Exposure check

A self-check of what your company leaks in public (files, email records, accounts, repositories), with links to the tool for each point.

FreeOpen the tool
Newsletter · every Friday · free

Get the weekly security briefing

One email every Friday: what to act on now and what to plan this week, in plain words. The free one-page runbooks come in your welcome email. You confirm your address first.

Subscribe for free

Press / to search from any page