智能体记忆是内生授权洗白的表面

·

研究论文 · 2026/09/03

长期运行的LLM代理依赖持久记忆来跨交互携带状态,包括权限、限制和撤销。当记忆错误地表示这种不断演变的授权状态时,代理自身的记录可能授予底层历史从未允许的权限,导致在没有外部攻击的情况下出现不当行为。我们将此失败称为内生授权洗钱,其中写入记忆的虚假权限导致未经授权的操作,因为其来源被洗去。我们随后引入EAL-Bench,用于衡量持久记忆在多大程度上准确保留不断演变的授权状态,以及错误是否传播到下游的未经授权操作。我们评估了五个LLM作为记忆写入器和两个作为执行器,涵盖采购、网络安全和金融领域。我们发现,在增量记忆更新下,写入器为高达50.2%的未经授权请求创建了虚假权限;一旦虚假权限存在,执行器在98.6%的试验中会据此行动。两种防护措施——要求存储的权限有有效源事件支持,以及通过有界事件溯源跟踪权限变化——显著减少了洗钱,但两者也拒绝了更多合法操作,暴露了安全与效用的权衡。因此,持久记忆不仅仅是性能组件,而是LLM代理有效授权策略的一部分。

该论文揭示了LLM代理持久记忆中的安全漏洞,提出了新的攻击面(内生授权洗钱)和评估基准(EAL-Bench),并通过实验量化了问题严重性及防护措施的权衡。对于构建安全可靠的LLM代理系统具有重要指导意义。

Long-running LLM agents rely on persistent memory to carry state across interactions, including permissions, restrictions, and revocations. When memory misrepresents this evolving authorization state, the agent's own records can grant authority that the underlying history never permitted, resulting in misaligned behavior without any external attacks. We term this failure endogenous authorization laundering, where spurious permissions written into memory lead to unauthorized actions as their provenance is washed away. We then introduce EAL-Bench, which measures how accurately persistent memory preserves evolving authorization state and whether errors propagate to downstream unauthorized actions. We evaluate five LLMs as memory writers and two as executors across procurement, cybersecurity, and finance. We find that under incremental memory updates, writers create false authority for up to 50.2% of unauthorized requests; once false authority is present, executors act on it in 98.6% of trials. Two safeguards, requiring stored permissions to be backed by valid source events, and tracking permission changes through bounded event sourcing, substantially reduce laundering, but both also reject more legitimate actions, exposing a safety-utility tradeoff. Persistent memory is therefore not merely a performance component, but a part of an LLM agent's effective authorization policy.

阅读原文

参与讨论