Open question

Answering a permission prompt deleted the rule that protected the secrets

Claude Code says a plugin's answer cannot override the operator's deny rules, and one decision at a time that holds. An answer can still rewrite the policy later answers are checked against, then read the secrets.

Logged 29 Nov 2026

An answer that outlives its prompt

Claude Code publishes a boundary for any deployment that lets a plugin or a remote service answer its permission prompts on the operator's behalf. Such an answer cannot override the operator's deny rules, the documentation says, and checked one decision at a time that promise holds. Checked across a whole run it fails. An answer to one permission prompt can rewrite the stored policy that every later answer in that same run is checked against.

The root cause sits in the update filter. Claude Code inspects any update that adds or replaces an allow rule, and it forwards every other kind of update untouched into the stored policy. A deletion of a deny rule is not an addition of an allow rule, so it passes the filter as routine traffic. In the releases the paper examined, three of the four routes for answering a prompt skip even that narrow check.

Answering a prompt therefore becomes administering the policy. A remote service with no access to the operator's files approves an unrelated command and attaches the deletion, and the agent reads the project's secrets in that session. It reads them again in the next session, the paper reports, even when the agent runs inside the vendor's strict sandbox. The vendor's own Remote Control relay forwards deletions like this one, so the channel is not hypothetical.

A deletion leaves the same records as a local edit by the operator, so Claude Code cannot tell who wrote the rule. That ambiguity is the reason the attack cannot be attributed to the plugin, and the paper notes the update stays in force after the answering service is gone. The paper proves two bounds. A runtime that cannot tell who wrote a rule can accept only updates that keep every denied call denied. A runtime that records authorship can let each party remove only the restrictions that belong to it. Both bounds held across thirteen permission designs in ten agent systems, including predictions the authors wrote down before they ran Codex, Gemini CLI, opencode and Goose.

Log take: The documented guarantee is true per decision and false per run, which is the shape this log keeps finding. The fix the authors propose is narrow and mechanical, applied where updates are merged rather than where prompts are answered. The gap is real. Confidence is high on the mechanism, because the analysis works at binary level and is checked against live releases. Exposure is thinner: a survey of 2,227 marketplace plugins found only two that send policy updates.

Sources

Research