New Technique Medium TD-2026-0169 For AI Eng, AppSec, Red Team AI-assisted
Context compaction lets injected text pass as user intent in request-derived LLM agent authorizers
Request-derived authorizers such as Progent derive agent permissions from the user's request. The paper reports that Claude Code and Codex place a model-written summary of earlier turns as a user message at every automatic compaction observed, so injected text quoted in the summary reads as user speech. In tests, a policy derived from a frontier compactor's summary admitted an attacker's account in 91% of cases.
Why it matters
Agents whose tool permissions follow compacted context can be steered into paying attacker-controlled accounts or taking other unauthorized actions. Organizations relying on request-derived authorization for prompt injection defense may have a false sense of protection.
Do this
- Treat automatic context compaction summaries as untrusted input, not as user messages, when deriving authorization policies.
- Carry authenticated user request text verbatim across compaction boundaries rather than relying on model-written summaries.
- Review agent deployments that use Progent-style policies and check whether compaction output feeds policy derivation.
- Add tests that place attacker-controlled account notices in documents and verify the agent does not pay them after compaction.
Signals
- NoCISA KEV
- 23/100Priority
- 60%Confidence
Evidence
“At every automatic compaction we observed, Claude Code and Codex placed a model-written summary of earlier turns as a user message”
“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”
Sources
Affected / related
Claude Code, Codex, Progent, context compaction
Published 2026-11-24 08:44 UTC · updated 2026-11-25 04:35 UTC · AI-assisted summary, checked against quoted sources · How we score