Vibe coding security: 12 checks before you launch an app built with AI
Apps built quickly with AI often ship with exposed keys, open databases and missing access checks. Twelve checks to run before real users and real data arrive.

Tryfon Tz.
Founder, TafHub

In brief: AI builders and coding assistants make it easy to ship an app in days, and just as easy to ship it with the front door open. In Escape's scan of more than 1,400 vibe-coded apps, about two in three had a security issue and more than half had a critical one. These twelve checks catch the most common problems before customers or attackers find them.
Why AI-built apps leak
AI tools optimise for something that works on screen. Security lives in what you don't see: who can read which data, what the server checks, and which secrets end up in the browser. If nobody asks for those explicitly, they are often missing.
The 12 checks
- No secrets in the browser. Open your site, view the page source and the JavaScript files, and search for keys ("sk_", "key", "secret", "AIza"). Anything in the browser is public. Keys belong on the server.
- Database rules are on. If you use Supabase or Firebase, check that row-level security or security rules are enabled for every table, and that a signed-out visitor can't read anything private.
- Users can't see each other's data. Sign in as one user, then change an ID in a URL or request. If you see another user's record, the server isn't checking ownership.
- Admin pages need a login. Try /admin, /dashboard and similar paths while signed out.
- Payments are verified on the server. Never trust the browser to say "paid". Confirm payments with the provider's webhook and verify its signature.
- Inputs are validated. Forms and APIs should reject unexpected types and lengths, and queries should never be built by pasting user text into them.
- Dependencies are up to date. Run your package manager's audit and fix known vulnerabilities.
- Forms and sign-ups are protected from bots. Rate limits and a bot check stop spam and account-creation abuse.
- Errors don't leak internals. Users should see a friendly message, not a stack trace with file paths and keys.
- HTTPS and security headers are set. HTTPS everywhere, plus HSTS and a sensible content security policy.
- There is a way back. Daily backups of the database, and a way to roll back the last release.
- Privacy basics are in place. Trackers load only after cookie consent, there is a privacy page that matches what the app really collects, and users can ask for their data to be deleted.
What to do if you find problems
- Rotate any key that was ever in the browser or in the code history, not only the current one.
- Turn on database rules before adding features.
- Fix the issues that expose personal data first; speed and polish can wait.
- Write down what you changed, so the next release doesn't undo it.
The OWASP Top 10 is a good free reference for the classes of problems above.
Want a second pair of eyes?
Our audit checks a site or app built with AI the way a stranger would: what can be read without logging in, what breaks, what Google and AI assistants can't find, and what cookie and privacy rules expect. You get a plain-words report and a fix list ranked by harm, with a fixed price for each fix. Ask about an audit.
Frequently asked questions
Is vibe coding safe?
It can be, if someone reviews what the AI produced. The tools themselves aren't the problem; shipping unreviewed code that handles personal data or payments is.
Can I ask the AI to make my app secure?
It helps to ask, but check the result. AI assistants can miss server-side checks and database rules, and they don't know which data is sensitive for your business.
How long does a security review take?
For a small app, the checks above take hours, not weeks. Fixing what they find depends on the issues.
Sources
Ready to scale your next big idea?
Work with TafHub to design, build, and launch high-performance digital products fast.