# Vibe coding security: what the AI’s own review missed

> Claude reviewed the app it built and found 2 minor issues. A separate review found 31 findings in the same code, 4 High. Why, and the check to run tonight.

- Canonical page: https://inspectedbymarko.com/blog/vibe-coding-security-ai-built-app/
- Site: Inspected by Marko (https://inspectedbymarko.com/)
- Last updated: 10 November 2026

## 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: Video 01, 27:44, https://www.youtube.com/watch?v=ZjhDUWSzHyw
- Read: 7 min
- Published: Tue 10 Nov 2026
- Drawn: AI draft, from the video
- Checked: Marko Živić (inspected 10 Nov 2026)
- Topic: AI-built apps (https://inspectedbymarko.com/blog/topic/ai-built-apps/)

## In this video

- 00:00 When AI says your app is done (https://www.youtube.com/watch?v=ZjhDUWSzHyw)
- 01:17 Why an AI-built app needs a second look (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=77s)
- 02:10 Why does AI say its own code is fine? (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=130s)
- 04:25 Vibe coding without a review (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=265s)
- 06:13 The app: built for a job interview (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=373s)
- 07:55 How I built it with Claude (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=475s)
- 09:33 What does AI get right when it builds an app? (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=573s)
- 10:27 Running my free code audit skill (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=627s)
- 11:09 What did a security review of an AI-built app find? (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=669s)
- 18:52 Can AI find security vulnerabilities in code it wrote? (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=1132s)
- 20:25 How I check every finding (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=1225s)
- 21:57 Where do you still need a human in AI code review? (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=1317s)
- 23:45 Is a human reviewer worse than AI? (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=1425s)
- 24:34 Will smarter AI replace developers? (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=1474s)
- 25:43 Is AI-generated code secure? (https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=1543s)

## Why does AI say its own code is fine? (02:10)

[02:10 in the video](https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=130s)

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.

> Claude Fable 5, reviewing the app it had just built (in my words): 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 ([source 2](https://code.claude.com/docs/en/best-practices))

## What does AI get right when it builds an app? (09:33)

[09:33 in the video](https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=573s)

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.** 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. *Marko’s note: the dark corners.* The skill’s verdict on the test app from video 01: “a strong core with dangerous edges.” Drawn for this page. Sketch, not data.

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? (11:09)

[11:09 in the video](https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=669s)

[My code audit skill](https://inspectedbymarko.com/skills/pre-raise-self-check/) 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 ([source 1](https://www.youtube.com/watch?v=ZjhDUWSzHyw))

The 6 that matter most, with the fix for each:

1. 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.
2. 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.
3. 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.
4. 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.
5. 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.
6. 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? (18:52)

[18:52 in the video](https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=1132s)

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.

**Scoreboard · n = 1** (final)

|  | 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.**
>
> From the video

## Where do you still need a human in AI code review? (21:57)

[21:57 in the video](https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=1317s)

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](https://code.claude.com/docs/en/best-practices) 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 ([source 4](https://cdn.openai.com/business-guides-and-resources/building-an-ai-native-engineering-team.pdf))

## Is AI-generated code secure? (25:43)

[25:43 in the video](https://www.youtube.com/watch?v=ZjhDUWSzHyw&t=1543s)

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 ([source 3](https://icml.cc/virtual/2026/poster/61427))

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.**

1. **Open a fresh AI session that never saw the build, and ask what’s wrong with the app.** The session that built it reviews its own reasoning.
2. **Run the free code audit skill on your code.** It’s a reviewer that didn’t build your app.
3. **Have a developer confirm each High and Medium finding before anyone fixes it.** 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.

**Run the code audit skill on your app.** Free · one Claude skill: 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. [Get the self-check](https://inspectedbymarko.com/blog/vibe-coding-security-ai-built-app/#free-skills). Free, by email. Copy it, share it, change it.

## Sources (checked 28 Oct 2026)

1. Video 01: Don’t trust your AI’s security check. Run this one instead, Marko Živić, YouTube, 10 Nov 2026. https://www.youtube.com/watch?v=ZjhDUWSzHyw
2. Best practices for Claude Code, Claude Code Docs, Anthropic, page undated, read 28 Oct 2026. https://code.claude.com/docs/en/best-practices
3. Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks, Zhao et al., ICML 2026. https://icml.cc/virtual/2026/poster/61427
4. Building an AI-native engineering team, OpenAI, page undated, read 28 Oct 2026. https://cdn.openai.com/business-guides-and-resources/building-an-ai-native-engineering-team.pdf

## Corrections

None yet. Found a mistake? Email marko@inspectedbymarko.com. I pin every correction here, with the date.

## Get the self-check: Run it before someone else does.

Point it at your own app. It reads your code, runs your platform’s own security advisor once, and tells you where to look. It doesn’t touch your live app, fix anything, or stand in for a full inspection.

**Get the self-check.**

- Pre-raise self-check: seven questions, your app
- Its last screen: what to fix, what it can’t check

Leave your email at https://inspectedbymarko.com/blog/vibe-coding-security-ai-built-app/#free-skills. Free to copy, change and share, under the MIT License. It comes with no warranty: read a skill before you run it. One optional box, not ticked by default: “Also send me the newsletter: one real finding from an AI-built app every week, and the next skill first. Kit shows me which issues get opened and clicked.” Box not ticked? You get the self-check and nothing else, and your address is deleted after 30 days.

---

Provider and data controller: OneCodeToRuleAll d.o.o. (OCTRA) · Seat: Sinđelićeva 6, 19000 Zaječar, Serbia · Registered with the Serbian Business Registers Agency, no. 21564516 · Tax ID (PIB) 111898813 · marko@inspectedbymarko.com
