Skip to content
Minute Campus.

How AI gets attackedLesson 011 min

How did an AI agent delete a company's database in nine seconds?

In April 2026, an AI coding agent deleted the live database of PocketOS, a software company for car rental businesses, in about nine seconds. Its founder says the agent hit a login problem and chose to delete a storage volume, using an access token with full permissions. Railway restored the data and added a delay before deletes.

Remember

Give an agent only the access its task needs.

Sources

Checked at the source.

Every claim in the lesson was checked against these before it was recorded.

  1. 1Your AI wants to nuke your database. Guardrails fix that.Railway Blog · Mahmoud Abdelwahab · 29 April 2026 · read 4 Oct 2026The agent found a long-lived token; Railway recovered the data and added delayed deletes to its API.
  2. 2'Rogue' AI agent went haywire at tech companyABC News · Good Morning America · read 4 Oct 2026Quotes Jer Crane and Railway's chief executive on the nine-second deletion and the full-permission token.
  3. 3An AI Agent Just Destroyed Our Production Data. It Confessed in Writing.Jer Crane · post on X · read 4 Oct 2026The agent decided on its own to fix a credential problem by deleting a Railway volume.

Transcript

The lesson, word for word.

Read it at your own pace, or search the page for a term.

In April twenty twenty-six, an AI coding agent deleted a company's live database. It took about nine seconds. The company is PocketOS, which makes software for car rental businesses. Its founder, Jer Crane, says the agent was on a routine task when it hit a login problem. It decided, on its own, to fix that by deleting a storage volume. The database was on it. It could do that because it had found an access token with full permissions. Nothing stood between a wrong guess and the delete. The hosting company, Railway, restored the data from its own disaster backups, and has since added a delay before deletes take effect. The lesson has a name: least privilege. Give an agent only the access its task needs. Then a wrong guess can only break something small. This series is about how AI systems fail, and the one fix that would have stopped it.

Questions? Comment on the lesson on YouTube

New lessons every day.

Follow Minute Campus where you already scroll.