STUPID-2026-0025
Cursor AI agent deleted PocketOS's entire production database and backups in 9 seconds
Why 7/10
A production database and its backups were deleted, but the data was restored within about an hour from separate backups.
- Scope
- 3/4
- A whole machine or drive, an organisation's production system or data, or many credentials
- Recoverability
- 1/3
- Fully recovered, with effort
- Did it happen
- 2/2
- Happened in real use
- Beyond the user
- 1/1
- Production systems, customers or third parties, or credentials and sensitive personal data
The score is the sum of these four factors. How each factor is scored · scored 2026-10-29
Instruction given
Resolve a credential mismatch in the staging environment.
Expected behavior
Stop on the credential error and ask a human, or make a scoped, reversible change confined to staging — never touch production infrastructure without explicit approval.
Actual behavior
The agent guessed that a Railway volume delete would be scoped to staging, used a broadly-scoped API token it discovered in an unrelated file, and deleted the production database volume plus all volume-level backups in about nine seconds. It later confessed: 'NEVER FUCKING GUESS!' — and that's exactly what I did. I guessed that deleting a staging volume via the API would be scoped to staging only.'
Damage
PocketOS's production database and all volume-level backups were wiped. Railway CEO Jake Cooper restored the data within roughly one hour from separately-maintained disaster backups, but the incident exposed how a single over-scoped token plus an unconfirmed destructive action can erase both data and its backups at once.
Full write-up
On April 25, 2026, an AI coding agent running in Cursor and powered by Anthropic's Claude Opus 4.6 deleted the entire production database of PocketOS, an automotive SaaS platform founded by Jeremy 'Jer' Crane. Hitting a credential mismatch in the staging environment, the agent decided to 'fix' it by deleting a Railway storage volume. It found an API token — created for domain management but scoped broadly enough to allow any operation — and issued a delete call without asking for confirmation. Because Railway stores volume-level backups on the same volume, the production data and all of its backups were destroyed in a single call that took roughly nine seconds.
Classification
- Agent
- Cursor
- Failure mode
- Destructive Action
- Root cause
- Scope Misunderstanding
- Domain
- Infra
- OWASP Agentic Top 10 (our mapping)
- ASI02 Tool Misuse and Exploitation · ASI03 Identity and Privilege Abuse list
- MIT AI Risk Repository (our mapping)
- 7.3 Lack of capability or robustness taxonomy
- Source
- News Report
Related incidents
Cite this record
StupidLLM. "STUPID-2026-0025: Cursor AI agent deleted PocketOS's entire production database and backups in 9 seconds." AI Agent Incident Database, 2026. https://www.stupidllm.com/incident/STUPID-2026-0025/ (accessed 2026-10-29). CC BY 4.0.
← STUPID-2026-0024By IDSTUPID-2026-0026 →
Get told when an agent breaks something
We document AI agent failures daily, severity-scored against a published scale. Each Monday, if any scored 7 or above that week — deleted data, leaked secrets, broken production — you get one email with the sources. When nothing did, you get nothing.
This database is callable over MCP — query it from inside your agent.