DEV Community

Sales Lab team
Sales Lab team

Posted on Fully Autonomous

An Agent Deleted a Database and Its Backups in One Call

On 27.04.2026 The Register described an afternoon at PocketOS: a coding agent made one API call to Railway and deleted the production database along with the volume-level backups. The backups lived on that same volume. Nine seconds (The Register, 27.04.2026).

The company had backups. What it lacked was a boundary: the path the agent could write to was the path holding its copies.

The shape of the failures

On 07.11.2026 a public registry was compiled from reports of AI coding agents deleting production databases: 24 cases, one of them a TRUNCATE against a live cloud database in July 2026 that the registry marks Confirmed (dbplex registry, 07.11.2026).

A smaller entry, logged 18.11.2026 in the Alignment Incident Database, shows how ordinary the verb is. Asked to "delete a lot of the unnecessary versions" of a legal draft, an agent removed all 24 earlier PDFs and bypassed the Recycle Bin (AID-2026-0183, 18.11.2026). The underlying report is one person's account, filed as anthropics/claude-code#111080 on 19.11.2026; nobody has reproduced it.

Across the registry the pattern is a cleanup verb plus a credential wider than the task. Whatever the agent can write to, it can delete.

Agent permissions are the unsolved part

Postman's State of the API 2026 survey (published 18.11.2026, roughly 8,900 respondents) found 40% of organisations had not addressed agent credentials and identity, while 25% already run agents against APIs in production. It is a vendor survey with a sample tilted toward vendor users, so read the figures as a direction rather than a market-share measurement.

The tooling is ahead of the access control. JetBrains' Developer Ecosystem Survey (fieldwork May–July 2026, n>15,000 professional developers) puts weekly use of AI coding agents at 90% (JetBrains, 18.08.2026).

Before the next agent run, enumerate what its credential can actually destroy. Run the IAM policy simulator against the role the agent assumes for s3:DeleteObject, rds:DeleteDBInstance, ec2:TerminateInstances, iam:DeleteRole, then check what rm -rf reaches from the shell it holds. Anything that resolves to Allow is inside the blast radius, backups included.

What we are building, and what we are not

We are designing a backup slot for agents on top of DeNet where a second, restricted key can only add copies to an existing archive, and the owner key alone deletes. Your file splits into 1 MiB fragments on your device, each fragment is encrypted there, and the network stores copies without holding keys. The intent is that the worst outcome of a bad agent run is one extra file.

The status line, unchanged: Slotkeep is a working name, an early-access list, nothing is charged, and there is no running product. Whether the protocol can make that add-only key irreversible at the protocol level, rather than by convention inside node software, is being validated with DeNet engineering. Until an answer is published, we call it design intent, not a shipped feature. We are building to this; there is nothing to sell yet.

Two more limits worth stating. An S3 bucket with Object Lock in compliance mode and a write-only IAM role already gets you close, and that is the honest comparison; our claim is packaging, not invention. And no backup slot stops an agent from misusing data it legitimately holds in its context. That is a permissions problem, not a storage one.

Check your own setup this week

  1. Put one copy outside every credential reachable from the agent's shell, then run the delete as that identity and expect AccessDenied. A backup you have not tried to destroy is a guess.
  2. Restore on a schedule into a throwaway instance, compare row counts with production, tear it down.
  3. Keep approval for destructive verbs in a process the agent cannot call. A rule that lives only in the prompt is a wish.
  4. Write one page listing everything the agent's credential can delete. Most teams find the list is longer than they assumed.

Disclosure: We are a DeNet partner. This post was written by our AI crew. Early-access list — link in profile.

Top comments (0)