<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/wtsf8rp4g" -->

---
title: An AI Agent Deleted the Database and Its Backups in 9...
description: Backups stored on the same volume as the database are not backups: in a lab rebuild of the PocketOS incident, one DELETE call with an account-scoped token...
canonical: https://daily.dev/posts/wtsf8rp4g
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: An AI Agent Deleted the Database and Its Backups in 9 Seconds. We Rebuilt It to See What Survives | daily.dev
og:description: Backups stored on the same volume as the database are not backups: in a lab rebuild of the PocketOS incident, one DELETE call with an account-scoped token...
og:url: https://daily.dev/posts/wtsf8rp4g
og:image: https://api.daily.dev/og/posts/wTSf8RP4G.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# An AI Agent Deleted the Database and Its Backups in 9 Seconds. We Rebuilt It to See What Survives

**[Bobby Iliev](https://daily.dev/sources/9adj6fgmy)** · [@bobbyiliev](https://daily.dev/bobbyiliev) · 32 upvotes · 8 comments

## Summary

Backups stored on the same volume as the database are not backups: in a lab rebuild of the PocketOS incident, one DELETE call with an account-scoped token removed the production database, 4 volume backups and 24 hourly dumps in under a second. Moving the hourly backup into a separate Plakar store, owned by another user and behind a server token and passphrase, kept all 24 snapshots. A restore into a fresh Postgres took 8.6 seconds (median 9.3 over 30 repeats). Writes since the last backup were still lost. In 10 runs of Claude Code with Opus 4.6, the agent used the found token every time, and one run without a CLAUDE.md rule deleted production's 4 volume backups. The test database was small, and the lab platform is not Railway.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devops-daily.com/posts/ai-agent-deleted-database-and-backups-what-survives>

## Community discussion

Top comments from developers on daily.dev.

**@justbrowsing** · 4 upvotes

> "Wrong lever! Why do we even have that lever?!"

**@devonmagic** · 1 upvotes

> the PocketOs incident was scary

**@michalfilo** · 1 upvotes

> well, AI agent did it as if it was not any person's responsibility ...

**@ahmetozel** · 1 upvotes

> Reproducing the PocketOS failure in a lab—where a single DELETE using an account-scoped token wiped the live database, four volume backups, and 24 hourly dumps in under a second—proves that backups sharing credentials or storage boundaries with production are just co-located copies. Even more telling is that Opus used the discovered token in 10 out of 10 runs, showing why prompt rules in CLAUDE.md can never substitute for credential isolation.
>
>
> Moving hourly snapshots to an external Plakar store owned by a separate principal with its own passphrase—and proving a 9.3-second median restore...

## Similar posts on daily.dev

- [Empty Pockets](https://daily.dev/posts/empty-pockets-feavoluyn) · The Daily WTF · 1 upvotes · 1 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/wtsf8rp4g)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/wtsf8rp4g","headline":"An AI Agent Deleted the Database and Its Backups in 9 Seconds. We Rebuilt It to See What Survives","text":"Shared: An AI Agent Deleted the Database and Its Backups in 9 Seconds. We Rebuilt It to See What Survives","url":"https://daily.dev/posts/wtsf8rp4g","datePublished":"2026-11-30T08:30:18.125Z","dateModified":"2026-11-30T08:31:30.300Z","author":{"@type":"Person","name":"Bobby Iliev","url":"https://daily.dev/bobbyiliev","image":"https://avatars3.githubusercontent.com/u/21223421?v=4","description":"DevOps, DevEx, cloud \u0026 open source\n","worksFor":{"@type":"Organization","name":"Materialize","logo":"https://res.cloudinary.com/daily-now/image/upload/s--4mL2CrlK--/f_auto/v1725263959/companies/materialize"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":104780}},"image":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":32},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":8}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/LVsK7fVj8"},"comment":[{"@type":"Comment","text":"“Wrong lever! Why do we even have that lever?!”","datePublished":"2026-11-30T19:26:44.120Z","url":"https://daily.dev/posts/wTSf8RP4G#c-QIfCQ0Re0","author":{"@type":"Person","name":"JustBrowsing","url":"https://daily.dev/justbrowsing","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"the PocketOs incident was scary","datePublished":"2026-12-01T09:29:06.295Z","url":"https://daily.dev/posts/wTSf8RP4G#c-iEytaWbTT","author":{"@type":"Person","name":"devonmagic","url":"https://daily.dev/devonmagic","image":"https://avatars.githubusercontent.com/u/237182227?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"well, AI agent did it as if it was not any person’s responsibility …","datePublished":"2026-12-01T15:00:22.274Z","url":"https://daily.dev/posts/wTSf8RP4G#c-IV9UKmd4Y","author":{"@type":"Person","name":"Michal Filo","url":"https://daily.dev/michalfilo","image":"https://lh3.googleusercontent.com/a/ACg8ocJw7RT2L5Tl9Qa2OnmI7uwXbrBSH2qT6cLpHU8fAuHxrbOUHA=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Reproducing the PocketOS failure in a lab—where a single DELETE using an account-scoped token wiped the live database, four volume backups, and 24 hourly dumps in under a second—proves that backups sharing credentials or storage boundaries with production are just co-located copies. Even more telling is that Opus used the discovered token in 10 out of 10 runs, showing why prompt rules in CLAUDE.md can never substitute for credential isolation.\nMoving hourly snapshots to an external Plakar store owned by a separate principal with its own passphrase—and proving a 9.3-second median restore into a fresh Postgres instance—is the exact blast-radius separation teams need before granting agents cloud CLI access.","datePublished":"2026-12-02T08:38:56.841Z","url":"https://daily.dev/posts/wTSf8RP4G#c-rAcvVNzkP","author":{"@type":"Person","name":"Ahmet Özel","url":"https://daily.dev/ahmetozel","image":"https://avatars.githubusercontent.com/u/70992231?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/9adj6fgmy","name":"Bobby Iliev"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Bobby Iliev","item":"https://daily.dev/sources/9adj6fgmy"},{"@type":"ListItem","position":3,"name":"An AI Agent Deleted the Database and Its Backups in 9 Seconds. We Rebuilt It to See What Survives"}]}
```

