Skip to content

LLM agent authorization across context compressionLLM Agent Authorization Across Context Compaction

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2611.32194· Zeming Fei, Hongming Fei, Yi Xu, Xiaoyang Wang, Ying Zhang·Indexed by this site · 10 hr ago· Originally publishedSelected Attacks· Its place in the scan record →SelectedAttention44

Quick read

Based on the paper's full text (AI-generated); refer to the original

AI summaryResearchers found that context compaction in long-session agents breaks authorization mechanisms such as Progent that derive permissions from user requests. In all 1108 automatic compactions, Claude Code and Codex inserted model-generated summaries as user messages, and the authorizer treated the compactor's paraphrase as the user's own utterance; in a scenario where the user had already specified a payee and an attacker notification wrote out another account as ordinary data, policies derived from frontier-compactor summaries allowed that account in 91% of cases, versus 0 for those derived from the user's original words. The paper proves a tight bound on the ability of a text-only authorizer to distinguish forged records from legitimate ones, and that frontier compactors flag injected instructions but rarely flag injected data. The authors propose a witnessed-request gate, which authenticates user utterances on arrival and passes them verbatim across compaction boundaries; in 40 attacked AgentDojo episodes, no attacker action completed while the agent read summaries, and it withstood all 8 adaptive attacks.

Questions
Request-derived authorizers (such as Progent) rely on attribution: they treat text in the request slot as spoken by the user themselves. But harnesses such as Claude Code and Codex, during context compaction, place model-written summaries into the request slot as user messages, so that the summary's paraphrases of the user, documents, and injected text are read as user utterances, thereby letting attacker data enter the authorization policy.
Methods
The authors have Progent re-derive the policy for each request, and measure on AgentDojo, ASB, and real Claude Code and Codex machines how summaries affect the policy; they also prove that a text-only authorizer cannot distinguish a forged record from its legitimate twin, and propose a witnessed-request gate: when a user turn arrives it is authenticated with a MAC, carried verbatim during compaction and committed to a complete ordered list, and the authorizer reads only these witnessed texts while the agent still reads the summary.
Experiments and results
In 1108 automatic compactions recorded by Claude Code and Codex, the summaries all entered the request slot; after compaction, the injection success rate was similar to that of an agent without defenses. Frontier compactors flag injected instructions, but rarely flag accounts disguised as data; even when the user had already specified a payee, policies derived from the summary still allowed the account in the notification in 91% of cases, whereas policies derived from the user's original words never allowed it. After adding the gate, no attacker action completed in 40 attacked AgentDojo episodes, and all 8 adaptive attacks were blocked.
Limitations and future work
Evaluation is based on replayed AgentDojo sessions and per-request derivation; integration into a production harness is the next step; the gate only covers what the user explicitly says, and values the user leaves to documents remain subject to Theorem 1 until the document source is authenticated; long sessions, multi-agent workflows, cross-session memory, and sub-agent reports remain to be measured; the guarantee depends on keys and counters being outside the agent's reach.
Why it was selectedThe paper presents the mechanism by which context compression breaks agent authorization and a fix, which teams deploying long-session agents can use to review how compression boundaries are attributed and handled.

The paper presents the mechanism by which context compression breaks agent authorization and a fix, which teams deploying long-session agents can use to review how compression boundaries are attributed and handled.

Paper analysis in progress

Related events and news

1 events · 0 news mentions

Read originalarxiv.org