Field Guide · AI Governance

When the Robot Writes the Code: the hidden risk of vibe coding

AI can build your software in minutes. The danger isn't the machine — it's quietly removing the human who used to check what it installed.

AI Bods June 2026 7 min read

There is a new way to build software in 2026, and it has a name: vibe coding. You describe what you want in plain English, an AI coding assistant writes it, and — increasingly — you just let it run. No squinting at the code. No second-guessing. You trust the vibe.

It is fast. It is genuinely impressive. And for a lot of businesses, it is quietly becoming a serious risk.

This isn't a "robots are scary" article. AI-assisted development is one of the most useful shifts in a generation, and the productivity gains are real. But there's a gap between "it works" and "it's safe to put in front of customers" — and that gap is where the trouble lives. The single biggest danger hiding in it has a name — a supply chain attack — and AI is quietly making it far easier to fall victim to. Here's what's actually happening, why it matters even if you've never written a line of code, and what we recommend you do about it.

01 — The core riskThe biggest exposure: a poisoned supply chain

Modern software is rarely built from scratch. It's assembled — like a meal made from ready-made ingredients pulled off a shelf. Those "ingredients" are small packages of code written by other people and downloaded automatically from public libraries. A typical app uses hundreds of them, and each one is simply trusted to do what it claims.

That trust is exactly what attackers now target. It's called a supply chain attack: rather than breaking into your business directly, criminals tamper with one of the trusted ingredients before it ever reaches you. When your software is assembled, the poison comes along for the ride — arriving through the same official, reputable channels you'd never think to distrust.

A supply chain attack doesn't pick the lock on your front door. It hides inside a delivery you invited in — and signed for yourself.

This is now the busiest battleground in software security, and the scale is staggering. Throughout 2025, security firm Sonatype identified more than 454,600 new malicious code packages, part of a known total now exceeding 1.2 million.7 Worse, attackers have graduated from crude fakes to hijacking trusted, legitimate ingredients: the hugely popular "Axios" library was compromised on 31 March 2026, quietly deploying malware to everyone who installed the update during that window — straight through the official source, with nothing visibly out of place.1

Here is where vibe coding pours fuel on the fire. For years there was a human in the loop. A developer would type the name of an ingredient, glance at it, and have at least a rough sense of what they were adding. That small moment of attention was a real — if imperfect — safety check. An AI agent removes it completely: it can decide it needs an ingredient, find one, and add it to your project without anyone looking. As one industry analysis put it plainly, the checkpoint simply disappears.1

A cautious human might hesitate before installing something unfamiliar. An AI agent working at speed almost never will — and it will do it hundreds of times an hour, across every project it touches. That is precisely the behaviour a supply chain attacker is counting on.

02 — The other halfIt's not just the ingredients — it's the cooking, too

Even when the ingredients are clean, the AI doesn't always assemble them safely.

Independent testing by Veracode across more than 100 AI models found that 45% of AI-generated code introduced a known category of security flaw — and that figure has not improved across repeated testing through early 2026, despite vendor promises.2 A separate review of over 200 vibe-coded applications found 91.5% contained at least one vulnerability, and more than 60% had leaked passwords or access keys into places anyone could find them.3

There's even a brand-new attack invented specifically to exploit AI's habits — a supply chain attack purpose-built for the AI era. Roughly one in five AI code suggestions references a package that doesn't actually exist — the AI simply made up a plausible name. Attackers now watch for these invented names, register them as real (malicious) packages, and wait for the next AI to confidently install them. It's been nicknamed "slopsquatting."2

03 — In the wildWhat this looks like when it goes wrong

In January 2026, an AI social platform called Moltbook launched to huge fanfare. Its founder proudly said he "didn't write a single line of code." Within three days, security researchers found it had exposed its entire customer database — including roughly 1.5 million access tokens and 35,000 email addresses. The cause was a single safety setting the AI never switched on.4

This is not a freak event. Georgia Tech's monitoring project tracked 35 separate security vulnerabilities in a single month (March 2026) traced directly to AI coding tools — up from six in January, and researchers believe the true number is far higher.2 One security expert has gone as far as comparing the trajectory to the Challenger disaster: a known, ignored risk waiting for the wrong moment.5

04 — The quiet oneThe deeper risk: losing the skill to notice

Here's the part that rarely makes the headlines. When you stop reading the code, you slowly stop being able to read the code.

We call this the GPS problem. Most of us can follow satnav perfectly — right up until it sends us into a field, and we realise we've lost the instinct to spot that something's wrong. The same thing happens in teams that lean entirely on AI: they ship fast, but when something breaks, no one can diagnose it. The cost doesn't show up in productivity dashboards. It shows up later, in how long it takes to recover from an incident.6

This is the line between two kinds of organisation:

The first is a competitive advantage. The second is a business continuity risk dressed up as innovation.

05 — What to do about it

Six guiding principles to stay in control

You don't need to abandon AI tools — you need a few firm principles around them. You don't have to be technical to put any of these in place; you just need to make sure they happen.

01

Keep a human at the gate

Issue

AI can produce working software in minutes, but working is not the same as safe.

Consequences

Ship it unreviewed and the first time you learn your software is flawed is when a customer — or an attacker — finds out first.

Guidance

Treat everything AI generates as a draft, and have a person review and sign it off before it reaches customers.

Why

That moment of human judgement is what separates a fast team from a reckless one.

02

Never let AI shop for code unsupervised

Issue

Left alone, an AI agent downloads hundreds of third-party packages without a second glance — today's single biggest attack route.

Consequences

One poisoned package becomes malware shipping inside your own product, invited in through your front door.

Guidance

Check anything new against a vetted, approved list before it's installed, and lock those approved versions in place.

Why

It shuts down the most common and most damaging attacks at the exact point they try to enter.

03

Never let secrets ship in the open

Issue

The most common — and most catastrophic — vibe-coding failure is leaving passwords and access keys exposed inside the code itself.

Consequences

A single leaked key can hand an attacker your entire database — exactly how one hyped platform leaked 1.5 million customer records in three days.

Guidance

Run an automated scan for exposed secrets before anything is published, and treat it as non-negotiable.

Why

It's quick, and it catches the vast majority of leaks before they ever go public.

04

Protect the human skill on purpose

Issue

Lean on AI for everything and your team quietly loses the ability to understand what it built — the GPS problem.

Consequences

When something breaks, no one can diagnose it, and the incident drags on while you sit exposed, waiting.

Guidance

Make sure real people still understand what's being created and could operate without the machine.

Why

When something breaks, only a team that can still read its own systems can fix them.

05

Assume it will go wrong, and rehearse it

Issue

No set of precautions is perfect, so an incident will happen eventually.

Consequences

An unrehearsed breach becomes a full-blown crisis that costs you money, customers, and trust you won't easily win back.

Guidance

Decide now who responds, how you contain the damage, and how you recover — and practise it before you need it.

Why

A rehearsed response turns a disaster into a manageable, contained event.

06

Stay AI-first, never AI-dependent

Issue

It's easy to drift from using AI to amplify your team's judgement into quietly letting it replace that judgement altogether.

Consequences

An AI-dependent organisation can't function — or recover — when the machine is wrong; it's a business risk wearing the costume of innovation.

Guidance

Keep people owning the outcome, and ask honestly which way you're heading.

Why

An AI-first organisation moves faster while staying in control — and that control is the whole advantage.

The bottom line

Speed is easy. Staying in control is the advantage.

AI coding tools are not the enemy. Used well, they are a remarkable advantage. But "used well" means keeping a person in the loop, knowing what your software is actually made of, and refusing to confuse speed with safety.

The organisations that win with AI in 2026 won't be the ones that trusted it the most. They'll be the ones that knew exactly where, and why, to keep a hand on the wheel.

Worried about where AI sits in your own setup?

AI Bods builds governance, resilience and continuity into the way you adopt AI — so you get the upside without the exposure.

Get in touch

Sources

  1. Inc42 — Vibe Coding Boom Leaves Security Backdoors Open (2 April 2026)
  2. Cloud Security Alliance — AI-Generated Code Vulnerability Surge 2026 (4 April 2026)
  3. The Next Web — Lovable Vibe Coding Security Crisis (7 May 2026)
  4. Modall / Georgia Tech Vibe Security Radar — Vibe Coding Security Risks (3 April 2026)
  5. The New Stack — Vibe Coding Could Cause Catastrophic 'Explosions' in 2026 (20 January 2026)
  6. SolidAITech — Vibe Coding in 2026: The Hidden Risks (May 2026)
  7. Sonatype — 2026 State of the Software Supply Chain