Skip to content
NewA calmer, faster ZeroHour

Claude Code permission replies can delete deny rules and expose secrets

Original title: When Answering Is Administering: Permission Replies That Rewrite Coding-Agent Policy

arXiv cs.CRby Zeming Fei ()1 min read
AI summary · x-ai/grok-4.7Summaries by Vani AI

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.

Key facts
  • 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.
Security assessment · AI, from the articlePublic proof of concept

Impact: Deletes deny rules so the agent can read project secrets

ProductAffected
Claude Code—
What to do
  1. 1.Enforce update bounds that keep every currently denied call denied
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at arxiv.org

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.

arXiv cs.CR

By Zeming Fei · arxiv.org

Read the full article at arXiv cs.CR

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.