The 19 ways AI-built apps leak their users' data, each one on the public record, checked before you launch.
greenlit.priberry.com/blockers
Built your app with Lovable, Bolt, v0, Replit, Cursor or Claude Code? These are the mistakes behind the leaks in the news: open databases, keys in the browser, Firebase left in test mode. Every pattern links to a dated public incident or the platform's own rule, comes with a fix prompt you paste into your builder, and has a check that runs before you deploy. (13 from dated incidents or studies, 6 from the platform's own rules.)
$ npx launch-blockers check
launch-blockers · BLOCKED
3 things to fix before you launch:
1. The secret VITE_OPENAI_API_KEY is named so it ships to the browser [critical]
src/ai.ts:1
Fix prompt for your builder: My project has a secret named VITE_OPENAI_API_KEY...
2. The table "profiles" is created without Row Level Security [high]
supabase/migrations/20260101_init.sql:1
3. Anyone on the internet can read every row of "messages" [high]
supabase/migrations/20260101_init.sql:4
| You are... | Do this | Takes |
|---|---|---|
| About to launch | npx launch-blockers check in your project folder |
1 minute |
| Using Claude Code | npx launch-blockers install, then ask Claude to "run the launch-blockers skill". Deploys are now checked first. |
1 minute |
| Not a developer (Lovable, Bolt, Base44) | Open PLAYBOOK.md and paste each fix prompt into your builder | 10 minutes |
| Wondering if your live app leaks right now | npx greenlitlab yourapp.com --mine (your own app only) |
2 minutes |
A key already leaked? Run npx launch-blockers panic <provider> or see KEY-PANIC.md: revoke it first, then fix the code.
- About 1 in 5 public Lovable projects on GitHub would ship a leak: this check flagged 25% of 1,167 drawn at random, and a hand-check found a real leak in 30 of 36 flagged apps. No app is named (the study, Priberry, Nov 2026).
- 1.5 million API tokens and 35,000 emails sat in a vibe-coded app's database with Row Level Security never switched on (Moltbook, Feb 2026, Wiz).
- 24,664 of 34,545 Lovable projects using Supabase returned database records to a visitor with no login (Crissy Field, Nov 2026; some of it may be meant to be public, Techzine).
- About 300 million messages were exposed by one Firebase misconfiguration in an AI chat app (Jan 2026, 404 Media).
None of these needed a hacker. Each was one setting.
| # | Pattern | Severity | Found by | On the record |
|---|---|---|---|---|
| 1 | Database tables with no Row Level Security | critical | scan | CVE-2025-48757: Lovable apps without working RLS (2025-05) |
| 2 | Row Level Security is on, but the rule checks nothing | high | scan | CVE-2025-48757: Lovable apps without working RLS (2025-05) |
| 3 | Firebase rules that let anyone in ("if true" or test mode) | critical | scan | AI chat app exposes chat histories (2026-01) |
| 4 | File storage anyone can read (ID photos, documents, uploads) | critical | scan | Tea app: verification selfies and IDs exposed (2025-07) |
| 5 | A paid API key (OpenAI, Gemini, Stripe...) shipped in the browser code | critical | scan | About 3,000 websites exposing ChatGPT keys (2026-02) |
| 6 | The Supabase service_role (secret) key in the browser | critical | scan | Rule: Supabase docs: API keys |
| 7 | The .env file committed to git | high | scan | 5,000+ GitHub repositories with OpenAI keys committed (2026-02) |
| 8 | A backend function anyone on the internet can call | high | scan | Rule: Supabase docs: function configuration (verify_jwt) |
| 9 | A payment webhook that believes anyone | high | scan | Rule: Stripe docs: verify webhook signatures |
| 10 | An access check that's backwards or only in the browser | critical | agent review | Lovable-showcased app with an inverted access check (2026-02) |
| 11 | Change the number in the address, see someone else's data | critical | agent review | Rule: OWASP API Security Top 10: API1 Broken Object Level Authorization |
| 12 | A private app that still lets anyone sign up | high | agent review | Base44: anyone could join private apps (2025-07) |
| 13 | An internal tool published to the open internet | high | agent review | RedAccess: thousands of public vibe-coded apps with company data (2026-05) |
| 14 | Your coding agent can change the production database | medium | scan | Replit agent deletes a production database (2025-07) |
| 15 | The live database isn't what your files say | high | live check | Crissy Field scan of 159,041 Lovable projects (2026-11) |
| 16 | The secret that signs logins is written into the code | high | scan | Invicti: the same secrets across 20,656 AI-generated apps (2025-11) |
| 17 | A database rule trusts what users can change about themselves | high | scan | Rule: Supabase Security Advisor: lint 0015, RLS references user metadata |
| 18 | A view or database function that skips Row Level Security | high | scan | Rule: Supabase Security Advisor: lint 0010, security definer view |
| 19 | A profiles table anyone can read, contact details and all | high | scan | About 1 in 7 public Lovable apps with a database would leave personal data open to anyone (2026-11) |
Full detail, fix prompts and sources: PLAYBOOK.md. Machine-readable: data/patterns.json.
npx launch-blockers install adds two things to your project's .claude folder:
- A skill that walks your agent through all 19 patterns, including the ones no scanner can judge (backwards access checks, other users' records, private apps with open sign-up).
- A guard that runs before deploy commands. It reads the command the way your shell will:
vercel,netlify deploy,supabase db push,firebase deploy,wrangler deploy,fly deploy,railway upand about 30 more, including behindnpx,sudo,bash -c, a shell script or annpm runscript that deploys. Agit pushto main on a host that deploys from git asks you first, and so do MCP tools that deploy. It checks the folder being deployed, with the migrations at the top of its repository.- BLOCKED: the deploy is stopped and your agent gets the reasons and fix prompts.
- NOT CHECKED: the check couldn't run, so you're asked. It never passes silently.
- CLEAR: nothing changes; your usual approval still applies, with a note of what wasn't checked.
- If Claude Code can't ask you (bypass mode), anything that would ask is refused instead.
The guard carries its own copy of the check, so nothing is downloaded at deploy time and a package in your project's node_modules can't answer for it. If node can't run, the command is held rather than let through.
Checked a finding yourself and it's fine (say, Row Level Security switched on in the dashboard)? Add its id and your reason to .launch-blockers-ignore. A line without a reason doesn't count. When a serious finding is ignored, you're asked before each deploy, with your reason shown. The skill tells your agent never to write that file itself.
Use --global to install for every project. The skill is also written to .agents/skills, which Codex, Cursor, Gemini CLI and Copilot read; the deploy guard is for Claude Code today. Tested on macOS, Linux and Windows, with Node 20 and 24, on every push.
About 1 in 5 public Lovable apps would leak data or keys (the study). rules/AGENTS.md is about 50 lines of plain rules for your AI builder to follow before it writes code: row-level security with owner-scoped policies, no paid AI key in browser code, no service_role key in the client, a check on who is asking in every server function, and rotate a leaked key first.
npx launch-blockers rules # writes it into AGENTS.md (Codex, Cursor, Copilot and others read it)
npx launch-blockers rules --claude # into CLAUDE.md
npx launch-blockers rules --cursor # into .cursor/rules/launch-blockers.mdc
npx launch-blockers rules --print # to stdout: paste it into Lovable Knowledge or .windsurfrules
The rules go between two launch-blockers markers at the end of the file. Run it again to update them: the block is replaced, never added twice, and nothing outside the markers is touched.
npx launch-blockers panic # the providers it knows
npx launch-blockers panic openai # where to revoke and replace the key, where to check usage, then the rest, in order
The same steps as Key Panic and KEY-PANIC.md, each with the provider's own documentation.
This repository is also a Claude Code plugin (.claude-plugin/plugin.json): the launch-blockers skill (in skills/, where the plugin directory looks for it) and the same deploy guard as install, with its own copy of the check in hooks/. Load it from a copy of this repository with claude --plugin-dir <folder>. To turn the guard off, disable the plugin in /plugin.
A file scan reads your files. It can't see:
- your live database, if rules were changed in the dashboard (run
npx greenlitlab yourapp.com --mine); - logic mistakes in your own code, which is why the skill has your agent review them;
- SQL run inside a
DO $$ … $$block or built forEXECUTEin a migration: a policy created, dropped or changed that way isn't seen; - anything new. "CLEAR" means none of the known patterns matched. It doesn't mean safe.
Everything runs on your computer. Nothing is uploaded, and nothing is downloaded when the guard runs. Names in .env files are read, never values. A key found in code is reported by its kind and line, never its value.
Open an issue with a public link: an incident write-up, a study, or the platform's own documentation. Patterns are added only with a source anyone can read, and counts are quoted as the source gives them.
The scanning is Greenlit's project scan. Priberry makes six free, open-source tools:
- Launch Blockers: the leaks AI-built apps ship, checked in your code.
npx launch-blockers check - Rolelock: can your users raise their own role? Finds two holes in Supabase apps: signed-in users who can raise their own role, and edge functions that use the secret key with an id from the request.
npx rolelock@0.1.1 ./my-app - Greenlit: what a stranger can see in your live app.
npx greenlitlab yourapp.com - Crumple: a crash-test lab for AI coding agents.
npx crumplelab attack - Tare: where your coding agent's tokens go.
npx tarelab - MarkOS: an AI exec team on your own computer.
git clone https://github.com/priberry-data/markos && cd markos && ./install.sh
Apache-2.0.