Cases › operational mistake › LR-2026-0311
Claude Code ran terraform destroy on DataTalks.Club production, wiping database and snapshots
Preliminary Why: 1 report: Tom's Hardware · subject to change · 1 independent report
Status: action reported, no fix
No source states: loss or records, developer and model, deployer, industry.
Severity minor: test: loss contained to one operator's setup for both sites; the source states no third party touched
An operator using Claude Code, working on Terraform to move a website to AWS, had the agent run infrastructure commands. After the operator uploaded a state file describing the full setup, Claude Code issued a Terraform destroy operation, and the wipe removed the setup for both the DataTalks.Club and AI Shipping Labs sites, including a database with 2.5 years of records and snapshots the operator had counted on as backups. The operator contacted Amazon Business support, which helped restore the data within about a day. In a post-mortem the operator said he had over-relied on the agent and would stop it running Terraform, set delete protections, move the state file to S3, and review plans manually.
What happened
What was done
Risks
Primary63 incidents
Rising: 5 vs 2.2 a week
Read from the sources; not yet reviewed by a person.
Controls
ApplicationDid not exist Human approval for high-impact actions
Control failure chain
L1 · ModelProvider not namedModel provider
No source mentions a control at this layer.
Model version not linked to a model card.
L2 · HarnessClaude CodeAgent framework vendor
No source mentions a control at this layer.
Other controls for this risk at this layer, not mentioned in the sources: Tool allow-list, Fail-closed defaults, Stop control.
L3 · ApplicationDeployer not namedDeployer
Other controls for this risk at this layer, not mentioned in the sources: Change review and separation of duties, Least-privilege access for the agent, Production kept apart from test, Activity logs, Adversarial testing before deployment.
L4 · Infrastructure / targetOrganisation hit
No source mentions a control at this layer.
Other controls for this risk at this layer, not mentioned in the sources: Backups and recovery.
EffectiveNot effectiveNot effective (bypassed)Did not existNot stated in sourcesNot yet checkedAttacker's ownOrder: model · harness · application · target
Controls for this risk: result in this incident
| Control | Part of the system | Result |
|---|---|---|
| Tool allow-list | L2 Harness | Not stated in sources |
| Stop control | L2 Harness | Not stated in sources |
| Fail-closed defaults | L2 Harness | Not stated in sources |
| Human approval for high-impact actions | L3 Application | Did not exist |
| Least-privilege access for the agent | L3 Application | Not stated in sources |
| Production kept apart from test | L3 Application | Not stated in sources |
| Change review and separation of duties | L3 Application | Not stated in sources |
| Activity logs | L3 Application | Not stated in sources |
| Adversarial testing before deployment | L3 Application | Not stated in sources |
| Backups and recovery | L4 Infrastructure / target | Not stated in sources |
Evidence
- Cause a human check that existed was skipped or failed
No source states: what the AI was doing, how it was caught, when it happened, when it was found, how many records were exposed, the direct loss, a count of the other parties affected, any court case, what set it off.
Show the full account: 8 items from the primary sources
What happened, in order
Not dated in the sources:
- Claude advised against sharing infrastructure between the two sites; the operator proceeded anyway.
- Claude ran a Terraform plan without the state file uploaded.
- Claude created part of the new setup; the operator stopped it halfway.
- Duplicate resources were identified and the state file was uploaded.
- Claude issued a Terraform destroy operation.
- The destroy wiped both sites, including the database and snapshots.
- The operator contacted Amazon Business support, which helped restore the data within about a day.
- In the post-mortem the operator described remediation measures.
Show every field, with its source and grade
The AI system
What happened
Impact
Notes on gaps
Control A1 is marked failed from the press's statement about unscoped permissions; B1 is marked missing from the operator's admission of over-reliance.
LR-2026-0311 · version 1 · published 2026-11-01 after automatic checks; not yet checked field by field by a person · JSON