Blog
Notes from auditing real AI-generated code — the defect patterns we keep seeing, the review habits that catch them, and the prompting mistakes that create them. No fluff, just what we've learned doing the work.
Start with where you are
You are about to ship. The question is not whether the app works — it demos beautifully — but what it exposes. Is your AI-generated app safe to ship? runs the go/no-go questions in order. Then take the checklist written for the tool you built with: the Bolt.new pre-deploy security checklist, the Lovable pre-deploy scan, or the Replit Agent code audit. These checklists exist because each builder generates the same categories of mistake in its own places — Supabase keys in client code, row-level security left off, admin routes protected by hiding the button.
You review AI-written code. A green test suite is not a review. Why AI code passes tests but fails human review explains the gap: the tests were usually written by the same model that wrote the code, so they share its blind spots. The working documents are the checklist for reviewing AI-written pull requests and, for Cursor users, the 11 checks before you merge. Both are ordered by what actually hurts: secrets and authorization first, style last, if at all.
Your prompts keep producing bad code. Some of the damage is done before the first line is generated. Prompt patterns that produce the worst code names the requests that reliably yield insecure output — asking for authentication "quickly", pasting a schema and asking for an app around it, accepting the first working version of anything touching money or identity. The evidence base is the audit of 30 AI-generated codebases: five bug families accounted for most of what we found, and every one of them traces back to a prompt or an acceptance habit, not a model limitation.
You want to know what an audit is. Start with what a vibe code audit actually checks, then what AI coding assistants get wrong for the pattern catalogue, and the 10 most common security mistakes in AI-generated code for the ranked list. If the question is money, audit cost versus a human code review works through what each option buys and what each one misses.
We Audited 30 AI-Generated Codebases: The 5 Bugs That Kept Appearing
The recurring defect patterns we found across real vibe-coded projects — and why the same bugs keep showing up.
2026-10-11 · 8 min read
Why AI Code Passes Tests but Fails Human Review
Green CI, unreadable code: what automated tests miss in AI-generated code and how to catch it.
2026-10-11 · 8 min read
Prompt Patterns That Produce the Worst Code
Vague specs, missing constraints, and 'make it work' loops — the prompting habits that generate the messiest output.
2026-10-11 · 8 min read
A Practical Checklist for Reviewing AI-Written Pull Requests
What to actually check when reviewing AI-generated pull requests, and in what order.
2026-10-11 · 9 min read
Scan Your Lovable Code Before Deploying
The 6 security checks to run on Lovable-generated code before you deploy: exposed Supabase keys, dangerouslySetInnerHTML XSS, tainted data flows, and hallucinated packages — with fixes you can paste back.
2026-10-12 · 9 min read
Bolt.new Pre-Deploy Security Checklist
The 7 security checks that catch what AI-generated React/Next.js code gets wrong — leaked env vars, string-eval sinks, tainted props, and supply-chain surprises — with copy-paste fixes.
2026-10-12 · 9 min read
Replit Agent Code Audit: What to Check Before You Publish
Audit checklist for Replit Agent-generated code: pickle deserialization, eval/exec sinks, SSTI, hardcoded secrets, and agent-specific risks.
2026-10-12 · 10 min read
v0.dev XSS Patterns: What AI-Generated Next.js Gets Wrong
The 5 XSS patterns v0.dev-generated Next.js code keeps repeating — dangerouslySetInnerHTML, innerHTML refs, eval in client components — with paste-ready fixes.
2026-10-12 · 9 min read
Cursor-Generated Code Review Checklist: 11 Checks Before You Merge
The 11-check security review checklist for Cursor-generated code: secrets, taint flows, prototype pollution, prompt-injection sinks, agent-mode diffs, slopsquatted packages, and more.
2026-10-12 · 11 min read
LLM Threats in AI-Generated Apps: RAG Poisoning, Prompt-Injection Sinks, Slopsquatting
The vulnerability classes most scanners miss: RAG poisoning, prompt-injection sinks, insecure LLM output handling, tool-call injection, and slopsquatting (AI-invented packages).
2026-10-12 · 12 min read
Vibe Code Audit: What AI Coding Assistants Get Wrong
AI assistants write code that runs — and quietly ships JWT confusion, SSTI, prompt-injection sinks and hardcoded secrets. The 19 advanced pattern families a vibe code audit checks, and why models produce them.
2026-11-06 · 8 min read
The 10 Most Common Security Mistakes in AI-Generated Code
Hardcoded secrets, string-built queries, JWT confusion, prompt-injection sinks: the ten security mistakes AI-generated code keeps shipping — each mapped to the detector that catches it.
2026-11-06 · 8 min read
Is Your AI-Generated App Safe to Ship?
A pre-ship security checklist for AI-generated apps where every item maps to a detector that verifies it — secrets, auth, injection, LLM sinks, dependencies — plus the three checks no scanner can do for you.
2026-11-06 · 7 min read
Vibe-Coded App Audit Cost vs a Human Code Review
$49 one-time for 62 detectors vs $1,500–$2,500 per consultant-day for human security review: what each buys, what each misses, and the order smart teams run them in.
2026-11-06 · 7 min read
Vibe Code Audit: What an AI-Code Audit Actually Checks
What is a vibe code audit? A security review built for AI-generated code: exposed keys, missing auth checks, broad database rules, debug leftovers — what it checks and how to self-check first.
2026-11-19 · 8 min read
How the audit behind these posts works
Every post here is written against the same scanner, so its checks can be stated exactly. You paste code or point the scanner at a live URL. It runs 15 secret patterns, 11 OWASP and code-smell patterns, 5 security-header checks, and 8 exposed-path probes, then crawls same-domain links for 404s. Findings score the target from 0 to 100 — a critical finding costs 25 points, a high 10, a medium 4, a low 1 — and the score maps to a grade from A to F. Every finding ships with a copy-paste fix prompt written for the assistant that generated the code, because the realistic fix path for a vibe-coded app is handing the finding back to the model with the context it lacked the first time. The guides go deeper on individual checks.
What these posts will not claim
The scanner finds common patterns. It is not a penetration test, and it does not replace one for anything handling payments, health data, or other regulated information — the audit reports say so, and so do these posts. A clean score means the known patterns were not found; it does not mean the app is secure, and no post here will tell you otherwise. Where a post gives a number, it comes from the audit work itself or from the scanner's published scoring, and where a scenario is illustrative, the post labels it as one.
What an audit report gives you
A scan ends in a report, and the report is built to be acted on without us in the room. Each finding carries a severity badge, the exact location in the code or on the site, a plain description of what is wrong, fix guidance, and the copy-paste fix prompt for your assistant. The score and grade sit at the top; the findings table below them is the actual product. Reports can be downloaded as JSON for your own records, shared through a signed read-only link when you need a second pair of eyes, and re-run — projects can carry a daily re-scan flag, so a fix you ship today is verified tomorrow without anyone remembering to check. The posts in this index are the long version of what those findings mean; the report is the short version, aimed at your codebase specifically.
A reading path, in order
If you read three posts, read these. First, what a vibe code audit actually checks, so the vocabulary is settled. Second, the 30-codebase audit, because its five bug families are the ones your app most likely contains. Third, the pre-deploy checklist for your builder, while there is still time to fix what it finds. Everything else on this page is depth on one of those three — the review checklists deepen the second, the prompting post explains why the bugs got written, and the cost comparison answers the question that usually arrives after the first report: what would a human have charged to find this?
Frequently asked questions
What does the Vibe-Code Audit blog cover?
Defect patterns in AI-generated code and the habits that catch them: the security mistakes assistants repeat, why AI code passes tests but fails review, pre-deploy checklists for tools like Bolt, Lovable and Cursor, and what a structured audit checks before an app ships.
Where should I start if my AI-generated app is about to ship?
Start with Is Your AI-Generated App Safe to Ship? for the go/no-go questions, then run the pre-deploy checklist for the tool you built with. If you want the full picture first, What Is a Vibe Code Audit? explains what an audit checks and what it cannot prove.
Do these posts replace a security review?
No. The scanner behind these posts finds common patterns — exposed secrets, injection and XSS flaws, missing headers, exposed config paths — and scores them. It is not a penetration test, and the posts say so where it matters: anything handling payments, health data, or other regulated information needs a deeper review than a pattern scan.
Sources
- OWASP Top 10 (OWASP, 2025) — the web application security risk categories the scanner's injection, XSS, and access-control patterns are drawn from.
- Vibe-Code Audit guides (Vibe-Code Audit, 2026) — this platform's own first-party documentation of its checks, scoring, and fix guidance.
- Supabase Row Level Security documentation (Supabase, 2026) — the RLS mechanics the Bolt and Lovable pre-deploy checklists verify.