How to audit your app's security with an AI agent
By Taku Mambwere, Co-founder, Velorum. Updated 30 November 2026.
Install Cloudflare's free security-audit skill in your coding agent (for example Claude Code), open the agent in your app's folder and ask it to security audit this codebase: agents map your code, hunt for weak points, try to disprove each candidate and write a report. The skill does not change your code and only marks a finding confirmed after a safe test run in an OS-enforced sandbox, so you read the report and apply the fixes you approve, one at a time.
| Phase | Cloudflare's name | In plain words |
|---|---|---|
| 1 | Reconnaissance | Agents map your code base: how it is built, where input comes in, and where it should stop trusting what it is given |
| 2 | Coverage-led hunting | Separate hunter agents look for weaknesses, area by area, and a critic looks for gaps |
| 3 | Candidate validation | A fresh agent tries to disprove each candidate |
| 4 | Structured output | Results are written to findings.json and checked by a script |
| 5 | Independent record verification | Fresh agents check the final records against your source |
| 6 | Target-neutral reporting | You get REPORT.md, FINDINGS-DETAIL.md and NEEDS-VALIDATION.md |
Step 1: Get the skill
The skill is called security-audit. It is Cloudflare's, not mine. It lives at github.com/cloudflare/security-audit-skill, free under the MIT licence. Velorum is not affiliated with Cloudflare.
It came out on 18 June 2026 with the post Build your own vulnerability harness, which says: "Along with this blog post, we're releasing the initial skill we used to develop the harness". The skill facts here were checked against its files at commit c1c8a8c (14 September 2026) on 24 November 2026.
To install it, copy the command from Cloudflare's README (it is also on the drop page with a copy button). Open your coding agent (for example Claude Code) in your app's folder, say "run this command to install a skill", and paste it.
Installing starts nothing. The audit starts when you ask your agent for it. The first of Cloudflare's usage examples is one line: security audit this codebase.
Step 2: Check what you need
From the README's requirements, you need three things. A coding agent whose model can use tools and run sub-agents side by side. The skill hands the work to separate agents. Node.js. The skill's two checker scripts run on it. An OS-enforced sandbox, if you want confirmed findings. That is a locked area on your computer where code runs with no internet and no reach into your files.
The sandbox matters. The skill only marks a finding confirmed after it has safely run a test on your code. Without a sandbox it does not run your code: the README says the workflow "keeps the lead as needs_validation instead of executing target code", and the report says what is still unproven.
So without a sandbox, expect leads and no confirmed findings. That is fine to start with. A lead with a clear trail through your code is still worth a close look.
Step 3: Start small
A run uses a lot of your usage (see what it costs, below), so start small. The skill has three profiles: quick, standard (the default) and deep. Cloudflare describes quick as "a bounded pass for small targets, re-runs, or a fast first look". You can also set a budget, which is the maximum number of agent invocations across all phases.
My advice, not the skill's: begin with quick and a budget of 15. The smallest quick run reserves six of those before any hunting: four to map, one critic and at least one verifier. The skill says a budget can still be exceeded if a run turns up many candidates, and that it must tell you when that happens.
A quick or scoped run is a partial pass. The report lists what was left out.
Step 4: Read the report
By default the reports land outside your app, in a security-audit-skill folder in your home folder, one run-<N> folder per run. Keep that folder private. It lists the weak points in your app.
Each result ends up with one of three verdicts: confirmed (only after a safe test run in a sandbox), needs_validation or rejected. Read the report in order: what was covered and what was not, then confirmed findings, then the leads.
It will not change your code. SKILL.md says: "The audit describes fixes; it does not modify target source." You decide what goes in.
One run does not find it all. SKILL.md tells the agent "Never imply that one run exhausts the target", and Cloudflare's README says that in their test runs "a single run found roughly half of the vulnerabilities that repeated runs found in total."
It does not prove your app is safe. An audit lowers risk. If your app handles money, health data or many people's private data, a professional security review is still worth it.
Step 5: Apply the fixes you approve
This part is my advice. It is not in Cloudflare's skill.
- Take one fix at a time. Your agent makes a new branch and shows you the smallest change.
- You say yes. Then the agent applies it.
- Test it. Have the agent check what a test connects to before running it. If it points at a live database or a paid service, do not run it.
- Commit, then move to the next one.
- If a finding involves a leaked password or key, change that secret at the provider yourself. Removing it from the code does not undo the leak.
Step 6: Run it again
When the approved fixes are in, run the audit again on the changed code. The README says runs on the same repo are additive: the skill reads its earlier run and aims at the gaps and at what changed.
New flaws keep being published. The CVE Program published 20,696 CVE records in the second quarter of 2026 and 36,962 in the third (read 23 November 2026). Those are all published CVEs across all software, not a count of flaws found by AI.
So when a library you use announces a security fix, update it, then run the audit again if your code leans on the part that changed. I would also run it after a big change, like new sign-in, payments or uploads, and before a launch.
What it costs in usage
The skill is free. A run uses a lot. The skill counts spend in agent invocations, meaning how many separate agents it starts (SKILL.md, "Cost budget"). There is no fixed number. It follows the size of your code base, the profile and the budget you set.
For scale: two audits of apps I work on, with different profiles and scopes, used 62 and 75 agent invocations. On a Claude Pro plan (about $20 billed monthly) or Max (from $100) (read 24 November 2026), a run that size is a lot of your usage in one go.
Why it is worth doing
- Google's Threat Intelligence Group reported on 16 November 2026 that in the past quarter it identified threat actors using LLM frameworks to automate finding and exploiting vulnerabilities with no human in the loop.
- Anthropic's September 2026 misuse report says that with AI, criminal cyber conduct "has increased in scale and severity."
- On 12 November 2026 Unit 42 wrote up attackers using autonomous AI to target organisations, and noted that "the vulnerabilities the attackers exploited were known".
The full setup
The skill and Cloudflare's install command are on the drop page, /resources/security, with credit to Cloudflare.
Under it is my run guide, one free file (the .md, or the PDF to read). You attach it in your coding agent and say "run my first security audit". It tells your agent to check your setup, agree a small scope and budget with you, run the skill, read the report with you in plain words, and apply the fixes you approve one at a time.
Where Velorum fits
You don't need us for any of this. The skill and the run guide are enough to run it yourself. Velorum does not offer security audits: if your app handles money, health data or many people's private data, a professional security review is the better fit.
Where we help at Velorum is building agents and automations for the jobs your team repeats. If that's where you are, book a call.
Questions
Does the skill change my code?
No. SKILL.md says: "The audit describes fixes; it does not modify target source." You decide which fixes go in, one at a time, after your yes.
Is it free?
The skill is free under the MIT licence. The usage is not: on a Claude Pro plan (about $20 billed monthly) or Max (from $100), a large run is a lot of your usage in one go, so start with quick and a budget.
Do I need a sandbox?
Not to start. Without an OS-enforced sandbox the skill does not run your code and keeps each lead as needs_validation. It only marks a finding confirmed after a safe test run in a sandbox (README, requirements).
Does one run find everything?
No. Cloudflare's README says that in their test runs "a single run found roughly half of the vulnerabilities that repeated runs found in total." Runs on the same repo are additive, so run it again after your fixes.
Which coding agent do I need?
Cloudflare names no agents. The requirements are a coding agent whose model can use tools and run sub-agents side by side, and Node.js. The run guide's install steps were tested in Claude Code on 24 November 2026.
Does a clean report mean my app is safe?
No. An audit lowers risk. If your app handles money, health data or many people's private data, a professional security review is still worth it.
Sources
- Cloudflare, security-audit skill (README, checked at commit c1c8a8c on 2026-11-24)
- Cloudflare, SKILL.md
- Cloudflare, LICENSE (MIT)
- Cloudflare, commit c1c8a8c (2026-09-14)
- Cloudflare, Build your own vulnerability harness (2026-06-18)
- Claude pricing (read 2026-11-24)
- CVE Program metrics (read 2026-11-23)
- Google Threat Intelligence Group (2026-11-16)
- Anthropic, threat intelligence report (September 2026)
- Unit 42, Palo Alto Networks (2026-11-12)
Want the jobs your team repeats turned into systems that run on their own?
Book a call