Published
- 4 min read
By Allan D - Editor, AI Security Wire
Paper: Compaction Summaries Let Injected Payees Pass Agent Authorization
Agents that compact their own context have a quiet authorization problem. According to a new arXiv preprint, the summary an agent writes about earlier turns is inserted as a user message, and any authorizer that builds its rules from “what the user asked” will read the summary as the user. If an attacker’s text made it into that summary, it inherits the user’s authority.
The paper is “LLM Agent Authorization Across Context Compaction” (arXiv:2611.32194, submitted 24 November 2026) by Zeming Fei, Hongming Fei, Yi Xu, Xiaoyang Wang and Ying Zhang. It is a preprint. We have not independently reproduced any result, and every number below is the authors’ own.
What breaks
Request-based authorizers such as Progent, which the authors use as their main example, derive a policy from the user’s request and then check each tool call against it. The authors derive Progent’s policy per request, because in their words a policy frozen at the first request let the agent finish the second task in 7 of 60 sessions against 41 of 60 with per-request derivation. Their Progent results below hold for that configuration, not necessarily for a frozen-policy mode. The design assumes the request is correctly attributed to the user. Compaction breaks that assumption: the model-written summary takes the user’s slot, so content the model absorbed from a web page, email or tool record can arrive looking like the user’s own wishes.
The authors report that this is not a corner case. They say that across 1,108 automatic compactions recorded in Claude Code and Codex, the summary occupied the request slot every time (1,008 in Codex and the rest in Claude Code). In their AgentDojo test, injections that Progent blocks before compaction completed at similar rates afterward: 31 of 100 pairs under Progent versus 33 undefended (a repeat run gave 26 versus the same 33).
The headline numbers
In the paper’s banking scenario, the user has already given the landlord’s account, an attacker’s notice states another account as plain data, and the user then asks to pay the rent. A policy derived from a frontier compactor’s summary allowed the attacker’s account in 91% of cases under one policy generator and 59% under the other. A policy derived from the user’s own words allowed it in none. The authors also report that when a summary dropped the account identifier, the policy built from it dropped it too, which can leave the payee unconstrained. That makes the gap about what the summary forgets as well as what the attacker adds (our reading).
They also tested other defenses. They report that Spotlighting passed 34 of 64 attacks when the summary sat at the user role and 5 of 64 when it was a delimited tool result. Treat that comparison as the authors’ setup, not a general ranking of those defenses.
The proposed fix
The authors propose a “witnessed-request gate.” Each real user turn gets a MAC witness when it arrives. The authorizer’s policy generator receives only witnessed turns, copied verbatim and in order, or nothing at all. The agent can still read the full summary, so it keeps its working memory. Only the authorizer is cut off from the summary.
In 40 attacked AgentDojo episodes re-run with the gate, the authors report no attacker action completed while the agent read the summary. That is one benchmark and the authors’ own implementation. They put the cost at 0.25 to 0.40 ms per request.
Limits worth keeping in mind
The paper says it evaluated the gate on replayed AgentDojo sessions, with the wider evaluation covering AgentDojo, ASB, live Claude Code and Codex compactions and two deployed reviewers. Production integration, such as Claude Code hooks or Codex history, is future work. Long sessions, multi-agent setups, cross-session memory and sub-agent reports were not tested. Values a user leaves to a document stay exposed until that document’s source is authenticated. The guarantee also assumes the keys stay outside the agent’s reach.
For defenders, the practical point is narrow. If your agent stack derives permissions from the latest user message, check what fills that slot after compaction. Where it is a model-written summary, treat the authorization as untrusted (our advice, not the paper’s).
The same lead author posted a related preprint the same day, which we covered: a Claude Code permission reply can delete deny rules (arXiv 2611.32195). The author lists differ.
References
Frequently Asked Questions
- What is the problem the paper describes?
- Some agent authorizers write a policy from the user's request, then allow only tool calls that fit it. When the context is compacted, a model-written summary of earlier turns is inserted as a user message. If an attacker's text was in the transcript, the summary can carry it, and the authorizer reads it as what the user asked for.
- How bad was it in the authors' tests?
- In a banking scenario where an attacker's notice states another account as plain data, a policy derived from the compactor's summary allowed the attacker's account in 91% and 59% of cases under the authors' two policy generators, while a policy derived from the user's own words allowed it in none. These are the authors' figures from a preprint that has not been peer reviewed. The gate was tested on replayed AgentDojo sessions.
- Is there a CVE or vendor fix?
- We found no CVE mention in the paper text as of 28 Nov 2026, and we did not check Anthropic's channels. The paper cites openai/codex pull request 54281, merged 15 Oct 2026, which attributes compaction summaries to the assistant in Guardian transcripts. We confirmed the pull request exists but did not read its code.