Vibe-Coded App Security Checklist
Built for people who build apps with AI and don't read every line of code. Each check explains why it matters in plain English and gives you a prompt you can paste into your AI to fix it.
Why this matters
170 of 1,645 apps exposed user data because database security was never turned on.
An AI agent deleted a live production database during a code freeze.
A database with security disabled left 1.5 million API tokens readable by anyone.
Secrets & API keys
Keys are the keys to your accounts. If one leaks, someone else can spend your money or read your data.
- Ask Claude Code
Search the whole project for API keys, passwords or tokens written in the code. Move every one into environment variables and show me what you changed.
- Ask Claude Code
Check whether any secret key is used in code that runs in the browser. If it is, move that logic into a server function and explain the change.
- Ask Claude Code
Make sure .env and any other secrets files are in .gitignore. Then check the git history for keys that were committed in the past and list them.
Database & user data
Most real vibe-coding breaches happened here: databases that let anyone read everything.
- Ask Claude Code
List every table in my database and whether Row Level Security is on. Turn it on everywhere and write policies so users can only read and change their own data.
- Ask Claude Code
Walk me through how to test, as a logged-out visitor and as a different user, that I can't see other people's data. Give me exact steps.
- Ask Claude Code
Set up automatic daily backups for my database and show me, step by step, how to restore one.
Logins & accounts
Who can get in, and what they can see once they're in.
- Ask Claude Code
Replace any custom login code with an established authentication service. Recommend one that fits this project and explain why.
- Ask Claude Code
Check every page and API route that returns private data. Confirm each one verifies the user on the server, not just in the browser, and fix any that don't.
- Ask Claude Code
Find every admin page and admin action. Make sure each one checks for an admin role on the server before doing anything.
Forms & user input
Never trust what comes in from a form, a URL or an upload.
- Ask Claude Code
Add server-side validation to every form and API route so missing, oversized or unexpected input is rejected with a clear error.
- Ask Claude Code
Add rate limiting to login, signup, password reset and contact forms. Tell me what limits you chose and why.
- Ask Claude Code
Review file uploads in this app. Restrict them to the file types we actually need, set a size limit and make sure uploaded files can't be executed.
AI features in your app
Only if your app sends user text to an AI model.
- Ask Claude Code
My app sends user text to an AI model. Explain what a user could make it do with prompt injection, then limit what the AI can access so the damage stays small.
- Ask Claude Code
Review every place this app sends data to an AI model. Remove anything the model doesn't need, especially personal data or other users' information.
Hosting & going live
How your app is served to the world.
- Ask Claude Code
Add standard security headers for my host: Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, Referrer-Policy and Permissions-Policy. Explain what each one does.
- Ask Claude Code
Make sure errors in production show a simple friendly message to visitors and only log the technical details privately.
- Ask Claude Code
Set up a separate development environment and database for this project so changes can be tested without touching live data.
Code & packages
What your app is built from.
- Ask Claude Code
Before installing any new package, tell me what it does, who maintains it, how widely it's used and when it was last updated.
- Ask Claude Code
Run a dependency audit, list anything with known vulnerabilities and update it safely. Tell me if any update could break something.
- Ask ChatGPT
I'm not a developer. Review this code for security problems: exposed keys, missing login checks, and anywhere users could see each other's data. Explain each issue in plain English.
Before & after launch
The last checks, and how to stay on top of things.
- Ask Claude Code
Add a security.txt file and a simple way for people to report security issues to me by email.
- Ask Claude Code
Set up error logging and email alerts for this app so I hear about crashes and unusual activity quickly.
Take the checklist with you
A clean, printable 10-page PDF with every check, every prompt and a sign-off page for your launch. Share it with anyone building with AI.
Download the PDF PDF · 10 pages · Letter sizeThis checklist is a practical starting point, not a guarantee of security. Questions or something I missed? Email me.