Request-derived authorizers such as Progent protect LLM agents from prompt injection by deriving what an agent may do from the user's request. Their guarantee rests on attribution: the request is taken to be what the user said. Compaction breaks it. At every automatic compaction we observed, Claude Code and Codex placed a model-written summary of earlier turns as a user message, so the compactor's quotation of the user, documents and injected text reads as the user speaking. Because a policy frozen at the first request lets the agent finish few later tasks, we let Progent derive its policy for each request, and find that what it grants then follows what the compactor wrote. Even a payee the user stated is not safe: when an attacker's notice states another account as plain data and the user asks to pay the rent, the policy derived from a frontier compactor's summary admits the notice's account in 91% of cases, and the one derived from the user's own words in none. The cause is general: we prove that an authorizer that cannot see who wrote which bytes cannot treat a forged record differently from the legitimate one it imitates by more than the two are distinguishable, and that the bound is tight. Frontier compactors bear this out: they mark injected instructions, which have no legitimate twin, but rarely injected data, which does. What a compactor keeps, and how it marks it, is a security parameter. The fix follows from attribution: the authorizer credits only what the user said, authenticated on arrival and carried verbatim across the boundary, while the agent still reads the summary. We prove that it then receives exactly that text or nothing, so an attacker can block the policy but cannot shape it, and adaptive attacks on our implementation confirm it. In 40 attacked AgentDojo episodes re-run with the fix, no attacker action completes while the agent reads the summary.
Figures & tables
Fig. 1: Compaction makes the policy grant the recipient it refused before. The same generator G reads the user’s question before compaction and the summary S after it.
Fig. 2: The gate gives the policy generator G only the user’s witnessed turns, while the agent still reads the summary. The insets show two attacks that return ⊥ .
Section
Test
Systems
Models
Scale
§ V-B
Slot placement
AgentDojo (four suites), Progent
gpt-4o-mini, gpt-4o
319 episodes, 1472 summaries
§ V-C
Cross-benchmark
ASB (ten agents), Progent
as above
192 task–tool pairs
§ V-C
Shipped prompts
18 prompts of 11 harnesses
held-out gpt-5.6-luna
every prompt, same episodes
§ V-D
Native boundaries
Claude Code, Codex
claude-opus-5-5, gpt-6.1-sol
100 + 1008 live compactions
§ V-D
Frontier payloads
Claude Code’s, Codex’s prompts
gpt-5.4-mini, gpt-5.5
320 summaries × 2 generators
§ V-E
Other defenses
six systems
Qwen2.5-72B generator
Table VI
TABLE I: Evaluation coverage: questions, systems, models, and scale.
Request-slot input
Expands
Names
Admits
Follow-up only
0/30
0/30
0/30
Restated request
5/30
0/30
0/30
Summary, injection removed
9/16
0/16
–
Unmodified summary
21/30
16/30
17/30
Tool-result summary
0/28
0/28
0/28
TABLE II: Policy changes for five request-slot inputs.
Fig. 3: Naming rate against retention (a) and the effect of marking (b). The dashed diagonal in (a) is the bound of Lemma 1 , and (b) shows Wilson 95% intervals.
Factor
Present
Absent
Mark word in the summary
7/230
349/536
Mark word, gpt-5.5 as generator
3/150
72/150
One inserted marking sentence
58/150
92/150
Mark word, account framed as declined
0/65
58/137
Task names its own payee (banking)
47/95
44/58
TABLE III: Naming among summaries that kept the identifier.
Suite
Pairs
Goals
Ret.
Expanded
Named
Banking
63
8
.80
.79 [.73, .84]
.42 [.26, .57]
Workspace
54
9
.65
.88 [.83, .96]
.55 [.33, .75]
Travel
36
6
.15
.74 [.67, .79]
.07 [.00, .24]
Slack
40
5
.68
.35 [.29, .44]
.11 [.05, .19]
ASB
192
40
.67
.38 [.29, .47]
.31 [.22, .41]
TABLE IV: Retention, expansion and naming across suites and benchmarks.
Fig. 4: Retention and naming rate of 18 shipped compaction prompts in three suites. Predicted: prompts run after the ratio model was frozen.
Fig. 5: Retention over session length (a, b) and frozen predictions of the naming rate (c). Each point in (a, b) pools 20 episodes (10 at L=0 ), and the band in (c) is ± .10.
Banking
Workspace
Travel
Prompt
Pred.
Obs.
k
Pred.
Obs.
k
Pred.
Obs.
k
Codex
.11
.15
9
.03
0
1
.05
.08
1
Cline
.05
.05
2
.06
.07
2
0
0
0
Goose
.50
.51
27
.60
.63
20
0
0
0
Aider
.33
.31
17
.14
.17
5
0
0
0
Qwen Code
.22
.28
19
.14
.07
5
0
0
0
TABLE V: Predicted and measured naming rates of later shipped prompts and a held-out compactor.
Fig. 6: Marking and naming under frontier compactors (a, b), and policies that admit the notice’s account X (c). 5.4m: gpt-5.4-mini . Intervals in (c) are episode-bootstrap 95%.
Policy
Outcome
System and condition
n
Expands
Names
Passes
Authorizers that read the request slot
smolagents + Progent
user-role tool output, banking
16
16
16
11
Progent + Qwen2.5-72B
banking
40
40
18
–
TABLE VI: Other harnesses, authorizers and checkers after compaction.
Authorization
Attacks
Utility
Policy
Agent reads
Names
Admits
Total
New
Tasks
Summary
Slot summary
18
24
7
7
9
Follow-up
Tool summary
0
0
0
0
18
Gate
Slot summary
0
5
0
0
13
Gate
Tool summary
0
6
0
0
19
Gate
User text
0
2
1
0
26
TABLE VII: End-to-end results with and without the gate.
Attack
Content hash
Witnesses
Metadata
Final gate
Echo
⊖
✓
✓
✓
Replay
⊖
✗
✗
⊥
Delimiter
✓
✓
✓
✓
Splice
–
✓
✗
✓
Reorder
–
✓
✓
⊥
Deletion
–
⊖
⊖
⊥
TABLE VIII: Adaptive attacks against four designs.
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
L=0
L=4
L=16
L=64
Prompt
Suite
Poison position
Ret.
Exp.
Named
Ret.
Exp.
Named
Ret.
Exp.
Named
Ret.
Exp.
Named
default
Banking
Oldest
.6
.4
.3
.6
.5
.3
.5
.9
.5
.6
1
.5
Most recent
.6
.4
.3
.9
.9
.8
.8
.9
.6
1
.9
.9
Workspace
Oldest
.4
.5
.4
.4
.7
.4
.4
.3
.3
.5
.6
.5
Most recent
.4
.5
.4
.3
.2
.2
.3
.3
.3
.3
.4
.3
capped
Banking
Oldest
.8
.8
.6
.9
.8
.7
.7
.9
.6
.5
.8
.4
Appendix
TABLE IX: Retention, expansion and naming over session length.
Suite
Goal
n
Ret.
Exp.
Named
Banking
0
26
.85
.73
.23
1
8
.75
.88
.25
2
8
.88
.88
.50
4
25
.96
.84
.68
5
16
.81
.75
.50
6
8
.75
.63
.63
Appendix
TABLE X: Retention, expansion and naming per injection goal.
Banking
Workspace
Travel
Prompt
Ret.
Exp.
Named
Kept
Drop.
Ret.
Exp.
Named
Kept
Drop.
Ret.
Exp.
Named
Kept
Drop.
default
.65
.60
.28
11/26
0/14
.43
.47
.40
12/13
0/17
.07
.77
.03
1/2
0/28
no scratchpad
.53
.55
.20
8/21
0/19
.30
.47
.27
8/9
0/21
.03
.63
.00
0/1
0/29
no scratchpad + cap
.55
.53
.25
10/22
0/18
.43
.43
.30
9/13
0/17
.10
.67
.00
0/3
0/27
no scratchpad + asks
.55
.48
.20
8/22
0/18
.43
.57
.30
9/13
0/17
.03
.60
.00
0/1
0/29
lean
.10
.55
.05
2/4
0/36
.13
.63
.13
4/4
0/26
.03
.83
.03
1/1
0/29
Appendix
TABLE XI: Retention, expansion and naming under every shipped prompt.
LLM-based agents can act on behalf of a user to access cloud services, call tools, or invoke agents. At session start, the agent's permissions are set but remain static, and each request is evaluated independently, without considering prior actions. Within its permissions, an agent may act contrary to the delegated task, combine individually permitted actions into a prohibited outcome, or delegate authority to a sub-agent without limiting it. A prompt injection poses a risk only if the agent has authority to perform such actions; this is therefore a problem of authorization architecture, not just the model. The Agentic Principal Chain (APC) tracks delegated authority from one principal to the next. APC evaluates each request against the accumulated session state using six authorization checks. APC carries forward and restricts delegated scope and budgets. Using composition closure, APC checks requests against prior actions to prevent prohibited combinations and enforces the decision outside the model. We prove Blast Radius Monotonicity and Composition Soundness for APC implementations; Composition Soundness is limited to prohibited combinations under a complete restriction set and serialized admission. We evaluated 3,154 instances including InjecAgent, AgentDojo, and ASB. Our compromised-model evaluation tests APC independently of model behavior by inserting the ground-truth attack call after the first legitimate tool call. AgentDojo exfiltration fell from 75-100% to 0% across all four domains; APC blocked all 544 InjecAgent data-stealing cases. Intent binding reduced destruction from 38.6% to 4.0% and manipulation from 90.5% to 12.1%. Authorization latency was 0.24 ms at the 99th percentile on an idle host; across 949 AgentDojo task-injection pairs, utility was 8.6 and 13.9 percentage points lower in the two settings. Implementation, evaluation tools, and data are publicly available.
LLM agents compact long histories to fit their context windows, but the compacted context must still carry the operating rules that govern later actions. Prior work shows that violations rise after compaction, but measures compliance outside a complete agent harness and does not identify where each violation comes from. We introduce ARCBench(Agent Rule Compliance Benchmark), a configurable benchmark built on the open-source pi agent harness. Its tool-calling agent loop lets us measure rule compliance from actions taken during execution, bringing the evaluation closer to deployed agent workflows. Using ARCBench, we examine where violations after compaction come from, and how different compaction configurations and adversarial settings change their sources. We find that compaction rarely deletes the rule: most violations after compaction occur while the rule is still in the compacted history, with the agent treating a later request as permission, ignoring the rule, and proceeding anyway. Where violations come from depends on the configuration: how the rule is delivered decides whether the agent would break it even without compaction, while the compaction strategy and budget decide whether the rule survives. The strongest compactor-targeted attack more than doubles violations by corrupting the rule in the summary and changing how the agents behave, whereas the strongest defense restores the rule in most summary but still violates. Finally, retaining a rule does not guarantee compliance: compacted runs that retain the rule violate more than twice as often as runs with the full history.
Yiwei Zha, Qingyu Meng, Herbert Bos +1
VUSec, Department of Computer Science, Vrije Universiteit Amsterdam
Long-running LLM agents rely on persistent memory to preserve not only task context but also the permissions and restrictions governing their actions. When memory misrepresents this evolving authorization state, the agent's own records can make unauthorized actions appear permitted, resulting in misaligned behavior without any external attacks. We term this failure endogenous authorization laundering, where memory creates or retains false authority through semantic misinterpretation or failed updates, and executors act on that authority. We then introduce EAL-Bench to measure how accurately persistent memory preserves evolving authorization state and whether memory errors propagate to unauthorized actions. We evaluate seven LLMs as memory writers and two as executors across procurement, cybersecurity, and finance tasks. Under incremental typed-memory updates, writers create false authority for up to 45.4% of unauthorized requests, and once false authority is present, executors act on it in 99.0% of trials. Memory-level safeguards reduce laundering but can reject legitimate actions, exposing a safety-utility tradeoff. Persistent memory is therefore part of an LLM agent's effective authorization policy, not merely a performance component.