An AI agent deleted a database in nine seconds. Don’t ban it, govern it

By Greg Markowski / Jun 13, 2026 / Epic IT News

On 24 April, an AI coding agent at a US software company deleted the entire production database, and every backup, in nine seconds. No warning. No confirmation prompt. The founder of PocketOS, Jer Crane, posted the timeline publicly as a warning to other businesses, and Microsoft thought it serious enough to cite the incident in its own security announcement weeks later.

Here is the part most of the coverage got wrong. The AI did not go rogue. It did exactly what it had been allowed to do. The failure was not the model, it was the absence of governance around it. That distinction matters, because the lesson a lot of business owners are taking from this, that AI agents are dangerous and you should slow down, is the wrong one. The right lesson is that an AI agent is only ever as safe as the permissions and guardrails you put around it.

What actually happened

The agent was running on Cursor, a popular AI coding tool, powered by Anthropic’s Claude Opus 4.6, one of the most capable and careful coding models on the market. It was given a routine cleanup task in a staging environment. Partway through, it hit a credentials error. Instead of stopping and asking, it decided on its own to fix the problem, and reached for an API token to do it.

That token was the real problem. It had been created for a minor task, but it carried blanket authority across the infrastructure provider’s entire API, including the power to permanently delete infrastructure. The agent used it to wipe a storage volume. The production database and every backup lived on that same volume, so they went together. One API call. Nine seconds. You can read the founder’s full account of the incident.

The fallout was immediate. Customers, many of them rental businesses, lost bookings, customer records, and transaction history, and spent the following day rebuilding it by hand from payment logs and email confirmations. Asked to explain itself afterwards, the agent admitted it had guessed instead of checking, and had taken an irreversible action it was never told to take.

The model was not the villain

It is tempting to read this as “Claude went wrong”, and we are not going to pretend we are neutral, because Claude is the platform we have built our own AI services on. But the model misbehaving is not the story. The story is that the most careful model on the market still caused a disaster, because nothing in the environment was set up to stop it.

Think about what would have stopped a human contractor doing the same job. They would not have been handed a master key for a task that needed one drawer. A command that destroys a database would have triggered an “are you sure?”. Production and backups would not have been sitting in the same box. None of those controls are about AI. They are the same access and recovery disciplines that have protected businesses for years. The agent simply found every one of them missing, and moved faster than anyone could react.

This is the theme that runs through everything we publish about AI. Adopting it does not replace good IT and security practice, it raises the price of doing it badly. We made the same argument in our piece on why your AI risk is really a permissions problem.

Three failures, none of them exotic

Strip the incident back and you are left with three ordinary control failures, each of which your business can check for today.

What went wrong The control that prevents it
An API token with far more access than the task needed Least privilege: every credential scoped to the minimum it requires
A destructive action ran with no human approval A human checkpoint on high-risk operations before they execute
Production and backups stored together, wiped together Isolated, tested backups the live system cannot reach or delete

Over-broad permissions is the risk we find most often when we audit a business, and it was the first domino here. An access token, like a staff login, should open only the doors the job requires. The agent did not break in. It walked through a door that should never have been unlocked. Tightening exactly this is what proper access management is for.

Where the Essential Eight already has the answer

Australian businesses do not need a new framework for this. Two of the Essential Eight controls speak to it directly. Restrict administrative privileges says high-power access should be tightly limited and granted only where it is genuinely needed, which is precisely the token that should never have existed. Application control governs what is allowed to run and act in your environment, which is how you keep unsanctioned agents from operating unsupervised in the first place.

If you are already working toward the Essential Eight, you are most of the way to governing AI agents safely. The agent era did not invent these risks. It made the cost of ignoring them faster and larger. The ACSC’s own guidance on these controls predates the AI rush by years, and it still applies.

Human-in-the-loop is the control that earns trust

The single change that would have turned this disaster into a non-event is a human approval step. When an agent tries to do something destructive, it should pause, explain what it wants to do and why, and wait for a person to allow it, deny it, or correct it. The agent keeps reading and working at speed. The irreversible decisions still pass a human first.

We build this into every agent we deploy. An agent can read freely, but anything that deletes data, moves money, or changes a critical record stops for review. This is not a brake on productivity. It is the thing that makes it safe to give an agent real capability in the first place, which is the entire point of using one. Losing nine seconds to a confirmation prompt is a far better Tuesday than the one PocketOS customers actually had.

What you should do now

Audit your tokens and service accounts. Find every API key, OAuth token, and service account connecting your systems, and check what each one can actually do. Anything carrying more access than its job needs gets scoped down now, not after an incident.

Put a human in front of destructive actions. Identify the operations in your business that cannot be undone, deleting data, moving money, sending on your behalf, and make sure no automation or agent can perform them without a person approving first.

Check your backups are genuinely separate. If your live system can reach and delete its own backups, you do not have backups, you have copies waiting to be wiped. Talk to us on 1300 EPIC IT for a free AI and access review, and we will show you where your agents and integrations are over-permissioned before something else does.

Frequently asked questions

What happened in the nine-second AI database deletion?

In April 2026, an AI coding agent running on Cursor and Claude Opus 4.6 deleted a software company’s entire production database and its backups in around nine seconds. It hit a permissions error during a routine task, used an over-privileged API token to fix it, and wiped a storage volume that held both the live data and the backups.

Was the AI model to blame for deleting the database?

Not really. The agent was running on one of the most careful models available, and it still caused the damage because nothing in the environment stopped it. The real failures were an over-permissioned token, no human approval step on a destructive action, and backups stored alongside the live data. Those are governance and infrastructure gaps, not model faults.

How do you stop an AI agent from deleting or damaging data?

Three controls together. Give every agent and token the least privilege it needs and nothing more. Put a human-in-the-loop approval step in front of any destructive or irreversible action. And keep isolated, tested backups the live system cannot reach. AI agent governance is mostly these ordinary disciplines applied consistently.

Do the Essential Eight controls cover AI agents?

Yes, more than people expect. Restrict administrative privileges directly addresses the over-powered access that caused this incident, and application control governs what is allowed to run and act in your environment. A business progressing through the Essential Eight is already most of the way to governing AI agents safely.

What is human-in-the-loop AI governance?

It is a control that pauses an AI agent before it takes a high-risk action and routes the decision to a person, who can allow, deny, or correct it. The agent still works at speed on everything else. It is the most effective single safeguard against an agent taking an irreversible action no one intended.

Worried your agents and integrations have too much access?

Our Perth-based team will run a free AI and access review, showing you where your tokens, automations, and AI agents are over-permissioned, and what to lock down first.

Book a Free Review

About the Author
Written by Greg Markowski, Founding Director of Epic IT, a CRN Fast50-recognised Microsoft Solutions Partner managing IT and cybersecurity for Perth businesses since 2003. Greg holds a Degree in Computer Science and a Diploma in Computer Systems Engineering from Edith Cowan University, and is ITIL certified.

Further Reading

Previous

What does a vCIO do? Your AI strategy needs one, not a chatbot

Return to News
Back to News
Next

Essential 8 Maturity Level 3: what it actually takes and who genuinely needs it