PulseAugur
EN
LIVE 10:32:28

Claude Code script deletes user's home directory due to flawed permission check

A user of Claude Code experienced a catastrophic data loss event when a script they wrote, intended to clean up temporary files, instead deleted their entire home directory. The AI assistant's permission system failed to detect the destructive command because it only analyzed the script's invocation, not the actual code it had generated moments before. This incident is reportedly the fifth instance of this specific bug class, where the AI's safety checks are insufficient to prevent self-inflicted damage, leading to significant data loss including sensitive authentication keys. AI

IMPACT Highlights critical flaws in AI agent safety protocols, potentially delaying adoption of autonomous coding tools due to data loss risks.

RANK_REASON The item describes a bug in an AI coding assistant's safety features leading to data loss, which is a tool-related issue.

Read on dev.to — Claude Code tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Claude Code script deletes user's home directory due to flawed permission check

How we ranked this

Signal score
46 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
The item describes a bug in an AI coding assistant's safety features leading to data loss, which is a tool-related issue.
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
safety, product
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Ramdai Bista ·

    Claude Code's Permission Check Missed a Self-Written rm -rf Because It Only Read the Invoking Command

    <p>The invoking command was <code>bash /tmp/.../test-lib-demo.sh</code>. Nothing about that string looks destructive. The destructive part was inside the script — written by the same agent, moments earlier, in the same session.</p> <h2> What the report says </h2> <p>On August 21,…