Vibe coding security checklist: what to check before you launch
This is a list of common mistakes, each with a two-minute way to check it. It catches the usual problems. It does not prove an app is secure, and no checklist can.
Secrets and keys
- No secret keys in the browser code. View the page source and the JavaScript files and search for "secret", "sk_" and "password". Anything in the browser is public.
- No
.envfile reachable by URL. Openyourapp.com/.env. It should not exist. See exposed files and source maps. - Keys have the narrowest permissions. Use restricted keys for payment, email and storage services, and rotate any key you ever pasted into a chat or a public repository.
Who can see what
- Customer A cannot see customer B's data. Sign in as two test users. When you open a record, change the number in the address bar to another record's number. You should be refused or shown nothing.
- Admin pages need an admin. Sign out and open the admin address directly.
- Deleting and exporting need a login. Try the same links in a private window.
Sign-in and sessions
- Passwords are hashed by your auth system and never stored as plain text. If you built your own sign-in, ask your AI assistant exactly how passwords are stored.
- Session cookies are marked
HttpOnlyandSecure. Check in the developer tools under Application, then Cookies. - There is a limit on sign-in and password-reset attempts, so one person cannot try thousands of passwords.
- Password reset links expire and work only once.
What goes into forms
- Weird input does not crash the page or show a database error. Try quotes, angle brackets and very long text.
- Your code never builds database queries by joining strings with user input. Use your framework's parameter features.
- File uploads accept only the types and sizes you intend.
The connection and the headers
- The site loads over HTTPS only, and the plain
http://address redirects. - Your responses include the four basic security headers. See the headers guide.
Errors and dependencies
- Errors show a plain message, not file paths or library versions. See stack traces.
- Run
npm audit(or your language's equivalent) and read the high-severity results. Update what you can. - Remove packages and routes you no longer use.
Payments and email
- Payment details are entered on your payment provider's page or fields, not stored by your app.
- Webhooks verify the provider's signature before acting.
- Your sending domain has the provider's verification records, so your emails are not forged or sent to spam.
What a checklist cannot do
A checklist finds common, visible mistakes. It cannot find a flaw in your own logic, and it cannot prove the absence of problems. If your app handles payments, health information or other sensitive data, ask a qualified person to review it before launch.
Common questions
Are AI-built apps less secure than hand-written ones?
Not by definition. The difference is that you did not read the code as it was written, so you may not know which protections were left out. Checking the basics from the outside is a good habit either way.
Can a checklist make my app secure?
No. It reduces common, avoidable mistakes. It does not prove an app is secure.
Want this checked on your app?
App Investigators checks several items on this list from the outside, in the free quick look and the complete check: exposed files, security headers, cookie settings and what a visitor can reach without signing in. It also reads an uploaded project zip for exposed keys and packages with known problems. The zip is read, never run.
We email you once when a spot opens. No spam, and you can ask us to remove you any time at support@appinvestigators.com.
Related guides
- Security headers for AI-built apps: what to add and how
- Check for exposed .env files, source maps and open folders
- Stop showing stack traces and error details to visitors
- Pre-launch checklist for an AI-built app
Last updated 2026-11-24. This guide describes common problems and fixes. It is not a guarantee that any app is secure or free of bugs.