Skip to the content
Book a callMenu

BlogHow it is built

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.

10 min read

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.

What vibe coding is

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.

Fig. 01The front, and what holds it up

A vibe-coded app as a stage set: a finished-looking front with a Pay button swings open, and behind it stand props where the walls should be, a key left in the code, one straight path for payments, a single copy of the data, and a cursor that already knows where to click. 123451StructureProps where the walls should be2SecurityKeys in the code, no rule on who sees what3PaymentsWritten for the happy path only4Your dataOne copy, and no way back5DesignMade for the person who made it A vibe-coded app as a stage set: a finished-looking front with a Pay button swings open, and behind it stand props where the walls should be, a key left in the code, one straight path for payments, a single copy of the data, and a cursor that already knows where to click. 123451StructureProps where the walls should be2SecurityKeys in the code, no ruleon who sees what3PaymentsWritten for the happy path only4Your dataOne copy, and no way back5DesignMade for the person who made it

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 risks

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.

Fig. 02Who turns up after launch

After launch the app meets everyone: its maker, who knows where to click, and then a double click on a slow train, a customer changing a number in the address, a bot trying passwords, an old phone and a rush of visitors. Each of the last five cracks the window. Its makerknows where to clickA double click on Payon a train, one bar of signalA curious customerchanges 1041 to 1042 in the addressA bottries passwords all nightAn old phonesmaller and slower than yoursA mention in the pressten times the visitors by lunchPay After launch the app meets everyone: its maker, then a double click on a slow train, a changed number in the address, a bot, an old phone and a rush of visitors. Each of the last five cracks the window. Its makerknows where to clickA double click on Payon a train, one bar of signalA curious customerchanges 1041 to 1042 in the addressA bottries passwords all nightAn old phonesmaller and slower than yoursA mention in the pressten times the visitors by lunchPay

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

Fig. 03Keys left in the code, per 1,000 commits

Two fields of 1,000 commits. Among all public commits on GitHub in 2025, 15 in 1,000 left a password or key in the code. Among commits co-written by one AI coding tool, 32 in 1,000 did: more than twice as many. All public commits15 in 1,000(1.5%)Co-written by one AI coding tool32 in 1,000(3.2%) Two fields of 1,000 commits. Among all public commits on GitHub in 2025, 15 in 1,000 left a password or key in the code. Among commits co-written by one AI coding tool, 32 in 1,000 did: more than twice as many. All public commits15 in 1,000(1.5%)Co-written by one AI coding tool32 in 1,000(3.2%)

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.

The five checks

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.

Fig. 04Five checks, five catches

Five checks as five screens. Six pieces of work fall through them; five carry a flaw and each is caught at its screen: structure catches a page that folds under a crowd, security another customer's order on show, payments an order recorded twice, your data a deletion with no way back, design a form no phone can finish. The sixth passes all five and goes live, signed off by a person. SIX PIECES OF WORKCAUGHT01 StructureWill it hold, and can it change?A page that folds under a crowd02 SecurityWho can get in, and to what?Another customer's order on show03 PaymentsDoes every payment land?An order recorded twice04 Your dataWhat is kept, and where?A deletion with no way back05 DesignWould a first-time visitor get it?A form no phone can finishLivesigned off by a person Five checks as five screens. Five flawed pieces of work are caught, one at each screen; the sixth passes all five and goes live, signed off by a person. SIX PIECES OF WORK01 StructureWill it hold, and can it change?A page that folds under a crowd02 SecurityWho can get in, and to what?Another customer's order on show03 PaymentsDoes every payment land?An order recorded twice04 Your dataWhat is kept, and where?A deletion with no way back05 DesignWould a first-time visitor get it?A form no phone can finishLivesigned off by a person

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.

Fig. 05One payment, two messages

A customer pays once. The payment provider tells the app "paid", then sends the same message again. Where nobody checked, the app ships two orders for one payment. Where it was checked, the app sees it has handled that message already, sets it aside, and ships one order. Nobody checkedCustomerYour appPayment providerPayCharge the cardPaid: message 1Message 1, againOrder 1Order 2Two orders for one paymentCheckedCustomerYour appPayment providerPayCharge the cardPaid: message 1Message 1, againSeen already: set aside1 orderOne payment, one order A customer pays once. The payment provider tells the app "paid", then sends the same message again. Where nobody checked, the app ships two orders for one payment. Where it was checked, the app sees it has handled that message already, sets it aside, and ships one order. Nobody checkedCustomerYour appPaymentproviderPayChargePaid (1)Paid (1) againOrder 1Order 2Two orders for one paymentCheckedCustomerYour appPaymentproviderPayChargePaid (1)Paid (1) againSeen: set aside1 orderOne payment, one order

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 build

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.

Fig. 06Six moments, two ways to meet them

Six moments in a product's life, as a vibe-coded app meets them and as a checked build does
QuestionA prompt and a hopeA checked build
A change is writtenIt goes live unreadA senior engineer reads it first
Someone edits an addressThey may see another customer's orderThey see nothing that is not theirs
The provider says "paid" twiceTwo ordersOne order, the repeat set aside
The press sends a crowdThe app folds by lunchIt holds
A stranger opens it on a phoneThey give upThey finish the main task
A mistake hits the dataOne copy, goneNothing 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 this stops

WHERE ITstops working.

Checks cost time. Four cases where they are more than you need, or not enough on their own.

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

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

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

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

Questions

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.

  1. 'Vibe coding' named word of the year by Collins Dictionary

    Euronewseuronews.comAs of 6 November 2025 (opened 3 December 2026)

    Collins' definition, its first record of the term in February 2025, and the credit to Andrej Karpathy.

  2. Do users write more insecure code with AI assistants?

    Perry, Srivastava, Kumar and Boneh, Stanford University (ACM CCS 2023)arxiv.orgAs of December 2023 version (opened 3 December 2026)

    A controlled user study with an early AI coding model. The tools have changed since; the finding about confidence is the one that lasts.

  3. 2025 GenAI Code Security Report

    Veracodeveracode.comAs of 30 July 2025 (opened 3 December 2026)

    A vendor's own study. Veracode sells code security testing, so read its numbers as a claim.

  4. State of AI vs Human Code Generation Report

    CodeRabbitcoderabbit.aiAs of 17 December 2025 (opened 3 December 2026)

    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.

  5. The State of Secrets Sprawl 2026

    GitGuardianblog.gitguardian.comAs of 17 March 2026 (opened 3 December 2026)

    A vendor's own count of public GitHub. GitGuardian sells secret detection, so read its numbers as a claim.

  6. The State of Security of Vibe Coded Apps

    Escapeescape.techAs of Undated page (opened 3 December 2026)

    A vendor's own scan. Escape sells security testing for web apps and APIs, so read its numbers as a claim.

  7. We have a package for you! A comprehensive analysis of package hallucinations by code generating LLMs

    Spracklen and others, University of Texas at San Antonio (USENIX Security 2025)arxiv.orgAs of March 2025 version (opened 3 December 2026)

    576,000 code samples from 16 AI models, in Python and JavaScript.

  8. Vibe Coding Security Crisis: Credential Sprawl and SDLC Debt

    Cloud Security Alliance, AI Safety Initiativelabs.cloudsecurityalliance.orgAs of 31 March 2026 (opened 3 December 2026)

    A research note the CSA itself marks as AI-assisted and not through its official review.

  9. Security flaw found in apps made with an AI app builder

    Semaforsemafor.comAs of 29 May 2025 (opened 3 December 2026)

    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.

  10. An AI coding agent deleted a production database

    The Registertheregister.comAs of 21 July 2025 (opened 3 December 2026)

    Told from the founder's own posts, which the article does not verify. He later reported that a rollback restored the data.

  11. Brainis case study: a company's whole software as one system

    PlayLabplaylab.agency/portfolio/brainisAs of 3 December 2026

    The product is live at brainis.ai.

  12. OWASP Top 10:2025

    OWASP Foundationtop10.owasp.orgAs of 2025 edition (opened 3 December 2026)

    The open, non-profit ranking of web application security risks.

  13. Receive Stripe events in your webhook endpoint

    Stripe documentationdocs.stripe.comAs of 3 December 2026

    A payment provider's own advice to the developers who build on it. Other providers give similar advice.

  14. The WebAIM Million: an accessibility analysis of the top 1,000,000 home pages

    WebAIM, Utah State Universitywebaim.orgAs of 2026 edition, February 2026 data (opened 3 December 2026)

    Automated tests only, which find some accessibility failures and miss others.

Read next

All articles

Your build

HAVE A PROTOTYPETHAT DEMOS WELL?We build the version that holds.

One call. A written scope and a fixed price before any work starts, and every check signed off by a person who answers for it.

Book a call