AI

Vibe Coding Security Checklist: 12 Things to Check Before You Launch an AI-Built App

Web Brick Studio · · 4 min read

Vibe Coding Security Checklist: 12 Things to Check Before You Launch an AI-Built App

Before launching an app built with AI coding tools, check that no API keys are exposed in the frontend, every route checks who the user is, database rules stop users reading each other’s data, all input is validated on the server, and you have rate limits, logging and backups. AI tools write working code fast. They don’t reliably write secure code unless someone asks the right questions and checks the answers.

Vibe coding, describing what you want and letting an AI write the code, has made building a prototype ridiculously quick. The trouble is that “it works when I click through it” and “it’s safe to put real customer data in” are very different bars.

The checklist

1. No secrets in the frontend

Search your code for API keys, especially for AI models, payment providers and databases. Anything in browser JavaScript is public. Keys belong in server-side environment variables. If a key was ever exposed, rotate it, because deleting it from the code doesn’t un-leak it.

2. Secrets not in Git history

Check that .env files are in .gitignore and were never committed. Tools like gitleaks scan your history.

3. Authentication on every protected route

AI-generated apps often hide buttons in the UI but leave the API route open. Try calling protected endpoints without logging in.

4. Authorisation per record

Logged in isn’t enough. Can user A open user B’s invoice by changing the ID in the URL? This is one of the most common holes in AI-built apps.

5. Database rules switched on

If you use Supabase, enable Row Level Security on every table and write policies. With Firebase, check your security rules aren’t in test mode. Open database rules have exposed real user data in many quickly built apps.

6. Server-side input validation

Validate type, length and format on the server, not just in the form. Use parameterised queries or an ORM so user input never becomes raw SQL.

7. Safe output

User-submitted text shown on pages must be escaped to prevent cross-site scripting. Be extra careful with any code that injects raw HTML.

8. File upload limits

Restrict file types and sizes, store uploads outside the web root or in object storage, and never execute uploaded files.

9. Rate limits

Login, signup, password reset and any endpoint that calls a paid AI API need rate limits. Otherwise one script can run up your AI bill overnight.

10. Dependencies checked

Run npm audit or the equivalent. Check that every package the AI added actually exists and is the real one, not a lookalike name.

11. Logging and errors

Log sign-ins, failures and admin actions. Show users friendly errors, not stack traces with file paths and database details.

12. Backups you’ve tested

Automatic database backups, and one test restore before launch. A backup you’ve never restored is a guess.

If your app uses AI features

Apps that send user input to an AI model have extra risks. Prompt injection can trick the model into ignoring your instructions. Keep security in code, not in the prompt: limit which tools the model can call, check permissions before any action, and treat model output as untrusted input. The OWASP Top 10 for LLM Applications is a good reference.

A quick way to use this list

Paste each item to your AI coding tool as a question about your own code: “Show me every place an API key is used and whether it reaches the browser.” Then verify its answers yourself or with a developer. The AI is helpful at finding things. It’s less reliable at telling you everything’s fine.

Sources

Built something with AI and want it checked before real users arrive? Our vibe coding service reviews, secures and deploys AI-built apps. Also read is AI-generated code reliable?

Related reading: AI Website Builder vs Professional Web Development: Which Is Better in 2026?.

Vibe coding security FAQs

Is vibe coding safe?

Vibe coding is fine for prototypes. For apps with real users, payments or personal data, the code needs a security review, because AI tools often skip authorisation checks, expose keys or leave database rules open. Review before launch, not after a breach.

What is the most common security problem in AI-built apps?

Broken access control is among the most common: users can view or change other users’ data by changing an ID, or API routes work without login. Exposed API keys in frontend code are another frequent issue.

Can AI review its own code for security?

It can find many issues if you ask specific questions, and it’s worth doing. But it can also miss problems or wrongly say code is safe. Treat AI review as a first pass and have a developer verify critical areas.

Do I need a developer if I built my app with AI?

For a personal tool, maybe not. For anything handling customer data or payments, a developer review of security, deployment and backups is strongly recommended before launch.

Keep reading

More from our blog.