AI built your app. Who checked the access rules?

Infinia ยท

A founder can now build and ship a working product in a weekend.

What they can't do in a weekend is know what they don't know about security.

This month, researchers showed what that gap looks like at scale. They examined 159,041 apps built with Lovable, one of the most popular AI app builders. In 7,403 of them, they could read records containing users' email addresses without logging in. In one case, a community forum exposed more than 80,000 user profiles and more than 200,000 private chat messages. In another, a service exposed more than 1,000 records with passport numbers.

This isn't a story about one tool. It's a story about ownership.

AI made building fast. It didn't make anyone responsible for security. If you're running a company on an app an AI helped build, someone needs to own the questions the AI skipped.

For most founders at $1M to $10M, that someone is a fractional CTO.

Key takeaways


How does an AI-built app leak data?

In plain English:

  1. Many AI-built apps talk to their database directly from the visitor's browser.
  2. To do that, the page includes a database key. Anyone can see that key. It's designed to be public.
  3. The only thing stopping a stranger from reading every row in the database is a set of access rules on each table, saying who can read what.
  4. If those rules are missing or wrong, the public key opens everything.

In the Lovable study, the apps used Supabase, a popular database service. Its access rules are called "row level security." When they aren't set up, anyone with the public key can query the data.

None of this requires hacking skill. It's like locking the front door but leaving every filing cabinet inside unlocked, with a sign on the door saying where the cabinets are.


Is this the tool's fault or the founder's?

Both, and neither. And it doesn't matter to your customers.

Lovable has added a security scan and an AI-driven security reviewer since earlier disclosures. Those are real steps. But according to the reporting, Lovable's terms place responsibility for application security and data handling on the customer. That's normal for software tools.

So if your app leaks customer data, your customers won't ask which tool you used. They'll ask why you didn't check.


Two related lessons from the same month

The Lovable study wasn't the only reminder.

Sharing defaults matter. A security firm, Claroc, reported that 35,578 apps built with Grok Build opened without any sign-in, including 24 belonging to staff at the company behind the tool. The cause was different: apps published with "anyone with the link" access. The company says apps are private by default and publishing takes several steps. Either way, the lesson is the same: someone needs to check who can actually see what you've published.

AI keys are money. Separately, the hosting platform Railway reported that attackers breached its infrastructure and decrypted some customers' stored AI provider keys, leading to an estimated $740,000 in unauthorized usage charges. That wasn't a vibe-coding mistake. But it's a reminder that an AI key is a credit card, and it needs spending limits and someone watching the bill.


Five questions every founder with an AI-built app should answer

You don't need to be technical to ask these. You do need someone technical to answer them honestly.

  1. Can anyone read our data without logging in? Ask someone to test it, table by table, as a stranger would.
  2. Who set the access rules on each table, and who has reviewed them? "The AI did it" is not an answer.
  3. What keys are visible in the browser, and what can each one do? Public keys are fine only if the rules behind them are right.
  4. Where are our AI provider keys stored, and do they have spending limits? If one leaked tonight, how much could someone spend before anyone noticed?
  5. Who can see the apps and tools we've published? Including internal ones built for the team.

If you can't answer all five today, you're not alone. But you're one curious stranger away from finding out the hard way.


Why this is a fractional CTO's job

AI builders made the first 80% of building fast and cheap. The last 20% (security, access control, data handling, what happens when something goes wrong) still needs judgment from someone who has done it before.

That doesn't mean hiring a full-time CTO. It means having someone, a few days a month, who:

And if a buyer later asks for a SOC 2 report, the same person can take you there.


When you don't need this

If you're in one of those groups, we'll tell you so.


Three questions to answer this week

  1. If a stranger opened your app today, without logging in, what could they read?
  2. Who in your company would know?
  3. If the answer is nobody, who is going to check?

If the honest answers are "I'm not sure," "nobody," and "nobody yet," you don't have a building problem. You have an ownership problem.

Tell us what you've built and what data it holds. We'll introduce you to one vetted fractional CTO who has secured apps like yours before.

And if you don't need anyone, we'll tell you. Free: infinia.fun/for-businesses/intake


FAQ

Are apps built with AI tools like Lovable safe?

They can be, but security isn't automatic. Research in November 2026 found thousands of Lovable apps exposing data because database access rules weren't set up. The tools are adding security checks, but responsibility generally sits with the app's owner.

What is row level security?

Row level security is a set of database rules that control which rows of a table each user can read or change. In apps that talk to the database from the browser, it's often the main thing protecting private data.

How can I check if my AI-built app is leaking data?

Have someone technical test each table with the public key the browser receives, without logging in, and confirm that private data can't be read. Also review published sharing settings and where any API keys are stored.

Do I need a full-time CTO if I built my app with AI?

Usually not. A fractional CTO can audit and fix the urgent issues, set rules for future building and answer security questions from customers, a few days a month.

What should I do if my app is exposing data?

Fix the access rules immediately, rotate any exposed keys, check what was accessed if you can, and get advice on whether you need to notify users under the privacy laws that apply to you.


Sources: The Cyber Sec Guru, "Lovable Security Gap: Supabase RLS Left 7,403 Apps Open," summarizing research by the Crissy Field research group and Handelsblatt (November 2026); The Next Web, "SpaceXSI's Grok Build left 35,000 apps open, security firm Claroc says" (November 2026); The Hacker News, "Railway Says Stolen Customer AI Keys Led to $740,000 in Estimated Unauthorized Usage Charges" (November 2026). Verify figures against the original reports before publishing.