Prasoon Soni

All writing

Is your vibe-coded app safe? Scan it with Cloudflare's security-audit skill

· 12 min read · Security, Claude, Cloudflare

Apps built in a weekend with AI tools often ship with their keys and data wide open. What goes wrong, how Cloudflare's open-source security-audit skill finds it, and exactly how to run it on your own codebase.

400+secrets exposed
Topic
App security · AI agents · Cloudflare
Based on
Cloudflare's skill repo and blog (2026), Escape.tech research (2025)
Edition
November 2026

TL;DR

  • Escape.tech scanned over 5,600 public apps built on vibe-coding platforms and found more than 2,000 vulnerabilities, 400+ exposed secrets and 175 instances of personal data, including medical records and bank account numbers.
  • The usual causes are simple: secret keys shipped in the frontend, database access rules left off, and API routes that never check who is calling.
  • Asking your coding agent "is this safe?" once isn't a real check. One agent reads the code once and then judges its own findings.
  • Cloudflare open-sourced security-audit, an agent skill (MIT licence) that runs a six-phase audit: separate agents map the code, hunt for bugs, try to disprove each bug, and re-verify the survivors before anything reaches the report.
  • It's the skill Cloudflare's own vulnerability harness grew from. That harness went on to cover 128 repos in about six weeks.
  • Install it with one command, ask your agent for a security audit, and run it more than once: in Cloudflare's tests a single run found roughly half of what repeated runs found.
5,600+
vibe-coded apps scanned by Escape
400+
exposed secrets found
2,000+
vulnerabilities found
6
phases in one audit
128
repos covered by the harness it seeded

Why vibe-coded apps leak

"Vibe coding" means building an app by describing it to an AI tool such as Lovable, Bolt, Cursor or Claude Code and shipping what it generates. It's fast, and it lets people who have never written a backend put a full-stack app online in a weekend. The catch is that security settings are easy to miss when you never read the code.

What the research found

In 2025 the security company Escape.tech looked at more than 5,600 publicly reachable apps built on vibe-coding platforms, mostly Lovable front-ends on Supabase back-ends. Scanning them from the outside, it found over 2,000 vulnerabilities, more than 400 exposed secrets and 175 instances of personal data, including medical records, bank account numbers (IBANs), phone numbers and emails.

The three holes that keep showing up

  1. 1

    Secret keys in the frontend

    Everything in your JavaScript bundle is public: anyone can open DevTools and read it. A key with real power, such as a database service key or a payment secret, must live only on a server.

  2. 2

    Row-level security switched off

    Supabase lets the browser talk to the database directly, which is only safe when row-level security (RLS) policies decide who can read and write each row. With RLS off or too loose, anyone with the public URL and key can read the table.

  3. 3

    Routes that never check the user

    An API route that returns data without checking a session (or only checks it in the UI) answers anyone who calls it directly.

  4. 4

    Nobody looks

    The app works, so it ships. These bugs don't show up as errors; they show up when someone else finds them.

Why "AI, is my code safe?" isn't enough

The natural fix is to ask the same AI that wrote the app to review it. That catches some things, but it has two built-in weaknesses.

It reads once

One agent, one pass, one context window. On a real codebase it covers a slice, fills its memory and summarises the rest. Cloudflare found that even its full multi-agent skill catches only about half of the bugs in one run.

It grades its own work

The agent that raised a concern is the one deciding whether it's real. Cloudflare's harness write-up is blunt: a hunter left to check its own findings tends to approve all of them, real or not.

One agent
reads the code oncefinds a few issueschecks its own findings"looks good"

The fix is structural: split the work so that finding and checking are done by different agents, and keep going until the coverage is real.

The security-audit skill, from zero

An agent skill is a folder of instructions (a SKILL.md plus supporting files) that a coding agent loads when a request matches it. Install one and your agent gains a new, repeatable way of working without you writing a long prompt each time.

security-audit is Cloudflare's skill for security reviews of codebases, APIs, services, CLI tools, libraries and daemons. It's open source under the MIT licence at github.com/cloudflare/security-audit-skill.

Two modes

Guidance mode (default)

For security questions, a focused review or one suspicious file. The agent uses only the parts of the skill it needs and doesn't create report files.

Full audit mode

When you explicitly ask for an audit or pen test of a codebase, or ask for report files. The agent runs all six phases and writes the reports.

What's in the box

  • Phase guides: reconnaissance, hunting, validation and reporting.
  • Attack-class guides for web and auth, client-side, AI and LLM apps, cloud and deployment, supply chain, memory safety, data isolation, messaging and more.
  • A JSON schema for findings and two zero-dependency validators (Node.js) that check the findings file and the coverage ledger mechanically.

How an audit runs

A full audit runs six phases, coordinated by one "parent" agent that delegates work to isolated sub-agents.

  1. 1

    Reconnaissance

    Map the architecture, trust boundaries and input surfaces into architecture.md, plus a coverage ledger that lists every unit that needs checking.

  2. 2

    Coverage-led hunting

    Isolated hunters take units from the ledger and try to break them, attack class by attack class. Coverage critics look for gaps.

  3. 3

    Candidate validation

    Every candidate bug goes to a fresh verifier whose job is to disprove it.

  4. 4

    Structured output

    Results are written to findings.json and checked against the schema by the validators.

  5. 5

    Independent verification

    New agents re-check every final claim against the source. If a record changes materially, another verifier checks it again.

  6. 6

    Reporting

    The human-readable reports are generated from the verified records and the coverage ledger.

"The agent that checks a finding is never the agent that found it." — the skill's README

Three possible verdicts

VerdictMeaningSeverity?
confirmedA full source trace and a bounded, observed resultYes, critical to informational
needs_validationA real lead blocked on one exact unresolved fact (for example, a setting that isn't in the repo)No
rejectedA candidate the verifier disprovedNo

How severity is judged

  • Critical: someone with no account gets code execution, full database access, or takes over arbitrary accounts.
  • High: an explicit security control is fully defeated with real consequences, such as an auth bypass or reading another tenant's data.
  • Medium / low / informational: real but narrower effects, down to minor disclosures.

Severity is likelihood × impact for what was actually demonstrated. A missing "best practice" with no reachable impact is reported as a hardening note, not a vulnerability.

How it stays safe while it hunts

A security audit that runs your code could do damage of its own. The skill sets strict limits.

Read first

Source inspection is read-only. The audit describes fixes; it doesn't edit your code.

Run only in a sandbox

Your code is built or run only inside an OS-enforced sandbox with no network, a clean environment and resource limits. Without one, the lead stays needs_validation instead of being executed.

Never touch live systems

No probing deployed endpoints, production accounts, real user data or paid APIs. Dummy users and secrets only.

Reports outside your repo

Output goes to ~/security-audit-skill/<repo>/run-<N> by default, and only into the repo if you choose a git-ignored folder.

Where it came from: Cloudflare's own harness

Cloudflare describes the skill as the starting point of its internal vulnerability-discovery harness. They began with a skill of roughly 450 lines run on a single repository and tuned the prompts until it surfaced real bugs. Then they lifted each phase into its own agent with a database behind it.

128
repos covered by the fleet scanner
~6
weeks from first run to fleet scanner
13,841
findings in their validation system
145
repos those findings span
0
times hunters invoked Semgrep in a month

The 13,841 findings come from several harnesses feeding one validation system, not from this skill alone.

Lessons they published

  • Use different models to find and to check. Their discovery and validation stages run on different models, so one model's blind spots get stress-tested by another.
  • Make every bug prove itself. Agents sometimes edited the source so their own exploit would work. Every confirmed finding now ships a proof-of-concept test that runs against the original, untouched code, plus a proposed patch.
  • Force a threat model. A hunter must say who the attacker is and which boundary is crossed before it can file anything. That removes "if you can write to the database, you can write to the database" non-findings.
  • Agents prefer reading code. They wired in the static scanner Semgrep, and in a month of runs the hunters invoked it zero times.

The skill vs the alternatives

ApproachWhat you getTrade-off
Ask your AI onceA quick read and an opinionOne pass, self-graded, no coverage record
Static scannersPattern matches for known bad codeFast and cheap, but noisy and blind to app-specific logic
Platform security checksBuilt-in warnings in tools like Supabase or your hostGood first line; only sees its own platform
security-audit skillMapped coverage, adversarially checked findings, severity and fixesFree and thorough; takes time and agent usage, and needs a sandbox to run code
Professional pen testExperts testing your deployed systemMost thorough for live systems; costs real money

Scan your own app, step by step

Before you start

  • A coding agent whose model supports tool use and parallel sub-agents (for example Claude Code).
  • Node.js installed: the skill's validators run on it.
  • Your app's code on your machine, ideally committed to git so you can see exactly what changes when you fix things.

Step 1 · Install the skill

From your project folder, with the Skills CLI:

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

Add --global to install it for every project instead of just this one. npx skills --help lists the agent-selection options.

Step 2 · Ask for an audit

Start your agent inside the app's folder and ask in plain words. The skill switches on by itself when the request matches. Any of these works:

prompts
security audit this codebase

find security vulnerabilities in ./src

do a security review, output to ~/audits/my-app

For a first, faster pass on a small app you can ask for a quick audit; for something high-stakes, a deep one. The skill records the profile it used and says when coverage is partial.

Step 3 · Read the report

By default the files land in ~/security-audit-skill/<repo-name>/run-<N>:

FileWhat it's for
REPORT.mdStart here: the summary, confirmed findings by severity, and coverage
FINDINGS-DETAIL.mdEach confirmed bug: the source trace, a safe reproduction and the smallest fix
NEEDS-VALIDATION.mdLeads that depend on something outside the code, such as a dashboard setting. Check these yourself
findings.jsonThe same records, machine-readable

Step 4 · Fix, then run it again

  1. Fix confirmed findings from critical down. The report names the smallest change for each.
  2. If a secret was ever in the frontend or in git history, rotate it in the provider's dashboard. Deleting it from the code doesn't un-leak it.
  3. Work through NEEDS-VALIDATION.md: many vibe-coded issues live in settings, such as RLS policies in the Supabase dashboard.
  4. Run the audit again. Runs are additive: the next one reads the previous ledger and findings, targets the gaps and re-checks changed code. Cloudflare found one run catches roughly half of what repeated runs find.

A two-minute self-check while it runs

  • Search your built frontend for words like secret, service_role, sk_live and private. Anything powerful there should move to a server.
  • In Supabase, open each table that holds user data and confirm RLS is enabled with policies that limit rows to their owner.
  • For every API route that returns or changes user data, find the line that checks the session on the server.

So, can your website get hacked?

Yes. Find out first.

Any app can have a hole, and apps generated quickly by AI often ship with the same few. The difference is who finds them first. A free, repeatable audit that maps your code, attacks it and makes every finding survive an independent check is now one command away.

When to use it

Great fit
  • Before launching an app you built with AI
  • Apps that store user data, payments or logins
  • After a big feature or refactor
  • Open-source projects you maintain
Not a replacement for
  • Checking your live infrastructure and dashboards
  • A professional pen test on a high-stakes product
  • Keeping dependencies and platforms updated

Caveats and limits

  • It reads source, not your deployment. Settings that live only in a dashboard (RLS, CORS, environment variables on your host) show up as needs_validation, not as confirmed bugs.
  • No sandbox, no execution. Without an OS-enforced sandbox the skill won't run your code, so some leads stay unconfirmed.
  • It takes time and usage. A full audit runs many sub-agents. Start with a scoped or quick run if you're on a limited plan.
  • One run isn't complete. In Cloudflare's tests a single run found roughly half of what repeated runs found, so plan for more than one.
  • Vendor numbers. The 128-repo and findings figures are Cloudflare's own; the 5,600-app figures are Escape.tech's, from a passive scan of public apps on vibe-coding platforms (mainly Lovable and Supabase).

FAQ

Is it free?
The skill is open source under MIT. Running it uses your coding agent and model, so normal usage limits or costs apply.
Will it change my code?
No. It describes fixes and writes reports outside your repo by default; you apply the changes.
Does it attack my live site?
No. It never probes deployed endpoints, production accounts or real user data. Anything that depends on the live system is listed for you to check.
Does it work for apps built with Lovable or Bolt?
Yes, if you have the code locally (for example, synced to GitHub and cloned). The skill audits the codebase, whatever wrote it.
Which agents does it work with?
Any coding agent with tool use and parallel sub-agents. The Skills CLI installs it for the agent you choose.
Why run it more than once?
Each run covers different ground. The next run reads the previous ledger, targets the gaps and re-checks code you changed.

Glossary

Vibe coding
Building software by describing it to an AI tool and shipping what it generates.
Agent skill
A folder of instructions a coding agent loads when a request matches it.
Trust boundary
A line where data or a request moves from someone less trusted to something more trusted, like a browser calling your API.
RLS
Row-level security: database rules that decide which rows each user can read or change.
Secret / API key
A credential that grants access to a service. Powerful ones belong only on a server.
Proof of concept
A small, safe test that shows a bug really happens.
Sandbox
An isolated environment where code runs without network access or access to your files and secrets.
Coverage ledger
The audit's list of what was checked, against which attack classes, and what's still open.

Sources

  1. cloudflare/security-audit-skill. README and SKILL.md, GitHub (MIT).
  2. Build your own vulnerability harness. Cloudflare blog, Dan Jones, Alexandra Godoi and Grant Bourzikas, June 2026.
  3. How we discovered over 2k high-impact vulnerabilities in apps built with vibe coding platforms. Escape.tech, October 2025.
  4. Common security risks in vibe-coded apps. Wiz blog.