Read enough write-ups of AI-built apps leaking data and a pattern appears. The tools differ and the apps differ, but the cause is nearly always one of four things. Wiz, a cloud security firm, lists them in its research on vibe-coded apps, and says one in five organisations building on these platforms is exposed to them.
1. The database is open to everyone
Apps built with Lovable, Bolt and similar tools usually store data in Supabase. Your website talks to it using a public key that every visitor's browser can see. That is by design. What keeps data private is a set of rules on each table, called row-level security, that say who may read which rows.
If those rules are missing, anyone holding the public key can download the table. A researcher who scanned 1,645 Lovable-built projects found 170 with this problem. In early 2026 the same mistake exposed about 1.5 million API tokens at a single site.
2. A secret key is in the website's code
Some keys are meant to be public. Others, such as an OpenAI key or a Stripe secret key, are passwords to your account. If an AI tool puts one in the part of your app that runs in the browser, every visitor can copy it and spend your money.
3. The login check happens in the browser
If the code that decides "is this person allowed?" runs on the visitor's own device, the visitor can simply skip it. The check has to happen on the server, where they can't reach it.
4. An internal tool is published with no login at all
Admin dashboards and staff tools built in an afternoon often go live on a public address with nothing in front of them. Nobody guesses the address, until a scanner does.
What to do about it
- Ask your AI tool directly: "Which of my Supabase tables have row-level security turned on, and what do the policies allow?"
- Search your project for keys starting
sk-,sk_live_or the wordsservice_role. - Open your app in a private browser window, logged out, and try every page address you know.
Our quick check covers the basics without an account. Once you've signed in and shown the site is yours, the full scan checks for open tables and leaked keys too.