Security checklist for apps built with Lovable, Bolt, Cursor, Replit or v0
Access
- Write down who may do what: each role, each page, each API route, and each customer account.
- Every admin page, route and server action checks the role on the server, not by hiding a button.
- Every id taken from a request is checked against its owner before anything is read or changed.
- A user of one customer account cannot read or change another account's data.
- Every check done in the browser has a matching check on the server.
Database
- Row level security is on for every table, with policies tied to the owner (see our RLS guide).
- Columns such as role, plan, price and payment status cannot be written by the user.
Secrets
- No secret key in browser code, mobile apps, or the repository.
- Only public keys (anon or publishable) in frontend environment variables.
.envfiles are in.gitignore; secret scanning is on (it runs automatically on public GitHub repositories).
Money
- An order is marked paid only after the payment provider confirms it, on the server.
- Webhooks verify their signature before doing anything.
- A webhook delivered twice does not charge, credit or create twice.
- Prices, totals and discounts are worked out on the server, never taken from the browser. Quantities and prices cannot be negative.
AI features
- Text from users or documents cannot change what the AI is allowed to do or reveal.
- The AI cannot call tools or read data the signed-in user could not reach themselves.
- Calls to paid AI APIs have limits, so one user cannot run up your bill.
Why each line is there
In a peer-reviewed benchmark of AI-generated backends, security exploits worked on around half of the programs that were functionally correct. On real-world coding tasks in another peer-reviewed benchmark, the agent that solved the most tasks produced working code for 57% of them, but code that was both working and secure for only 11.8%.
In one industry test of 15 AI-built apps, 4 of 5 agents let customers place orders with negative quantities. That is why the money section checks for negative values.
Going through this list yourself is a good start. If you want it done for you, the Irth Labs App Health Check is $490, with a written report within 48 hours and a fixed repair quote.
1. Run the free local check
npx caelo .
Caelo is a free, open source (MIT) command line tool and MCP server from Irth Labs that checks the files of an AI-built app for exposed API keys, Supabase and Firebase misconfigurations and .env files with real values. It runs on your machine, uploads nothing and uses no AI model. Each finding comes with a plain-English fix.
2. Act on a finding
Follow the fix in your report and run Caelo again. If Git could commit an untracked file containing secrets, preview a US$19 quick fix for that file.
For findings that need an engineer, Irth Labs offers a US$490 App Health Check. You receive a written report within 48 hours and a fixed repair quote. The fee counts toward the repair if you proceed.
Questions
Does this apply to Bolt, Cursor, Replit and v0 too?
Yes. The checklist is about the app, not the tool. Apps from any AI builder, usually on Supabase, Firebase or Postgres, need the same checks.
Is a security scanner enough?
A scanner finds some problems quickly. Access rules depend on what your app is supposed to allow, so a person has to read them against how the app should work. No scanner and no person finds everything.