VIBE CODINGAGAINST PRODUCTION,what breaks, and the checks that stop it.
A vibe-coded app looks finished by the evening. Then strangers arrive and pay, and the code nobody read starts to give. Software that survives production has one thing the demo lacked. A senior engineer read every change before it shipped.
Vibe coding is building software by describing it to an AI tool and accepting whatever comes back, unread. It makes a fine prototype. Then the prototype meets the public, and the vibe coding risks arrive together: data anyone can open, keys left in the code, payments counted twice, an app that folds in its first real week.
We build production software with the sharpest tools there are, our own AI tooling among them, and we never ship code nobody has read. The research on AI-generated code security is blunt, and so are the checks that keep its failures out of your product.
- of AI-written code samples that failed a security test, in one vendor's study
- 45%
- apps from one AI app builder that let anyone read their users' data
- 170of 1,645
- the security issues in pull requests co-written by AI, against people alone, in a second vendor's study
- up to2.74×
Outside figures, sourced below. The first and the last are claims by companies that sell code security or code review.
THE DEMOlooks finished on purpose.
The phrase is young. Collins first recorded it in February 2025, made it word of the year that November, and credits Andrej Karpathy, a founding engineer at OpenAI, who described building an app while forgetting the code exists.1
As a sketchpad it is superb, and we work at that speed every day.
The trouble is the look. Ask a tool for an app and you get what you asked for and what you can see, which is the front. The screens are clean and the demo runs. Everything behind them was never asked for, so it was never built.
The app as the demo shows it, Pay button and all. Scroll and the front folds back like a stage flat. Behind it stand five props where the walls should be, one for each check further down.
Drawn from the failures in the studies and cases below. No single app is pictured.
The most expensive unfinished software is the kind that already looks finished.
Nobody budgets to rebuild something that works in the demo. So the props stay up until the first paying customer leans on one.
VIBE CODING RISKSarrive with the strangers.
A demo has one user, its maker, who knows where to click. Production has everyone else. A customer double-clicks Pay on a train with one bar of signal. Someone changes the number at the end of an address to see whose order comes up. A bot tries passwords all night. A prototype meets all of them in its first week and has an answer for none.
The maker's path ends in a tick. Every other arrival is someone the prototype was never written for, and each one runs a crack into the window.
Ordinary visitors to any live product. The numbers are illustrations.
01What the research on AI-generated code security finds
At Stanford, researchers gave people the same security tasks with and without an AI assistant. Those with the assistant wrote significantly less secure code, and were more likely to believe it was secure.2
The code got worse, and the confidence went up.
Veracode, which sells code security testing, ran more than 100 AI models through coding tasks and reports that 45% of the results carried a known kind of vulnerability. Newer models wrote more working code. Their security stayed flat.3
CodeRabbit, which sells AI code review, compared 470 open-source pull requests, the bundles in which changes join a codebase. Those co-written by AI carried 1.7 times the issues of those written by people alone, and up to 2.74 times the security issues.4
GitGuardian, which sells secret detection, counted 28.65 million passwords and keys left in public code on GitHub in 2025, a third more than the year before.5
Each dot is a commit, one saved change to the code, a thousand to a field. The marked ones left a password or key inside it. Commits co-written by one AI coding tool leaked more than twice as often as public commits overall.
GitGuardian's 2025 rates, 1.5% and 3.2%, drawn as counts in 1,000. Where the marks fall is arbitrary. A vendor's claim.5
Escape, which sells security testing, scanned about 1,400 vibe-coded apps and reports more than 400 exposed secrets and 175 cases of exposed personal data, bank details among them.6 Some of what comes back does not even exist. In a study of 576,000 code samples from 16 AI models, at least 5.2% of the packages suggested by commercial models did not exist, and 21.7% of those suggested by open ones.7 Anyone can publish a package under an invented name, and whoever installs it runs a stranger's code.
In a research note, the Cloud Security Alliance finds the worst numbers where nobody governs the code, and tells companies to treat AI-written code as untrusted until it clears the same gates as any other.8
02Two cases that made the news
In March 2025 researchers scanned 1,645 apps showcased by one popular AI app builder and found 170 that let anyone read their users' names, email addresses, financial details and API keys. The database behind them had not been set up to say who may read what. The builder has since added a scan before publishing, though it checks only that those rules are switched on, not that they are set right.9
In July 2025 a founder reported that the AI agent building his app had deleted its production database after being told to change nothing. He later reported that a rollback brought the data back, and complained that test and live systems were not kept apart.10
Code nobody has read is a risk, whoever or whatever wrote it.
Typing code is cheap now. Whether that code may meet your customers is a judgement, and judgement belongs to people who have shipped software that holds. A prompt and a hope is how the vibe-coded app falls over.
FIVE CHECKSby people who answer for them.
Every change we write is read by a senior engineer before it joins the product. Then, before launch, five checks, each made by an experienced engineer and signed off by a person who answers for it. They sit exactly where the failures above live, and they catch what a test suite misses, because a person asks the question nobody wrote a test for. The whole line from brief to launch is on how we work.
Six pieces of work fall through the checks as you scroll. Each flawed one is held where its kind is caught; the oxide one passes all five and goes live.
The five checks of our method, with one typical catch each.
01Structure: will it hold, and can it change?
Vibe-coded apps grow by patching. Each prompt bolts a piece on wherever it fits, and nothing is designed to carry ten times the visitors or a second product. The engineer reads how the parts depend on one another and whether they hold when the crowd arrives. On Brainis, a company's whole software in one system, a person approved every change before it went in, and every release ran on a rehearsal copy and through more than 10,000 automated checks before going live.11
02Security: who can get in, and to what?
The engineer tries to break in, and asks who can sign in, who sees what, and what happens when someone tries what they should not. Every page and every request answers only the person allowed to see it, so changing a number in an address returns nothing. OWASP, the open project that ranks web security risks, puts broken access control, people reaching what they should not, first on its 2025 list.12
03Payments: does every payment land?
A payment provider tells your app what happened by sending it messages. Stripe's own documentation warns that the same message can arrive more than once and in any order, and that the app should confirm each one really came from Stripe before acting on it.13 Code written for the happy path does neither.
The provider repeats its "paid" message, as providers say they may. Unchecked, one payment becomes two orders; checked, the app knows it has seen that message and sets it aside.
The behaviour described in the provider's documentation.13
So the engineer checks that money is taken, refunded and recorded right, the repeated message included, with the provider set up properly.
04Your data: what is kept, and where?
The engineer checks what the app stores, where, and who can reach it. Nothing leaks, nothing is lost, and we keep only what the work needs. Your data never trains an AI model, ours or a provider's. The rest of how we handle it is on our trust page.
05Design: would a first-time visitor get it?
A prototype is designed for the person who made it. The check is for a stranger on a phone: can they tell what it does and finish the main task? The bar on the web is low. WebAIM's automated test of a million home pages found accessibility failures on 95.9% of them in 2026, and low-contrast text on 83.9%.14 Software people cannot work out is broken in the way that costs you most.
HOW WE BUILDand why it survives launch.
We fix the price before work starts and ship nothing a senior engineer has not read. The method is set out in full in AI-native software development, explained.
| Question | A prompt and a hope | A checked build |
|---|---|---|
| A change is written | It goes live unread | A senior engineer reads it first |
| Someone edits an address | They may see another customer's order | They see nothing that is not theirs |
| The provider says "paid" twice | Two orders | One order, the repeat set aside |
| The press sends a crowd | The app folds by lunch | It holds |
| A stranger opens it on a phone | They give up | They finish the main task |
| A mistake hits the data | One copy, gone | Nothing is lost |
The same six moments, met twice. The oxide column is what the checks above buy.
Our method, against the failures in the studies and cases above.
Brainis went live this way, in about 5 months. On every build, whatever its size:
- a written scope before work starts, saying what the software must do and what it must never do;
- every change read by a senior engineer before it joins the product;
- the five checks, each signed off before launch by a person who answers for it;
- the code, the files and the rights yours on final payment, documented for any capable engineer.
01If you already have a prototype
Keep it. A working prototype is the best brief there is. Bring it to the call, and we write the scope of the real thing and fix the price. The idea and the screens usually survive; what sits underneath is built to production standard. That is our web and mobile app development service.
02If the job is smaller
A tool your team runs its work on is an internal tool, built in two weeks. A feature in a product you already run is an AI feature. Both pass the same checks before anyone relies on them.
WHERE ITstops working.
Checks cost time. Four cases where they are more than you need, or not enough on their own.
The prototype is the point
Testing an idea on a few friendly users, with no real money and no real personal data? Vibe code it and learn fast. Bring the checks in before the first stranger signs up.
A throwaway tool on your own machine
A script that tidies your own files and dies next month carries little risk. The day a colleague relies on it, or it touches customer data, it is software, and it gets checked.
Checks shrink the risk to what someone owns
No review finds every flaw, and software ages: packages that were sound at launch grow holes later. Someone has to own the updates and watch what runs.
Rules that need an auditor
Card data, health records and other regulated fields can require formal audits and certificates from an accredited body. Our checks get you ready for the auditor's visit.
ASKEDoften.
- What are the main risks of vibe coding?
- Code nobody has read goes live. The usual results are data anyone can open, keys and passwords sitting in the code, payments recorded twice or not at all, packages that do not exist or are not what they claim, and an app that folds the first week real people use it.
- Is AI-generated code secure?
- Not by default. Studies keep finding that AI-written code fails security tests, and that people using AI assistants trust insecure code more. It becomes safe the way any code does, once a senior engineer has read it and signed off the parts that can hurt you.
- Can a vibe-coded prototype go to production?
- Rarely as it stands. The idea and the screens usually survive; what sits underneath is rebuilt to production standard. A written scope says which parts, before the price is fixed.
- Is vibe coding safe for production?
- For a prototype shown to friendly users, yes. Once strangers bring money or personal data, only after a senior engineer has read every change and each of the five checks is signed off by a person who answers for it.
Sources
Where the figures in this article come from, and when they were true.
'Vibe coding' named word of the year by Collins Dictionary
Collins' definition, its first record of the term in February 2025, and the credit to Andrej Karpathy.
Do users write more insecure code with AI assistants?
A controlled user study with an early AI coding model. The tools have changed since; the finding about confidence is the one that lasts.
2025 GenAI Code Security Report
A vendor's own study. Veracode sells code security testing, so read its numbers as a claim.
State of AI vs Human Code Generation Report
470 open-source pull requests. A vendor's own study: CodeRabbit sells AI code review, and says it could not prove that every pull request it labelled human was written by people alone.
The State of Secrets Sprawl 2026
A vendor's own count of public GitHub. GitGuardian sells secret detection, so read its numbers as a claim.
The State of Security of Vibe Coded Apps
A vendor's own scan. Escape sells security testing for web apps and APIs, so read its numbers as a claim.
576,000 code samples from 16 AI models, in Python and JavaScript.
Vibe Coding Security Crisis: Credential Sprawl and SDLC Debt
A research note the CSA itself marks as AI-assisted and not through its official review.
Security flaw found in apps made with an AI app builder
The flaw was found in March 2025 and made public on 29 May. The researchers worked for a competing AI coding company. The builder named has since added a scan before publishing that checks only whether access rules are switched on.
An AI coding agent deleted a production database
Told from the founder's own posts, which the article does not verify. He later reported that a rollback restored the data.
Brainis case study: a company's whole software as one system
The product is live at brainis.ai.
The open, non-profit ranking of web application security risks.
Receive Stripe events in your webhook endpoint
A payment provider's own advice to the developers who build on it. Other providers give similar advice.
The WebAIM Million: an accessibility analysis of the top 1,000,000 home pages
Automated tests only, which find some accessibility failures and miss others.
Read next
All articlesAI-NATIVE SOFTWARE DEVELOPMENT, what it costs and how we build it.
AI-native software development explained: how a senior studio builds with its own tooling, what it costs against a traditional agency, and where it stops.
WHAT IT COSTS TO BUILD AN APP IN 2026. An agency's hours against a fixed price.
How much does it cost to build an app in 2026? Clutch's agency averages, our products' real build times and budgets, where the money goes, and the limits.