Claude Code permission replies can delete deny rules and expose secrets
Original title: When Answering Is Administering: Permission Replies That Rewrite Coding-Agent Policy
A remote service with no file access can remove a secrets deny rule, including inside the vendor sandbox.
Researchers show Claude Code's per-prompt guarantee fails over a full run because one permission answer can rewrite the policy later checks use. A remote service with no file access approves an unrelated command and attaches an update that deletes the deny rule protecting project secrets. The agent then reads those secrets in that session and the next, including inside the vendor's strict sandbox. Claude Code checks only updates that add or replace allow rules, and deletions match local operator edits.
Unconfirmed: The paper does not say the vendor has confirmed or patched the behavior.
- The vendor's Remote Control can already forward such deletions.
- Enforcing proved bounds at the shared update step blocks the attack.
- The bounds covered 13 permission designs across 10 agent systems.
- Predictions preceded tests of Codex, Gemini CLI, opencode, and Goose.
- Only two of 2,227 fetched marketplace plugins send policy updates.
Impact: Deletes deny rules so the agent can read project secrets
| Product | Affected |
|---|---|
| Claude Code | — |
- 1.Enforce update bounds that keep every currently denied call denied
From the original article
1 min read at arxiv.orgCoding 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.
By Zeming Fei · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.