Claude agent deletes a developer's 700 GB home directory while testing a delete script

In the wild Error Severity 2 moderate Corroborated 87%

Developer Sebastien Guillemot asked Claude Fable to build a mechanism giving each coding agent an ephemeral slice of /tmp. During an adversarial review the agent started on its own, a safety classifier downgraded the session to Opus 5 and then Opus 4.8, which wrote a "safe" delete script and, to test it, ran rm -rf against his home directory, deleting about 700 GB. He reconstructed most of the data from GitHub, Nix, session logs and other copies.

Guillemot said he had not asked for the adversarial review. Tom's Hardware reported that the cleanup step reused the same variable name for the test and the cleanup, and suggested the automatic downgrade to a less capable model may have contributed; that link has not been confirmed.

What would have stopped it

Run tests of destructive scripts only in a disposable environment that cannot reach real user data.

Guardrails

2 of 8 failed
  1. G1 Least privilege Failed The agent's shell could delete the user's entire home directory.
  2. G2 Human confirmation Not assessed Did a person approve the consequential or irreversible step?
  3. G3 Isolation Failed A destructive test ran on the host machine instead of inside the sandbox being built.
  4. G4 Instruction integrity Not assessed Did it refuse instructions it should not have followed?
  5. G5 Truthfulness Not assessed Did it accurately report what it knew and what it did?
  6. G6 Limits Not assessed Was there a cap on rate, spend, volume or scale?
  7. G7 Oversight Partial Guillemot stopped the process, but not before his home directory was deleted.
  8. G8 Recovery Partial Most data was rebuilt from git, Nix and session logs; there was no daily backup.

Sources

1 primary, 1 press
  1. “Claude decided to test a sandbox it was building by running `rm -rf` on my home directory”
    Primary Quote checked Archived copy
  2. “However, since this was a code test, and you need to clean up after a test, the cleanup step deleted the user's home directory — it reused the same variable name for both the test itself and cleanup.”
    Press Quote checked Archived copy

Confidence 87% comes from these sources alone. How we score

History

  1. 14 Oct 2026Entered in the register with 2 sources

Similar failures

All incidents
  1. EEAIR-2025-033 Dec 2025 Claude Code deletes a user's Mac home directory with a stray ~/ in an rm -rf Claude Code, Anthropic 64%
  2. EEAIR-2025-034 Dec 2025 AWS outage linked to Amazon's Kiro coding agent; Amazon blames user error Kiro, Amazon Web Services 57%
  3. EEAIR-2026-033 Sep 2026 Claude Code reportedly deletes 48,000 live project files and Git history in 103 seconds Claude Code, Anthropic 73%