Cloudflare Security Audit Skill: Free AI Code Check for Sites
How to run Cloudflare's free security audit skill on a small site or plugin, read its confirmed and needs-validation findings, and fix common issues first.

Most small websites and WordPress plugins never get a proper security review because a professional audit costs more than the whole project. Cloudflare's open-source security audit skill gives a coding agent a structured, multi-phase way to look for real vulnerabilities and write findings you can check. This guide shows who it suits, how to install and run it on a small codebase, how to read the results, and which fixes to tackle first.
What Cloudflare's security audit skill is
The repository cloudflare/security-audit-skill describes itself as "a coding-agent skill for multi-phase security audits with independently verified, machine-readable findings." It is MIT-licensed. In the month to 21 November 2026 it was the fastest-rising repository on GitHub's monthly trending page, with about 44.6k new stars and roughly 76k in total.
It is a skill, not a scanner you download and click. You install it into a coding agent, then ask the agent to audit a folder. The skill tells the agent how to work in phases:
- Reconnaissance: map the architecture, trust boundaries and input surfaces.
- Coverage-led hunting: split the code into units and send isolated "hunters" through them.
- Candidate validation: give each suspected issue to a fresh verifier that tries to disprove it.
- Structured output: write findings to
findings.jsonand validate them against a schema. - Independent record verification: fresh agents re-check the final claims.
- Reporting: produce
REPORT.md,FINDINGS-DETAIL.mdandNEEDS-VALIDATION.md.
The "try to disprove it" step is the interesting part. AI code review often produces confident false alarms; this design pushes the agent to kill its own weak findings before you see them.
Who should use it (and who should not)
Good fits:
- Freelance developers about to hand over a custom site, API or plugin.
- Small agencies maintaining several client codebases.
- Makers of WordPress plugins, browser extensions or small SaaS tools.
Not a good fit:
- A site where you only use a hosted builder and have no code. There is nothing for it to read.
- Anyone hoping to skip a professional audit for payment, health or other high-risk systems. Treat it as a first pass, not a certificate.
Requirements before you run it
The README lists three:
- A coding agent whose model supports tool use and parallel sub-agents.
- Node.js, used by the validators.
- An OS-enforced sandbox for running target-controlled code.
That last point matters. Without a sandbox, the skill keeps leads as needs_validation and does not execute the target's code. That is safer, but it means fewer confirmed findings.
Expect it to use a lot of your AI plan. The page does not give token numbers, but the design runs many isolated agents and several verification passes. The README also notes that in the authors' tests, a single run found roughly half of the vulnerabilities that repeated runs found in total, so serious audits mean more than one run.
How to install the security audit skill
From the README, install it with the cross-agent skills installer:
npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit
Add --global to install it for all projects. Run npx skills --help to choose which agent receives it.
Then open your agent in the project folder and use one of the README's example prompts:
- "security audit this codebase"
- "find security vulnerabilities in ./src"
- "do a security review, output to ~/audits/my-project"
If you do not choose an output folder, results go to ~/security-audit-skill/<repo-name>/run-<N>. The README says it writes inside your repo only if you pick a directory that version control ignores, which keeps reports out of your commits.
A safe first run on a small project
- Work on a copy. Clone the project into a new folder. Remove
.envfiles and real credentials, or replace them with dummy values. - Narrow the scope. Point it at
./src,./apior the plugin folder instead of the whole monorepo. - Use a sandbox if you can. A container or VM for running the target code lets more findings be confirmed.
- Write reports outside the repo. Use the output path option.
- Run it twice on important code and compare the reports.
How to read the findings
Every finding gets one of three verdicts:
- confirmed: a complete source trace and an observed result. Fix these first.
- needs_validation: a lead with one unresolved fact and no severity yet. A human must check it.
- rejected: a candidate a verifier disproved. Useful for understanding what was checked.
The README also makes a point many tools blur: "Defense-in-depth gaps are not vulnerabilities." A missing secondary protection is logged as a hardening note, not a bug. Keep those on a later to-do list.
Fix the common issues first
On small sites and plugins, these classes come up again and again. The skill's hunting guidance covers them, among many others:
- Injection: user input reaching SQL queries, shell commands or HTML without escaping.
- Broken access checks: an admin action or API route that never checks who is calling it.
- Client-side issues: DOM injection, unsafe
postMessagehandling and prototype pollution. - Webhooks and uploads: unsigned webhooks, file uploads without type and size checks.
- Supply chain: outdated dependencies, risky install scripts and CI secrets exposed to forks.
- Data lifecycle: exports, backups and deletions that leak another customer's data.
For each confirmed finding: reproduce it, write the fix, add a test that fails before the fix and passes after, then re-run the skill on that folder.
If security basics are new to you, start with basic website security and using Cloudflare for small websites. Because this tool hands your code to an agent, read the prompt-injection safety guide too, and agent skills explained for how skills work.
Telling clients about it
Be honest in your handover notes. Something like: "Before delivery I ran an AI-assisted security review using Cloudflare's open-source security-audit skill. Confirmed issues were fixed and re-tested; items needing validation are listed below." Never call it a certified audit.
Key takeaways
- Cloudflare's security audit skill is a free, MIT-licensed skill that guides a coding agent through a six-phase audit.
- Findings are confirmed, needs_validation or rejected; fix confirmed ones first.
- Run it on a cleaned copy, ideally in a sandbox, with reports written outside the repo.
- One run finds only part of the issues; repeat runs on important code.
- It is a strong first pass, not a replacement for a professional audit.
FAQ
Does the security audit skill only work with Claude?
The README does not name specific agents. It requires an agent whose model supports tool use and parallel sub-agents, and npx skills lets you choose the target agent.
Will it change my code?
Its job is to audit and report. Review any fixes yourself before committing them.
Is it safe to run on client code?
Work on a copy without real secrets, get the client's permission, and remember the code is processed by your AI provider.
Sources
Read next
NEW
Claude SEO Skill: Run a Free Technical SEO Audit With AI
How to install the Claude SEO skill, run a free technical SEO audit on a small site, read the report and fix what matters first for local businesses.
Read more
NEW
WordPress 7.2 Arrives Dec 8: What Small Site Owners Should Test
WordPress 7.2 is planned for 8 December 2026 with the Ipsum theme, faster uploads and an admin refresh. Here is what changes and a pre-update test checklist.
Read more
NEW
WordPress Security Update 7.1.5: Auto-Update Without Breakage
WordPress security update 7.1.5 is the fourth security release in two months. How to keep auto-updates on safely, plus a 10-minute monthly routine.
Read more