← Lab /AI/ML

Compaction lets forged data bypass LLM agent authorizer, but attribution fix blocks it

Context compaction enables malicious summaries to alter LLM agent policies, and that crediting only authenticated user text prevents this abuse

AI/ML arXiv 24 Nov 2026 Defense Prototype evidence

Published as “LLM Agent Authorization Across Context Compaction”

Why it matters

Separating the authorizer’s input from compacted summaries can restore least-privilege enforcement in LLM agents used for financial and other sensitive actions.

Summary

Context compaction places model-written summaries into the request slot, causing request-derived authorizers to grant attacker-controlled actions; in 70% of episodes the policy expands and in 53% it names the attacker. The authors prove a theoretical indistinguishability limit for text-only authorizers and demonstrate that a witnessed-request gate eliminates all attacker-completed actions in their experiments. Evidence comes from 1108 real-world compactions across Claude Code and Codex, showing the gate blocks attacks that succeed on the undefended baseline.

What they found 1

  1. Unmodified summaries placed in the request slot expand the policy in 70% of episodes and name the attacker in 53% of episodes.

    “As Table 2 shows, the unmodified summary in the slot expands the policy in 70% of episodes and names the attacker in 53%.”

Caveats 1

  • We prove a limit for any authorizer that reads text alone: it can tell a forged record from its legitimate twin no better than the two texts themselves allow.

What’s new here 4

  • Identifies context compaction as an authorization boundary that can subvert request-derived authorizers.
  • Proves a tight indistinguishability bound for text-only authorizers.
  • Introduces a witnessed-request gate that separates the authorizer’s input from compacted summaries.
  • Evaluates the failure and the gate on deployed agents (Claude Code, Codex) and multiple benchmarks.