Security checklist for AI-built (vibe-coded) apps: 15 checks before you launch

By AI App Medic · Updated · Security · Checklist · Cursor · Lovable

AI builders are excellent at getting to a working demo. They are less reliable at the unglamorous parts that keep real users' data safe. Go through this list before you post your launch, start charging, or import real customer data. Each item links to a detailed fix.

Data access

  1. RLS is on for every table. Run the query in this guide; any table returned is open.
  2. No policy uses true for private data. Check pg_policies for qual = 'true' on SELECT, UPDATE and DELETE.
  3. Two-account test. Create data as user A; as user B, try to read and change it via the UI and by replaying the API request from DevTools.
  4. Storage buckets holding private files are not public, and their policies are per user.
  5. Users cannot make themselves admin. Role or plan columns must not be writable by the user they belong to.

Secrets

  1. No secret keys in the bundle. Search your live JavaScript for sk-, sk_live_, service_role, sb_secret_. See exposed keys in Vite apps.
  2. No source maps in production unless you intend to publish your source.
  3. .env is not in Git, and keys that were ever committed have been rotated.

Auth

  1. Production URLs configured in Supabase Auth, so emails and OAuth do not point to localhost. See auth redirect fixes. For Google's redirect_uri_mismatch error, see the Google callback setup.
  2. Password reset and email confirmation work end to end with a fresh account on the live domain.
  3. Protected pages are protected on the server/database side, not just hidden in the UI. Hiding a button is not access control.

Payments

  1. Access is granted by a verified webhook, not by the success page. See Stripe webhook fixes.
  2. Test a refund and a failed card and confirm access is handled the way you expect.

Hosting and operations

  1. HTTPS everywhere and security headers set. See security headers.
  2. Backups and alerts. Know how to restore your database (check what your Supabase plan includes), and get an alert when the site goes down or errors spike.

Where AI tools specifically go wrong

Our free health scan covers the outside-visible items (keys in the bundle, public Supabase tables via row counts, headers, HTTPS, source maps) in about 30 seconds. The $149 deep audit covers what a public scan cannot see: your policies, auth flows and payment logic.

FAQ

Is an app built with Lovable or Bolt insecure by default?

Not necessarily, but AI builders optimise for something that works in the demo. Access rules, key handling and edge cases often need a human review before real users and payments arrive.

What is the single most important check?

Database access rules. For Supabase apps, confirm that RLS is on for every table and that no policy lets anon or any signed-in user read other people's data.

How long does this checklist take?

A focused hour for a small app if everything is fine. Fixing what you find takes longer, especially RLS and moving keys to the server.

Related guides