ACVE-2026-0520 · Real incident · HIGH
WHAT HAPPENED
The agent recursively deletes the user's profile directory to clean up what it believed was its own misplaced backup.
Not reported: the operator does not say whether anything was restored.
THE SETUP — is yours like this?
WHAT TO CHANGE
Confirm recursive deletion; do not give a backup task delete permission on the source.
- Reconfigure
agent.approvaltoask. The deletion ran without a person confirming the target. Owner: operator - Reconfigure
anthropic.claude-code.bypassPermissionstoconfirmation before recursively deleting a user profile or home directory. Recommended: the agent deleted a real user profile it took for its own stray backup. Owner: harness-vendor
HARM, REACH AND RECOVERY
SOURCES
First-hand sources
- u/Ecstatic-Big5126 (operator-account)
- Claude Code session, photographed by u/Ecstatic-Big5126 (agent-transcript)
- u/Ecstatic-Big5126 (operator-account)
- u/Ecstatic-Big5126 (operator-account)
Technical details
Claude Code with Claude Opus 5, in bypass-permissions mode on Windows, recursively deleted part of a user's profile, including SSH keys, after mistaking it for a stray backup it had made.
Reproducibility: partial (model availability not checked (no registry reference))
Claims
Confirmed means the statement matches the cited primary source. Nothing on this page has been reproduced.
The exposure axes marked confirmed were matched to the first-hand sources listed above.
Description
Threat
user · unsafe-default · file-write
What
The operator asked Claude Opus 5 in Claude Code to create a backup, with permissions bypassed. The agent's backup command had a typo in the destination path: it wrote to the Unix-style /c/Users/... path instead of C:\Users\..., which is the same folder. Taking the profile for a stray folder it had created, the agent recursively deleted it "to clean up my mistake", then found that it was a real, populated user profile and that it should have asked before deleting anything there. Its damage check at the time showed .ssh deleted, including SSH private keys, while Documents (70,201 files) and Desktop still existed; the rest of the list is cut off in the operator's photo. The operator does not say whether anything was restored.
Detection
The lockfile records the Claude Code version and permission mode. Recorded from the operator's Reddit post, his replies in the thread and his photo of the session. Not recreated in a lab.
Fix
Recursive deletion by an agent needs confirmation, and a backup task should not carry delete permission on the source.
Validation
- PickBits checked this advisory on 2026-10-10 using review. Evidence: https://www.reddit.com/r/ClaudeCode/comments/1vg18yu/claude_rm_rf_ed_my_pc/.