← Lab /AI/ML

Permission replies can rewrite coding-agent policy and bypass deny rules

Answering a permission prompt can delete existing deny rules, allowing later actions that should be blocked

AI/ML arXiv 24 Nov 2026 Attack Prototype evidence

Published as “When Answering Is Administering: Permission Replies That Rewrite Coding-Agent Policy”

Why it matters

Runtime designers must record authorship or restrict policy-update acceptance to prevent escalation, and the proposed validator can be deployed with negligible impact on existing plugins.

Summary

The paper shows that permission answers in LLM coding agents can carry policy updates that delete operator deny rules and widen sandboxes, effectively giving the answering party admin rights. The attack succeeds on Claude Code across all answer routes and on about 7% of deployed relays, and similar escalation paths exist in nine other agents. The authors formalize tight bounds on safe delegation, predict safety across ten systems, and implement a validator that blocks the attack while only affecting two marketplace plugins.

What they found 3

  1. One answer lifts the operator’s rule on every route we tested.

    “One answer lifts the operator’s rule on every route we tested.”

  2. About 7% of the deployed relays forward policy updates that can remove deny rules.

    “About 7% of the deployed relays we inspected, including the vendor’s own Remote Control, already forward such updates.”

  3. The repair keeps the operator’s restrictions in all attack runs and in 20,000 random runs.

    “Finally, our repair keeps the operator’s restrictions in all attack runs and in 20,000 random runs over a model of the runtime’s settings”

Caveats 4

  • A repair that refuses only deny updates leaves both additions open.
  • Rejecting all policy updates would prevent the attack but break the plugins and relays that legitimately save “always allow” answers.
  • The runtime cannot attribute the change.
  • checking a deletion exactly against the current rules becomes coNPhard once rule patterns mix kinds of wildcards.

What’s new here 4

  • Identifies permission answers as a channel for policy administration, which prior work assumed was impossible.
  • Provides a formal model and tight bounds predicting which policy updates are safe based on recorded information.
  • Empirically validates the bounds across ten different coding-agent systems and a survey of 70 relays.
  • Proposes and evaluates a practical repair (validator) that enforces the bounds with minimal impact.