What the AI tools take care of, and what they leave to you
AI app builders and the services under them look after a lot: the servers, encryption of the connection, keeping their own platform patched, and often a built-in security scan. That part is generally in good hands.
The app you build on top is a different matter, and the companies say so plainly.
- Lovable says its checks "can't guarantee that your app is secure or replace a full security review," and: "You are still responsible for your app's security." For apps handling sensitive data, it recommends a review by a security professional (Lovable documentation).
- Supabase, the database behind many of these apps, publishes a shared responsibility model. It recommends you "always apply Row Level Security" (the rules that decide who can read each row of data) and says, "You are also responsible for ensuring that tables with sensitive data have the right level of access" (Supabase documentation).
Think of it like renting a shop in a well-run building. The landlord handles the walls, the wiring and the front entrance. Whether you lock the stockroom is up to you.
Why apps built with AI leak data
The AI is asked to make something work, and it does. Security is mostly about what should not work: a customer opening someone else's invoice by changing a number in the address bar, a visitor reading the whole customer list without signing in, a secret key sitting in the code every browser downloads. None of that shows up when you click through your own app as yourself.
The research points the same way.
- In Veracode's July 2025 test of over 100 AI models on 80 coding tasks with known security pitfalls, 45% of the code samples failed its security checks (Veracode).
- In October 2025 the security company Escape published passive scans of more than 5,600 public apps built on vibe coding platforms and reported over 2,000 vulnerabilities and more than 400 exposed secrets, which it calls lower-bound estimates (Escape).
Both companies sell security products, and neither study says AI code is worse than code people write. Our article Is AI-generated code secure? reads the studies in detail, and our sourced timeline of incidents shows what has gone wrong in real apps.
A traffic light for your project
| What it is | What it needs before launch | |
|---|---|---|
| Green | A landing page, a prototype with made-up data, a tool only you use | The built-in security scan; two-step sign-in on your accounts |
| Amber | Customer accounts with names, emails and their own records | Everything above, plus the checks below and an outside test of the live app |
| Red | Payments, health or financial details, children's data, legal documents, or many companies' data in one app | Everything above, plus a review by an experienced person before real data goes in |
Most business apps are amber. The jump from green to amber happens the moment a second person can sign in, because from then on the app has to keep people's data apart.
What to do before real users arrive
You can do most of this without writing code.
- Run your builder's security scan and fix what it reports. Ask the AI to explain each finding in plain words before it fixes it.
- Turn on two-step sign-in on your builder account, your database, your domain and your email. Whoever gets into these controls everything.
- Do the two-account test. Create two customer accounts. Signed in as the first, open a private page and copy its address. Open a private window, sign in as the second, paste it. If you can see the first account's page, the app is not ready.
- Ask the AI to describe who can read each table, in a sentence per table, such as "any signed-in user can read every row of invoices." Anything that says "anyone" or "every row" needs a reason.
- Ask where every secret key lives. None should be in the code the browser downloads. Our guide on exposed API keys explains which keys are meant to be public.
- Have the live app tested from the outside, by a person or a service, after the steps above and again after big changes.
- Make a backup and restore it once, so you know you can.
When to bring in a person
Bring in an experienced developer or a security tester if your project is red on the traffic light, if a customer asks for a penetration test, or if the steps above turn up problems you cannot get the AI to fix without breaking something else. Our article How to fix a security finding with your AI coding tool helps with the last one.
Is Lovable, Bolt or Replit itself safe?
That is a question about the platform, and it is a different question from whether your app is safe. A platform can be well run and still let you publish an app with a table anyone can read, because that is a setting in your app. Our guides for Lovable, Bolt and Replit list what each platform checks for you and what is left to check by hand.
So the honest answer for Monday's clients is: "It was built with an AI tool, and before you put your data in, we are checking who can see what." Then do steps 1 to 4 this weekend.