Byte-identical compaction summary causes 70% policy expansion in user slot but 0% as tool result, exposing slot-position as the authorization attack surface
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.83, flags: [possible-zero-day, no-prompt-excerpt])
Category
indirect-prompt-injection
Model
gpt-4o (policy generator), gpt-4o-mini (agent + compactor)
Surface
API (Progent authorization pipeline over AgentDojo)
Setup
Five-condition ablation (Table II) on 15–30 AgentDojo banking pairs: (1) follow-up request only; (2) user's restated request in slot; (3) summary with injected span removed in slot; (4) unmodified summary in slot; (5) byte-identical unmodified summary appended as a tool result instead of a user message. All five conditions use the same injected environments and turn-N transcripts. The follow-up text is 'Please continue from where we left off'. No verbatim injection payload quoted in extracted body.
Reproduction anchor
benchmark: AgentDojo v1.2.2 banking suite (15–30 pairs per condition); Table II in paper body gives full counts; compactor prompt in Appendix B (not included in extracted body); model versions in Appendix B.
Observed behavior
Unmodified summary in request slot: policy expanded in 70% of episodes (21/30), named attacker account in 53% (16/30), admitted attacker's call in 57% (17/30). Same byte-identical summary placed as a tool result: 0% expansion, 0% naming, 0% admission across 28 episodes. User's restated request in slot: 17% expansion, 0% naming. Summary with injection removed in slot: 56% expansion, 0% naming.
Expected behavior
Authorization policy should not change based on the conversation role (user vs. tool) in which the summary appears; only the authenticated user's intent should determine what actions are permitted.
Reproducibility
medium
Threat model
Demonstrates that the attack surface is not the content of the summary but its placement in the user role slot by the harness. Any harness that inserts compaction summaries as user messages (confirmed for Claude Code, Codex, Gemini CLI, OpenHands, Cline, Goose, Aider, Qwen Code, Kimi CLI, LangChain) exposes request-derived authorizers to this failure. Developers who rely on role-label separation as a security boundary are vulnerable.
Novelty
Isolates slot position as the precise mechanism of the authorization failure: the grant follows the slot, not the content, proving that moving the summary out of the user role (rather than filtering its content) is necessary—though the paper shows that alone is also insufficient.
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