跳到正文
arXiv cs.AI· Zeming Fei, Hongming Fei, Yi Xu, Xiaoyang Wang, Ying Zhang·· 2 小时前精选AI 评分63

arXiv 论文揭示 Claude Code 与 Codex 上下文压缩削弱 LLM Agent 授权安全

LLM Agent Authorization Across Context Compaction

AI 导读

论文研究上下文压缩对 Progent 等 LLM Agent 授权机制的影响:Claude Code 和 Codex 在自动压缩时会把模型写的摘要作为用户消息插入,使授权策略跟着压缩器写的内容走。

推荐理由

论文指出上下文压缩会破坏授权归因,给出攻击边界证明和可验证的修复方案,并附实验验证结果。

正文 · 原文

View PDF HTML (experimental)

Abstract: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.
Subjects: Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI)
Cite as: arXiv:2611.32194 [cs.CR]
  (or arXiv:2611.32194v1 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2611.32194

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Zeming Fei [view email]
[v1] Tue, 24 Nov 2026 08:44:15 UTC (1,226 KB)

来源:arXiv cs.AI · arxiv.org