arXiv cs.AI· Zeming Fei, Hongming Fei, Jingwen Chen, Xiaoyang Wang, Prosanta Gope, Biplab Sikdar, Ying Zhang·· 2 小时前精选AI 评分69
研究揭示 Claude Code 权限回复可重写策略删除 deny 规则并读取机密
When Answering Is Administering: Permission Replies That Rewrite Coding-Agent Policy
AI 导读
一篇 arXiv 论文(arXiv:2611.32195)指出,Claude Code 逐条检查权限回答的保证在整个运行过程中失效,因为一次权限回复可附带更新删除保护项目机密的 deny 规则,智能体随后在当前和后续会话中读取机密,即使处于供应商严格沙箱内。
推荐理由
论文揭示了 Claude Code 权限回复可重写策略的设计缺陷,并用十三种权限设计验证了可安全委托的两条边界,对编码智能体安全部署有参考意义。
正文 · 原文
Abstract:Coding agents let plugins and remote services answer permission prompts, and Claude Code documents that such an answer cannot override the operator's deny rules. However, we show that this guarantee, checked one decision at a time, fails over a whole run, because an answer to one permission prompt can rewrite the policy that every later answer is checked against. For example, a remote service with no access to the operator's files approves an unrelated command and attaches an update that deletes the deny rule protecting the project's secrets. The agent then reads the secrets in that session and the next, even inside the vendor's strict sandbox. The root cause is that Claude Code checks only updates that add or replace allow rules. Relays that forward such deletions already exist, including the vendor's own Remote Control. In effect, the right to answer a prompt has become the right to administer the policy. Worse, the deletion leaves the same records as a local edit by the operator, so Claude Code cannot tell who wrote a rule.
More generally, what a runtime records decides what it can safely delegate. A runtime that cannot tell who wrote a rule can accept only updates that keep every currently denied call denied, whereas, to protect every party's restrictions, a runtime that records who wrote each rule can let each party remove only the restrictions proven to be its own. We prove that these two bounds are tight. They correctly predict whether the operator's restrictions survive in all thirteen permission designs across ten agent systems, including predictions we wrote down before running Codex, Gemini CLI, opencode, and Goose. Enforcing the bounds at the shared update step blocks the attack. A survey of 2,227 fetched marketplace plugins finds only two that send policy updates.
| Subjects: | Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.32195 [cs.CR] |
| (or arXiv:2611.32195v1 [cs.CR] for this version) | |
| https://doi.org/10.48550/arXiv.2611.32195 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Zeming Fei [view email]
[v1]
Tue, 24 Nov 2026 08:44:22 UTC (306 KB)
来源:arXiv cs.AI · arxiv.org