Vibe Coding Security Checklist: 18 plain-English rules to check before you launch an AI-built app
Who this is for: Anyone who built an app with an AI coding tool and is about to put it on the internet. The app works, but "it works" and "it is safe" are different things. AI tools are great at making features and often skip the boring parts that keep your users' data private. Each rule below is a pair: a green do this and a red never this.
Secret keys:
Keep secret keys on the server only, never pasted into page code where anyone can read them in the browser. Add your .env file to .gitignore on day one so it never ends up on GitHub. In the app itself, use only the public key your platform gives you, never the admin key.
Your database: Turn on row security (Row Level Security in Supabase) for every table, so each user can only reach their own rows. Let your tool or library build database queries instead of gluing user text into them. Keep uploaded files private and share them with short-lived links.
Logins: Check who is logged in on every page and every API call, and only ever show people their own data. If changing a number in the URL shows someone else's order, that is a data leak. Use a login service such as Supabase Auth or Clerk instead of building your own password system.
User input: Check what users send on the server, not only in the form. Show user text as plain text so it can never run as code. Accept only the file types you need, like photos and PDFs, and cap their size.
Bots and bills: Limit how often someone can try to log in so bots can't guess passwords forever. Set a monthly spending limit on every AI and cloud key so a bot can't run up a huge bill. Only let your own website call your API.
Before launch:
AI tools sometimes suggest packages that don't exist, and attackers register those names. Check every package the AI adds is real. Show a friendly error page instead of raw error details, use https:// on every page, and switch off test or debug mode.
The fastest way to use it: Paste the list into your AI tool and ask: "Does my app follow every rule? Fix the ones it breaks." Real apps have leaked because of a single setting left off. Moltbook left database row security off and around 1.5 million API keys were exposed.