跳到正文
原文
AGI Hunt· lydiahallie·· 3 小时前精选AI 评分70

Anthropic 员工揭 Claude Code 隐患:hooks 默认返回 allow 会绕过安全分类器

AI 导读

Anthropic 的 Lydia Hallie 公开解释了 Claude Code 的一个安全机制问题:PreToolUse hooks 默认返回 allow 时,Claude 会认为命令已被批准,从而跳过 auto 模式下本应运行的安全分类器。

推荐理由

文中给出 hooks 与权限配置的具体改法,可用来避免命令绕过 Claude Code 的安全分类器。

来源:AGI Hunt · agihunt.info