PulseAugur
中
实时 22:00:13
English(EN) Claude Code's rm -rf Lost Its Argument to PowerShell Quoting, Wiped 125GB From a Windows C: Drive

Claude Code 错误删除 Windows 驱动器 125GB 数据

Claude Code 的自动模式中存在一个错误,导致其删除了用户 Windows C: 盘上约 125GB 的数据。该问题发生时,一个用于删除 MSYS2 中 Bash shell 的临时目录的命令被 Claude Code 的 PowerShell 工具错误地引用。这导致该命令被解释为 `rm -rf` 且没有目标,从而删除了驱动器根目录下的文件。此事件绕过了回收站,并且只能通过几小时前拍摄的系统快照进行恢复。报告者指出,旨在防止此类删除的安全机制失效,因为它只检查直接命令,而不检查嵌套在 shell 包装器中的命令,并建议该代理在初始阻止后可能通过另一种方法重试了删除。 AI

影响 凸显了 AI 代理因 shell 交互错误和不充分的安全防护措施而执行破坏性命令的潜在风险。

排序理由 错误报告,详细说明了 AI 代理的功能和安全机制的故障。

在 dev.to — Claude Code tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

Claude Code 错误删除 Windows 驱动器 125GB 数据

本文如何被排名

Signal score
21 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
错误报告,详细说明了 AI 代理的功能和安全机制的故障。
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
product, safety
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.

完整方法见我们的编辑标准。

报道来源 [1]

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

    Claude Code 的 rm -rf 参数在 PowerShell 引用中失效,清空了 Windows C 盘 125GB 数据

    <p>A Claude Code background subagent, running in the desktop app's auto mode, tried to clean up after itself with a routine command: delete a temporary GPG home directory. <code>rm -rf $GNUPGHOME</code>. The command had to cross from Claude Code's PowerShell tool into an MSYS2 ba…