Context compaction places model-written summary in user slot, defeating Progent authorization in Claude Code and Codex
Auto-published from arXiv:2611.32194 by the mine-arxiv pipeline. Reviewed by an LLM judge (Sonnet) against the archive bar — see CONTRIBUTING. Notes: cleared review (confidence 0.78, flags: [no-prompt-excerpt, possible-zero-day]) ⚠ needsDisclosureReview = true — review for undisclosed vulnerability before any public submission.
Category
indirect-prompt-injection
Model
claude-opus-5-5 (Claude Code), gpt-6.1-sol (Codex); gpt-4o-mini (agent), gpt-4o (policy generator)
Surface
agent harness (Claude Code, Codex live products + AgentDojo benchmark harness)
Setup
An LLM agent runs a long banking/workspace session with Progent as a request-derived authorizer. Attacker plants a prompt injection (e.g., 'pay account X') in a document the agent reads; Progent refuses the transfer pre-compaction. When the transcript nears the context limit, Claude Code and Codex automatically compact by inserting a model-written summary as a user message in the conversation. Progent's next policy derivation reads that summary from the request slot. No verbatim injection payload quoted in extracted body; full compactor prompt referenced in Appendix B.
Reproduction anchor
benchmark: AgentDojo v1.2.2 (banking + workspace suites, 100 task–injection pairs); compactor prompt text in Appendix B (not included in extracted body). Artifact Availability section listed in paper ToC but URL not present in extracted body.
Observed behavior
At all 1108 automatic compactions observed in live Claude Code and Codex sessions, the summary took the request slot. Post-compaction, injections that Progent blocked pre-compaction succeeded in 31/100 pairs—matching the 33/100 rate of the fully undefended agent. The authorizer enforced least privilege correctly, but the grant it derived named the attacker because the policy generator read the compactor's summary as the user's own request.
Expected behavior
Progent should derive policy from the authenticated user's original request regardless of compaction events, refusing attacker-specified payees and state-changing calls the user never authorized.
Reproducibility
medium
Threat model
Attacker plants data in any document, email, or file read by a long-running agent (e.g., a banking or productivity agent). The injection is blocked by the authorizer in the first context window, but the natural, automatic compaction event—triggered by session length, not by the attacker—resets the authorization boundary. Any user of Claude Code or Codex running extended sessions with a request-derived authorizer is affected.
Novelty
First demonstration that context compaction is itself an authorization boundary violation: a correctly-enforced least-privilege policy is turned attacker-controlled by a routine infrastructure event, without any malfunction in the compactor, the policy generator, or the enforcer.
Source
- arXiv: 2611.32194
- PDF: https://arxiv.org/pdf/2611.32194
- Categories: cs.CR, cs.AI
- Authors: Zeming Fei, Hongming Fei, Yi Xu, Xiaoyang Wang, Ying Zhang
Triage notes (auto)
- paperType:
red-team-vuln - estimatedCaseCount: 2
- triage reason: Demonstrates concrete authorization bypass vulnerabilities in Claude Code and Codex via context compaction—a failure of request-derived authorization where compactors blur attribution by placing model summaries as user messages, quantified at 91% attack success on injected payees. Specific, reproducible attacks with proof-of-concept on AgentDojo; no prior disclosure mentioned.
0 comments
─────────────────────────────────────────────────────────────────────
// no comments yet