Security checklist for vibe-coded apps: what to check before anyone signs up

AI app builders produce working apps fast, and the security gaps are just as fast. This checklist covers the security layer only: sign-in, secrets, data access, permissions, packages, and logs.

11 min read ·
In this article

Short answer

Before a vibe-coded app takes real users, check seven security items: real sign-in, no secrets or API keys in the code, database rules that stop one user reading another user's data, least access for every account and key, the third-party packages the builder added, payment keys kept server-side, and logs that record access without storing passwords.

Key takeaways

  • The most common vibe-coded security gap is data access: any signed-in user can read every record, because the database rules were never set or were set to open.
  • Secrets leak through the front door. API keys pasted into app code are visible to anyone who opens the page source, and AI builders place them there unless told not to.
  • Sign-in that works in a demo is often a shortcut: shared test accounts, no password reset, and admin access guarded by nothing more than a hidden page.
  • Every package the builder added is code you now run. Unknown or abandoned packages are a standing risk until someone lists and checks them.
  • Logs are a security control, not paperwork. You need a record of who accessed what, with passwords and full payment details kept out of it.

Your app works. People can sign up, click around, and get what the demo promised. None of that tells you whether it is safe.

Security gaps in AI-built apps are rarely exotic. They are the ordinary checks a demo never needs: who can see whose data, where the keys live, and what happens when someone pokes at the edges on purpose. The OWASP Top 10, the standard list of web application risks maintained by the Open Web Application Security Project, puts broken access control at the top. That is exactly where vibe-coded apps are weakest.

This checklist is the security layer only. The wider launch list, covering payments, data integrity, and going live safely, is our vibe coding to production checklist. Read this one for security, that one for everything else.

Work through it in order. The first three items cause most of the real damage.

1. Sign-in: real accounts, real rules

Check what the builder actually set up, not what the login screen suggests.

  • Each user has their own account. Shared logins and one test account for everyone fail immediately.

  • Passwords are handled by a recognised sign-in service, never stored in your own database as plain text.

  • Password reset works end to end. Test it with a real email address.

  • Admin access needs more than a normal login. At minimum, a separate admin role checked on the server, plus a second verification step for admin accounts.

  • Sessions end. A user who signs out on a shared computer should not leave the next person inside their account.

A simple test tells you a lot: create two accounts, then try to reach the admin area with the ordinary one. If a hidden page is the only thing protecting it, you have found a gap.

2. Secrets and API keys: nothing valuable in the app code

AI builders place keys where the code can use them fastest. If that place is the code sent to the browser, anyone can read it. Page source is public. Treat every key in it as published.

  • Search the whole project for keys: payment, email, maps, AI model, and database keys. If it looks like a key, it counts.

  • Move every key to server-side settings, and have the browser call a small server step instead of the provider directly.

  • Replace any key that has ever shipped in app code or been saved into the project's history. Moving a leaked key is not enough. The OWASP secrets management cheat sheet sets out the same rule: once a secret is exposed, rotate it.

  • Use separate keys for testing and for the live app, so a test key leak never touches real customers.

  • Set spending or usage limits on paid keys where the provider allows it. A leaked key with a cap is an annoyance. Without a cap, it is a bill.

3. Data exposure: one user must never see another user's data

This is the check that matters most, and the one demos never show. With one test user, open data rules look fine. With two, the truth comes out.

  • Create two test accounts. Add records as the first. Sign in as the second and try every route to the first account's records: pages, links with the record number changed, and exports.

  • If your app uses Supabase, confirm Row Level Security is switched on for every table and that the policies match your intent. Our production checklist covers Supabase Row Level Security in more depth.

  • Check files as well as records. Uploaded documents and photos often sit at guessable addresses with no check at all.

  • Look at what the app sends to the browser. Pages sometimes receive full records and hide the extra fields on screen. Hidden is not protected. The data already left the building.

4. Permissions: least access, on purpose

Builders tend to grant broad access so features work first time. Your job is to narrow it.

  • List every role the app has, and what each one can read, change, and delete. If nobody can produce this list, that is the first fix.

  • Database and hosting accounts used by the app should have only the access the app needs. An app that only reads records should not hold an account that can delete them.

  • Team access counts too. Remove builder-era shared accounts, and make sure ex-collaborators cannot still sign in to the hosting, database, or code.

  • Turn on the second verification step for the accounts that control the app itself: hosting, code, database, and the domain name.

5. Third-party packages: know what you are running

An AI builder assembles your app from packages written by strangers. Most are fine. The risk is not knowing which ones you have.

  • Get a full list of the packages in the project, with versions.

  • Check each one for known security problems using the tools your platform provides, and replace anything flagged as critical.

  • Remove packages nothing uses. Builders leave experiments behind, and every leftover package is code that can be attacked and never gets watched.

  • Set a monthly reminder to update packages. Old versions with public fixes are the easiest way in, because the instructions are published for everyone.

6. Logs: a record you can trust, without new leaks

When something goes wrong, logs are how you find out what happened. When logs are careless, they become the leak.

  • Keep a record of sign-ins, failed sign-ins, admin actions, and changes to important records.

  • Never log passwords, full payment card numbers, or secret keys. If a log line could be pasted into a sales deck, it is probably safe. If it could be used to sign in as someone, it is not.

  • Make sure someone can actually read the logs. A record nobody can open during an incident is decoration.

  • Keep logs for a set period and say what it is. Indefinite storage of user activity creates its own privacy problem.

How to run this checklist in an afternoon

Two test accounts, a search for keys across the project, the package list, and one pass over roles and logs. That is the whole exercise, and it fits in an afternoon for most apps.

Score each item plainly: done, partly done, or not done. Anything "not done" in items 1 to 3 blocks real users. Items 4 to 6 can follow within the first weeks, as long as they are scheduled and owned.

If the app is about to hold payment, health, or other regulated data, stop at the checklist and get a proper security review. That is the point where our AI development team usually gets called in: not to rebuild the app, but to close the gaps in the right order and prove each one is closed.

The bottom line

Vibe-coded apps fail on security in predictable places: sign-in shortcuts, keys in the code, open data rules, broad permissions, unknown packages, and careless logs. None of these need a specialist to find. They need two test accounts, a few direct questions, and the discipline to fix items 1 to 3 before the first real user arrives.

Ask an AI

Get an instant summary of this post from your preferred AI assistant.

Frequently asked questions

Straight answers to what buyers ask before they scope. Still stuck? .

Open data access. AI builders optimise for a working demo, so database rules often end up permissive: any signed-in user can read or change records that are not theirs. Until the rules are checked record by record, assume every user's data is visible to every other user.
The builder puts a key where the code can reach it fastest, which is often in the app code that runs in the browser. Anything in that code can be read by a visitor. Keys belong on the server side, called through a small server step the browser cannot inspect, and any key that has ever sat in shipped code should be replaced, not just moved.
Sometimes. The established builders use established sign-in services, which is a good start. What needs checking is everything around it: password reset that actually works, no shared or hard-coded admin account, session sign-out, and extra verification for admin accounts. The demo path rarely exercises any of those.
Treat it as leaked. Replace the key at the provider, then remove the old one from the code and from any history you control. Moving the key without replacing it does not help, because copies of the old code may already exist outside your control.
A checklist is enough to catch the standard gaps before launch: access rules, secrets, permissions, packages, and logs. A deeper audit earns its cost when the app holds payment data, health data, or anything regulated, or when it has already had an incident. If real customers are about to trust it with real data, the checklist is the floor, not the ceiling.