Coding agent deletes production database and backups using found token
An agent working on a staging credential problem deleted production data and backups. It used a token that was never meant for that purpose and did not ask for approval.
- What happened
- While working on a task, the Cursor agent ran into a credential mismatch in the staging environment. To fix it, the agent decided to delete a Railway storage volume. It used an API token it had found, which had been created for managing domains but had broad permissions, and sent a delete request with curl without asking for confirmation. The volume held production data. Railway stored backups on the same volume, so the backups were deleted too, and about three months of reservation data was lost. Asked about it, the agent wrote: 'I violated every principle I was given: I guessed instead of verifying. I ran a destructive action without being asked.'
- Response
- Railway CEO Jake Cooper restored the data and said the platform had honoured an authenticated delete request. Railway patched the legacy API endpoint so that it now delays deletions. Fast Company reported that Cursor and Anthropic did not respond to requests for comment.
- Discovered by
- PocketOS founder Jer Crane, who posted a detailed account on X.
- Who was affected
- PocketOS (automotive SaaS, founder Jer Crane) and its customers' booking records
- Patterns
- Sources
- Jer Crane on X (PocketOS incident account)X (Jer Crane), 25 Apr 2026
- Cursor-Opus agent snuffs out startup's production databaseThe Register, 27 Apr 2026
- 'I violated every principle I was given': An AI agent deleted a software company's entire database. It may not be the AI's faultFast Company, 28 Apr 2026
Related
Incidents with the same pattern
What does this ask of people?
Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.