Vibe Code Guardian
← All posts

Where Your AI-Built App Hides Your Users' Personal Data

Your AI-built app holds real people's names and emails now. Here are the places that data ends up without you knowing: logs, browser storage, AI chat prompts and backups.

Aaron Allen·

Where Your AI-Built App Hides Your Users' Personal Data

You launched. A few real people signed up, typed their names and email addresses into your form, and carried on. That was the moment your hobby project started holding personal data about strangers, and almost nothing in the way the AI built your app was designed for that.

This isn't a compliance lecture. It's a list of the places user data ends up in an AI-built app that most founders never think about, because the AI never mentioned them. If you built with Lovable, Cursor, Bolt, Replit or Claude, check each one against your own app. Most people find at least two they didn't know about.

The obvious place, and the first question to answer

Start with your database. Every signed-up user has a row somewhere: email, name, maybe a phone number, maybe payment details if you take them. That part you know about.

The question worth answering before anything else: who can read those rows? AI-built apps on Supabase or Firebase often ship with database rules that either allow broad reads or look locked down while one table is quietly open. We've covered Supabase RLS mistakes in detail elsewhere on this blog, so I won't repeat the checklist here. The short version is that "the AI said it set up security rules" is not the same as "I checked that one customer cannot read another customer's data."

Logs

This is the one that surprises people most often. Your app logs things: server logs, error reports, analytics events. And AI-written logging code tends to log generously, because the AI's goal is to make debugging easy, not to respect what's inside the payload.

Two examples we see in audits:

  • A console.log of the entire request body on login, which means every password attempt ends up in your logs in plain text.

  • Error reporting tools (Sentry and its alternatives) capturing whole request objects, personal details included.

Analytics can be just as bad. An event like user_email_viewed that stores the email address itself as an event property is a personal data store inside your analytics account, and nobody ever deliberately built one.

Logs are also the data you're least likely to treat carefully. They sit in a hosting dashboard, often with no retention limit, often accessible to anyone on the team with full access. If your logs contain passwords or payment data, your logging setup is a bigger privacy problem than your database, and it's a one-line fix per log statement.

Search your codebase for console.log, logger. and whatever error tool you use, and look at what's being sent. Ask the AI to strip personal fields from every log line. This is one of the few jobs where you can say "remove any personal data from our logging" and get a useful result in one prompt.

The chat window

Here's an uncomfortable one. Every time you paste real user data into Cursor, Claude, Lovable or ChatGPT to debug a problem, you've copied that data outside your own system. A customer's name and email pasted into a prompt to fix a bug has now left your app entirely.

Doing this once with a test account is fine. Doing it weekly with real production rows becomes a habit, and nobody signs off on it because it never feels like sharing data. It is.

Two habits fix it. First, use obviously fake data in prompts: "[email protected]", "Test User". Never paste a real person's row. Second, if you need to debug a real production issue, screenshot your own dashboard rather than pasting the underlying data, or redact before you paste. Some AI tools offer settings that stop your prompts training their models. That setting does not delete what you already sent, and it doesn't change who can see it at the provider, so treat it as a small comfort, not a fix.

localStorage and browser storage

Frontend-heavy AI apps love storing things in the browser: a cached profile, an auth token, sometimes the full user object from your last API call. Open your own app, open developer tools, go to Application and then Local Storage, and see what's sitting there.

Most of it is harmless. The problem case is sensitive data cached in the browser on a shared computer, or an access token stored in localStorage where any cross-site scripting bug can read it. If your AI stored a token in localStorage, ask it to move it to an httpOnly cookie. That's a standard pattern and it will know how.

Third-party tools you switched on and forgot

Modern AI-built apps accumulate services: an email tool, an analytics tool, a crash reporter, a chat widget, a payment provider. Each one received copies of your users' data, and each one has its own retention policy and its own breach history.

You don't need to audit all of them today. You do need the list. Open your frontend and look at every script tag and SDK initialisation. For each service, know roughly what it holds. If you can't say what a given service does, that's a sign to remove it.

Deletion: the request you can't currently fulfil

Sooner or later someone will email you and ask you to delete their account and data. In a hand-built app this is a chore. In an AI-built app it's often impossible, because the data lives in five places with no common key, or because the AI never built a delete function at all.

Test it now while the stakes are low. Create a test user, then try to remove every trace: the database row, the auth record, anything in logs, anything in third-party tools. Note how long it takes and what you can't reach. Whatever you can't delete yourself is what you'd have to promise a real user you'd handle manually, so make sure you could actually do it.

If deletion turns out to be impossible, that's useful information before anyone asks, not after. Ask the AI to build a proper delete path while your user count is three rather than three thousand.

The privacy policy nobody wrote

You don't need a lawyer to start. You do need a plain page that says, honestly: what data you collect, why, who else gets it (your hosting provider, your email tool, your analytics), how long you keep it, and how to ask for deletion. A short honest policy beats a long generated one that describes features you don't have.

The trap to avoid is copying a template that promises things your app doesn't do, like "we never share data with third parties" when your crash reporter receives every error. Say what's true. If you're in the UK, UK GDPR applies to you at any size; the obligations scale with risk, but they don't wait for a headcount. If you're serving users in Malaysia or Singapore, the PDPA sets similar expectations. We're not lawyers and this isn't legal advice, but "I never wrote one" is the worst possible answer to a user or a platform review asking where your policy is.

Backups: the copy you forgot is a copy of your users

If you followed our earlier post on database backups, good. One wrinkle: every backup is a full snapshot of your users' personal data, sitting in another location with its own access rules. That's not a reason to skip backups. It is a reason to check who can reach them and how long you keep them. A backup bucket that's publicly readable, or retained forever by default, is a personal data store you didn't mean to run.

Where to start

If you only do one thing after reading this, do the log audit. It's the fastest win and the place AI-built apps leak most often. Then test a deletion end to end, because it tells you the true state of everything at once: where data lives, what's connected, what you can't reach.

If you'd rather have someone go through all of it with you, that's what we do. Our launch-readiness audit checks 137 points across 14 areas, including data protection and privacy basics, and a developer confirms every finding in plain English. You can also start with the free surface check, which takes a few minutes and needs no card, to see what your app shows to the outside world.

One honest caveat, because we say it to every customer: no checklist or audit makes an app perfectly safe with user data. But knowing where the data actually lives, which most founders of AI-built apps currently don't, is the difference between a fixable problem and a nasty surprise email.

Want a developer to look at your app?

Built your app with AI tools? Run the free surface check yourself in a few minutes. Nothing to buy, and we never look at your app unless you run it.