Exera Security

Security checklist for vibe-coded apps

The problems we see most often in apps generated with AI tools, and how to check each one.

  1. Can a customer see another customer's data? Log in as two test users. Copy a record's URL or API request from user A and open it as user B. You should get "not found".
  2. Is Row Level Security on for every Supabase table? In each migration, every create table in public needs enable row level security and policies that use auth.uid().
  3. Is any secret visible in the browser? Anything prefixed NEXT_PUBLIC_, VITE_ or REACT_APP_ is public. The Supabase service-role key must never be one of them.
  4. Are keys committed to your repository? Check that .env files are in .gitignore. If a key was ever committed, rotate it.
  5. Do actions that change data check who is logged in? Every POST, PUT, PATCH and DELETE handler and every Server Action.
  6. Is debug mode off in production? Django DEBUG, Flask debug=True, verbose error pages.
  7. Is CORS limited to your own front end? Never combine a wildcard origin with credentials.
  8. Does your site send security headers? Use the website checker.

The local scanner automates items 1 to 7 for supported frameworks. Items flagged as "needs investigation" still need the two-account test in step 1.