Video 01 · One test app · Two reviews
Vibe coding security: what the AI’s own review missed
The short answer
Claude reviewed the test app it had just built and reported 2 minor issues, nothing serious. Months later, my code audit skill reviewed the same code and found 31 findings, 4 of them High. One lets any user take the whole server down with a single note. It’s one app, not a study. Before real users arrive, get a reviewer that didn’t build your app, and a developer to confirm what it finds.
- Written for
- Founders with an AI-built app
- Video
- Read
- Published
- Drawn
- AI draft, from the video
- Checked
- Marko Živić
Video 01 · · 15:00 CET
Plays on YouTube · nothing loads until you press play
Watch on YouTube (opens in a new tab)In this video
15 chapters
- When AI says your app is done (opens in a new tab)
- Why an AI-built app needs a second look (opens in a new tab)
- Why does AI say its own code is fine? (opens in a new tab)
- Vibe coding without a review (opens in a new tab)
- The app: built for a job interview (opens in a new tab)
- How I built it with Claude (opens in a new tab)
- What does AI get right when it builds an app? (opens in a new tab)
- Running my free code audit skill (opens in a new tab)
- What did a security review of an AI-built app find? (opens in a new tab)
- Can AI find security vulnerabilities in code it wrote? (opens in a new tab)
- How I check every finding (opens in a new tab)
- Where do you still need a human in AI code review? (opens in a new tab)
- Is a human reviewer worse than AI? (opens in a new tab)
- Will smarter AI replace developers? (opens in a new tab)
- Is AI-generated code secure? (opens in a new tab)
Why does AI say its own code is fine?
Because it’s grading its own work. The AI that built your app had a reason for every line, so every line makes sense to it.
When AI builds your app, it just tells you it’s done. This time I told it up front to be careful about security and performance. I still ended up with an app that had serious issues. So I did what I do every day: I built it, then I inspected it.
2 minor issues, nothing serious.
Rejected
My code audit skill found 31 findings in the same code, 4 of them High.
You’re asking the same person who built the code to review it. It mostly tells you: of course it makes sense, that’s why I built it like that.
That’s why teams have code review: somebody else reviews your code. It’s the same with AI, and Anthropic’s own guide says so.
Receipt 01 · Official docs Read 28 Oct 2026
“It isn’t swayed by the reasoning that produced the code.”
On a review run in a fresh session that never saw the code being written.
Source Anthropic, Best practices for Claude Code code.claude.com (opens in a new tab)What does AI get right when it builds an app?
Most of the build. The app was ready to run, matched the look I asked for and passed its tests.
I built it for a job interview. I’d applied to be a consultant at one company, and they wanted to see how I work with AI. So I built a simpler copy of their product in about 2 hours. Deep research on the company came first, then a solid plan with AI.
Marko’s note: so I wouldn’t embarrass myself
I pasted the plan into another Claude session, running Fable 5, which had just come out. I told it not to make mistakes.
It did a good job. It followed a good architecture, because I gave it a skill that knows how to organize a Next.js app. I had a lot of tests, and they passed.
My code audit skill later backed that up. Every read and write of a note checks who owns it. The skill found no SQL injection and no way to plant a script in a page.
A3 · A strong core, dangerous edges Drawn for this page · Video 01
The core · held
- owner checked on every note read and write
- no SQL injection
- no way to plant a script in a page
High · 1 The settings a login key printed in the code
High · 2 The build 3 demo accounts, README password
High · 3 One note can take the whole server down
High · 4 The framework a Next.js version anyone can stall
the dark corners.
Then the gaps became my proof. At the interview I showed the app, then the issues AI had left in it. I knew they’d be there, even though I’d told it not to make any. Finding them showed I know AI leaves gaps, and I check for them.
What did a security review of an AI-built app find?
My code audit skill found 31 findings in the test app: 4 High, 2 Medium, the rest Low or Informational.
The skill is free. It’s a set of instructions Claude follows to review a code base. On this app, it wrote a folder of 12 files into my Obsidian vault.
Every finding had to survive a separate agent trying to disprove it. That agent can also kill a real one. And on this app, the skill only read the code. It ran nothing.
Receipt 02 · My own run · n = 1 Run 26 Oct 2026
31 findings. 4 High.
In the test app’s code. 2 more are Medium.
Source My code audit skill’s report on the test app, video 01 youtube.com (opens in a new tab)The 6 that matter most, with the fix for each:
- If one setting is missing, the app trusts a login key printed in the code. Anyone could sign in as a user whose email they know. High. Require that setting.
- Building the live app can add 3 demo accounts whose password is printed in the project’s README file. High. Keep demo accounts out of the live build.
- One note a user saves, under the 50,000-character limit, can take the whole server down. High. Cap how much work one note can cause.
- The app runs a Next.js version without the fix for a flaw anyone can use to stall the server. High. Upgrade Next.js to 16.4.1 or later.
- Sign-in and sign-up have no limit on tries, so anyone can keep guessing passwords. Medium. Limit tries inside sign-in and sign-up.
- The login library accepts display names of any length, so one account can slow the public pages for every visitor. Medium. Apply the app’s name rule inside that library.
The demo accounts are the one I’d argue with. The AI added them so I could get into the app. Kind of intended. In a live app, they’re a back door.
Each finding is marked Confirmed or Likely, so you know what to check by hand. I checked the High and Medium ones. Even the Likely ones held up.
Can AI find security vulnerabilities in code it wrote?
In my test, the session that wrote the code didn’t. Its own review came back almost clean. A separate reviewer found 4 High findings in the same code.
I asked that session to tell me everything wrong with the code, and I listed things to check. Fable 5 is a smart model. It still reported 2 minor issues, nothing serious.
| The AI’s own review | My skill, then me | |
|---|---|---|
| Who reviewed | The session that built the app | A separate agent, then me |
| When | Right after the build | Months later |
| What came back | 2 minor issues | 31 findings |
| Rated High | None | 4 |
| Rated Medium | None | 2 |
It’s one test app, so n = 1. It’s also not a clean race: the skill ran months later, with its own instructions.
AI can help you build an MVP or an internal tool. It can’t find the real gaps in what it built itself.
You need another pair of eyes or in this case, an agent that is coming from a different place with different goals to review what another agent built.
Where do you still need a human in AI code review?
At the end, where someone decides which findings are real and which matter. AI finds the places to look.
In real projects, I go through every finding in the code and the app, and confirm it’s a real problem. Then I decide whether it’s urgent, can wait or is good enough for this product. Anthropic’s guide warns that a reviewer told to find problems will always find something.
In serious systems it goes deeper. Separate skills each look for one kind of issue, and AI reviews their findings. So AI checks the AI that checked the code.
Is a human worse at this than AI? Yes and no.
Marko’s note: I’m a very political person here
A fresh AI reviewer is never tired. It never says: I know this guy, he builds great code, I’ll breeze over it. So it points to every place an issue may hide, and a developer checks each one.
OpenAI’s guide for engineering teams agrees.
Receipt 03 · Vendor guide Read 28 Oct 2026
“Even with AI code review, engineers are still responsible for ensuring that the code is ready to ship.”
Agents do the first code review. Engineers own the merge.
Source OpenAI, Building an AI-native engineering team cdn.openai.com (opens in a new tab)Is AI-generated code secure?
In most cases, it has issues. Mine had a careful plan with security in it, and it still ended up with 4 High findings.
Passing tests doesn’t settle it either. In a peer-reviewed benchmark, an AI coding agent’s code worked far more often than it was secure.
Receipt 04 · Peer-reviewed ICML 2026
57% worked. 11.8% secure.
SWE-Agent with Claude 4 Sonnet, on 186 real feature requests.
Source Zhao et al., “Is Vibe Coding Safe?”, ICML 2026 icml.cc (opens in a new tab)With a plan that tells the AI how to do everything properly, the code can be fine. An MVP or a tool only you use can live with some gaps. Once the app is public, some of its users might mean harm.
I see a lot of founders build an MVP with AI, and security comes up late. Here’s where to start tonight.
The check you can start tonight.
- The session that built it reviews its own reasoning.
- It’s a reviewer that didn’t build your app.
- Some won’t be real. Some won’t matter for your app.
AI can build the app. It doesn’t know what it must never do.
That part is a second reviewer: the free code audit skill, then a developer on the High and Medium findings.
Free · one Claude skill
Run the code audit skill on your app.
- Pre-raise self-check · asks what a buyer’s reviewer asks first
It’s the reviewer that didn’t build your app. Point it at your code; it tells you where to look. A developer still confirms each High and Medium finding.
Free, by email. Copy it, share it, change it.
Sources · 4
Checked
- Video 01: Don’t trust your AI’s security check. Run this one instead, Marko Živić, YouTube, 10 Nov 2026 youtube.com (opens in a new tab)
- Best practices for Claude Code, Claude Code Docs, Anthropic, page undated, read 28 Oct 2026 code.claude.com (opens in a new tab)
- Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks, Zhao et al., ICML 2026 icml.cc (opens in a new tab)
- Building an AI-native engineering team, OpenAI, page undated, read 28 Oct 2026 cdn.openai.com (opens in a new tab)
Corrections
None yet. Found a mistake? Email marko@inspectedbymarko.com. I pin every correction here, with the date.