Vibe coding security checklist: 10 checks before you launch
AI tools write working code fast, but they do not check whether it is safe to put on the internet. These ten checks catch the problems that most often hurt small, AI-built products.
The ten checks
- No secrets in the code. API keys live in environment variables, and
.envis in.gitignore. See how to keep API keys secret. - No secret key in the browser. Anything shipped to the front end can be read by visitors. Variables starting with
NEXT_PUBLIC_orVITE_are public by design. - Database access rules are on. With Supabase that means Row Level Security on every table.
- Checks happen on the server. Hiding a button is not security; the server must verify who is asking and what they may do.
- Login is hardened. Use a proven auth provider, require sensible passwords, and offer two-factor sign-in for admin accounts.
- Rate limits on public and costly routes. Sign-up, password reset, contact forms and anything that calls a paid API.
- Spend caps on paid APIs. Set a hard monthly limit at the provider and a per-user limit in your app. See spending caps.
- Dependencies are current. Run the package manager’s audit command and update anything with a known vulnerability.
- Errors reveal nothing. Users see a generic message; details go to your logs.
- Attack your own app. Try opening other users’ data by changing an ID in the URL, calling the API without logging in, and submitting oversized or malformed input.
How to use this
Go through the list once before launch and again after each major feature. If a check fails, ask your AI tool to fix that one item, then test it yourself rather than trusting the answer.
Want the whole checklist?
Vibe101 is an interactive checklist, 11 chapters from idea to launch. The Security first chapter is free.
Published by the author of Vibe101, a paid checklist. This is general information, not legal advice or a security audit.