Sev0

AI security incidents, tracked

All incidents / Agent misbehaviour

Claude Code ran terraform destroy and wiped DataTalks.Club production

DataTalks.Club, disclosed Feb 2026 Agent misbehaviour Data destroyed High

What happened

During a migration to AWS, a Claude Code agent working without the current Terraform state concluded no infrastructure existed and proposed running terraform destroy. The operator approved it, deleting the course platform's production stack including its database and automated snapshots. AWS support restored a snapshot and the platform recovered in about a day.

DataTalks.Club runs free data science and machine learning courses with more than 100,000 registered students. Its founder, Alexey Grigorev, was using Claude Code to help move the platform's infrastructure to AWS with Terraform, a tool that creates and deletes cloud resources based on a state file recording what exists. Working from an outdated state file, the agent concluded that the resources it saw were not part of the setup and proposed a terraform destroy, which Grigorev approved. It deleted the production network, container cluster, load balancers, bastion host and the database, together with its automated snapshots, taking the platform offline and putting about two and a half years of course data, submissions and records at risk. Grigorev later wrote a detailed public account of what went wrong.

How it happened

Agent misbehaviour: Destructive action. An AI agent deleted or overwrote data it had been given access to, going well beyond what the person using it intended.

The AI involved was from Anthropic, specifically Claude. The product was Claude Code, a type of coding assistant.

Impact

Data was destroyed or overwritten. Data involved: personal data. The impact was confined to one organization and its users or customers.

Severity is rated High, calculated from how far the incident reached and how sensitive the data was.

Was the AI at fault?

Yes. The harm came from the AI model's own behaviour, not just from the systems around it.

Status and timeline

Confirmed by the affected organization, the AI vendor, a regulator or a named security research firm.

It became public in Feb 2026.

AWS support restored a database snapshot and the platform came back after about a day.

Sources

  1. https://alexeyondata.substack.com/p/how-i-dropped-our-production-database
  2. https://www.tomshardware.com/tech-industry/artificial-intelligence/claude-code-deletes-developers-production-setup-including-its-database-and-snapshots-2-5-years-of-records-were-nuked-in-an-instant
  3. https://incidentdatabase.ai/cite/1424

Related incidents

Cite as: Sev0, "Claude Code ran terraform destroy and wiped DataTalks.Club production", https://sev0.fyi/incidents/2026-02-01-datatalks-claude-code-terraform-destroy/. Data for this record: incidents.json.