CSA research note: permission replies and context compaction can rewrite coding agent authorization
When “Yes” Rewrites the Rules: Coding-Agent Authorization Drift
CSA published a research note synthesizing three papers released since late October 2026, pointing out that coding agents have an authorization drift weakness, where reply channels and compressed summaries that should convey authorization are used to rewrite authorization policies. One paper shows that in Claude Code, the party answering a permission prompt can attach an update deleting deny rules in the reply; three of four reply paths skip the official filter, and 5 of 70 third-party relays and frontends forward remotely written rule deletions. Experiments by Pixee researchers show that in five harnesses that flatten roles into text, forged approvals enter agent memory with 87–100% probability, the attack execution rate under full context is about 20–40%, and it is 0% on four harnesses that preserve role types. Another paper records that in all 1,108 automatic compactions of Claude Code and Codex local compaction, the model summary occupies the user request slot, causing authorizers such as Progent that derive policies from user requests to lose their protective effect.
The note summarizes the findings of the three papers into a new attack category, authorization drift, and gives immediately actionable mitigations such as moving deny rules into managed settings.
- When the answer is the administration: permission replies that rewrite coding agent policies
- LLM agent authorization across context compression
- The paper proposes an Approval Laundering taxonomy and empirically shows that Claude Code's approval and execution binding fails
- Red-Teaming Auto Mode: Bypassing Coding Agent Blocking Monitors with Injection and Multi-Context Attacks