Skip to content
AI Security Wire

Published

- 5 min read

By

Paper: A Plugin's Claude Code Permission Reply Can Delete Deny Rules

img of Paper: A Plugin's Claude Code Permission Reply Can Delete Deny Rules

A new arXiv preprint argues that Claude Code’s documented promise, that an answer to a permission prompt cannot override the operator’s deny rules, holds for each decision but fails across a whole session. According to the authors, one answer can carry an update that deletes the deny rule itself, and every later check then runs against the weakened policy.

The paper is “When Answering Is Administering: Permission Replies That Rewrite Coding-Agent Policy” (arXiv:2611.32195, posted 24 November 2026) by Zeming Fei and co-authors from the University of Technology Sydney, the National University of Singapore, UNSW and the University of Sheffield. It is a preprint, and everything below is the authors’ account. We read the paper only. We did not reproduce the attack, and we did not read Anthropic’s documentation or changelog.

How the attack works

Claude Code lets plugins, hooks, SDK hosts and remote clients answer permission prompts. The authors say an answer that allows a call may also carry policy updates that add, remove or replace rules or change the permission mode, and that the runtime applies and saves them. Their worked example: an operator denies Read(./.env), turns on the strict sandbox and hands prompts to a remote approval service that cannot see the operator’s files. The service approves an unrelated command and attaches an update that removes the deny rule.

The root cause, as the authors describe it, is a filter that checks only updates that add or replace allow rules. Deletions of deny rules pass without a check. They report that three of the four answer routes they examined skip even that filter, and that the vendor’s own validator labels a deny-rule deletion as widening but still applies it on the default path.

The write goes to the operator’s user settings. The authors say it persists after the answering party is gone and leaves the same records as a local edit, so the runtime cannot tell who wrote a rule. A rule in the managed tier held in their tests.

The sandbox does not save you

The strict sandbox is the part of the claim that matters most. The authors compared the deletion with three rewrites of the approved command (print the file, delete the rule from the settings file, or ask to run outside the sandbox). Under the strict sandbox none of the three exposed .env, but the policy update did, because deleting the rule lifts the sandbox’s own restriction. A second update that allows the service’s host let a later rewritten command post the file to that service within one session.

They ran the attack on recent releases with a scripted model and with two live Claude models, and report that it still worked on 2.1.327, the latest release when they wrote.

Relays and plugins

The authors inspected 70 tools that carry remote answers: Remote Control plus the open-source tools above a popularity threshold. About 7% of that set apply rule updates written on the remote side, including Anthropic’s Remote Control, through which the claude.ai web and mobile apps answer for a local session. Per the paper, the answering party there is whoever controls the operator’s claude.ai account, and Remote Control’s answer schema accepts all update types in the two releases they read. The other relays are open source and the authors do not name them. Of 2,227 plugins fetched from Anthropic’s community marketplace, they found two that send policy updates.

Beyond Claude Code

The authors read fourteen agent runtimes and studied thirteen permission designs across ten systems. Per their Table 3, the loss recurs in several systems: opencode and Goose, Codex through its sandbox, and Gemini CLI through saved answers. Gemini CLI’s extension design is one they call safe. Their formal bounds predicted every outcome, including five predictions written down before the runs. In the authors’ Codex test, a saved allow rule for python3 let the next such command leave the sandbox and write outside the workspace, while the same command approved once stayed inside.

The proposed repair

The paper’s fix is a single validator at the step every answer passes through. It refuses deletions and replacements of deny rules from any answering party and refuses, or limits to the session, allow rules that the sandbox reads. The authors also note that the binary already contains a stricter session-only answer mode that goes unused. The authors say it kept the operator’s restrictions in all their attack runs and in 20,000 random runs over a model of the settings, and that they tested it only on locally patched copies of the binary.

What to do now

This section is our reading, not the paper’s.

  • Treat anyone who can answer permission prompts as able to edit policy until the vendor says otherwise. That includes remote approval services and the account behind Remote Control.
  • Put must-hold deny rules in the managed tier, which held in the authors’ tests.
  • Watch changes to user, project and local settings files for removed deny rules, since the runtime’s own records will not show the author.
  • Review which plugins and relays in your environment forward updates.

References

Frequently Asked Questions

What does the paper claim an attacker can do?
The authors say a party that answers Claude Code permission prompts, such as a plugin or a remote approval service, can attach a policy update to an ordinary allow answer. The update deletes the operator's deny rule, for example Read(./.env), and the runtime writes the change into the operator's settings. The agent can then read the protected file in that session and the next.
Does the strict sandbox stop it?
Not in the authors' tests. They report that deleting the rule also lifts the sandbox's restriction, because the sandbox derives its limits from the same rules. Three rewrites of the approved command that they tried did not expose the file under the strict sandbox, but the policy update did.
Is this a vulnerability with a CVE or a vendor fix?
The paper does not assign a CVE. We found no evidence as of 26 Nov 2026, in the paper's text, that it reports notifying Anthropic or any Anthropic response. The authors say the deletion still worked on release 2.1.327, the latest at the time of writing. We did not check Anthropic's changelog or advisories, so treat the current status as unconfirmed.