Security checklist for vibe-coded apps
The problems we see most often in apps generated with AI tools, and how to check each one.
- 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".
- Is Row Level Security on for every Supabase table? In each migration, every
create tableinpublicneedsenable row level securityand policies that useauth.uid(). - Is any secret visible in the browser? Anything prefixed
NEXT_PUBLIC_,VITE_orREACT_APP_is public. The Supabase service-role key must never be one of them. - Are keys committed to your repository? Check that
.envfiles are in.gitignore. If a key was ever committed, rotate it. - Do actions that change data check who is logged in? Every POST, PUT, PATCH and DELETE handler and every Server Action.
- Is debug mode off in production? Django
DEBUG, Flaskdebug=True, verbose error pages. - Is CORS limited to your own front end? Never combine a wildcard origin with credentials.
- 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.