The Gist of It Logo
🧠 LLMs & ML ★ Impact 9.5/10 arXiv:2611.32195v1 • November 25, 2026 • 1 min read
📄 arXiv Preprint • Not Peer-Reviewed ⚡ Abstract-Synthesized

How Third-Party Plugins Can Hijack Your AI Agent's Security Rules

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

Authors: Zeming Fei, Hongming Fei, Jingwen Chen, Xiaoyang Wang, Prosanta Gope, Biplab Sikdar, Ying Zhang

Answering a routine security prompt can allow external tools to quietly delete your AI agent's master protection rules.

"Imagine a hotel front desk that asks a visiting repair worker for routine permission to enter a single hallway. While answering 'yes,' the worker slips the desk an updated rulebook that quietly erases the lock on the master safe room. Because the desk fails to record who wrote each rule, it treats the update as official and lets the worker access your private valuables."

As software developers increasingly rely on autonomous AI agents connected to third-party tools, invisible security gaps can expose proprietary code and secret keys. This research uncovers a widespread architectural flaw across leading AI agent platforms and provides a concrete blueprint to prevent rogue plugins from overriding owner security controls.

  • Permission responses can be weaponized to erase an AI agent's security rules.
  • Agent systems fail because they don't track who wrote each security rule.
  • Researchers proved a mathematical fix that completely blocks this security exploit.

How Third-Party Plugins Can Hijack Your AI Agent's Security Rules

▶ Watch on YouTube Shorts ↗
📑 Original arXiv Technical Abstract

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. For example, a remote service with no access to the operator's files approves an unrelated command and attaches an update that deletes the deny rule protecting the project's secrets. The agent then reads the secrets in that session and the next, even inside the vendor's strict sandbox. The root cause is that Claude Code checks only updates that add or replace allow rules. Relays that forward such deletions already exist, including the vendor's own Remote Control. In effect, the right to answer a prompt has become the right to administer the policy. Worse, the deletion leaves the same records as a local edit by the operator, so Claude Code cannot tell who wrote a rule. More generally, what a runtime records decides what it can safely delegate. A runtime that cannot tell who wrote a rule can accept only updates that keep every currently denied call denied, whereas, to protect every party's restrictions, a runtime that records who wrote each rule can let each party remove only the restrictions proven to be its own. We prove that these two bounds are tight. They correctly predict whether the operator's restrictions survive in all thirteen permission designs across ten agent systems, including predictions we wrote down before running Codex, Gemini CLI, opencode, and Goose. Enforcing the bounds at the shared update step blocks the attack. A survey of 2,227 fetched marketplace plugins finds only two that send policy updates.

✍️ Are you an author of this paper? Add code/demo links or a note

Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.

𝕏 Share Your Paper's Gist on X

📬 Get daily LLMs & ML breakthroughs in your inbox

We scan hundreds of daily arXiv preprints across 6 frontier fields and send the top breakthroughs in plain English—with everyday analogies and 1-click PhD briefs. Free forever.

More Curated Breakthroughs

Hand-picked from the November 25, 2026 edition.