arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.01700cs.AI
收藏

MemHarmBench:评估记忆持久型智能体中的跨会话提示注入

MemHarmBench: Evaluating Cross-Session Prompt Injection in Memory-Persistent AI Agents

Fudan University(复旦大学);University of Shanghai for Science and Technology(上海理工大学);Alibaba Group(阿里巴巴集团);Shanghai Innovation Institute(上海创新研究院)

Zhihua Wang, Yunhao Feng, Yifeng Gao, Rui Pan, Baiheng Zhao, Zixing Chen, Xingjun Ma

AI总结:

本研究提出MemHarmBench基准,针对记忆持久型AI智能体的跨会话提示注入风险,通过多系统实验发现此类攻击可行为隐蔽,为暴露传统指标忽略的安全风险提供了系统框架。

摘要:

AI智能体通常依赖持久记忆来在不同会话间保留用户偏好和操作规则,但该能力引入了新的安全风险:来自消息、文档或网页内容的恶意指令可被存储在记忆中,即使原始攻击内容被移除,仍会影响后续任务。然而,现有攻击成功指标无法捕捉受影响的主体,也无法衡量攻击在正常任务执行中转化为下游危害的情况。我们提出MemHarmBench,这是一个以受害者为中心的基准,用于评估记忆持久型AI智能体中的跨会话提示注入。MemHarmBench考虑三类潜在受害者:用户、工作空间/项目所有者及外部利益相关者。我们的评估流程为:首先让智能体接触恶意指令,测试其是否被存储在记忆中;随后移除攻击内容,在保留智能体记忆的前提下发起带有合法任务的新会话;同时评估智能体是否遵循攻击者意图、完成合法任务,以及是否出现可观测的执行异常。在多个智能体系统上的实验显示,跨会话攻击可保持行为隐蔽性:智能体通常正常完成任务,无 detectable 异常,却仍做出符合攻击者意图的关键决策。通过将恶意记忆存储与下游决策及受影响主体关联,MemHarmBench提供了一个系统框架,用于暴露传统攻击成功指标和任务成功指标可能忽略的安全风险。我们在该https URL公开发布MemHarmBench。

英文摘要:

AI agents often rely on persistent memory to retain user preferences and operational rules across sessions. However, this capability introduces a new safety risk: malicious instructions from messages, documents, or Web content can be retained in memory and influence future tasks even after the original attack content is removed. Existing attack success metrics, however, fail to capture who is affected and how attacks translate into downstream harm during otherwise normal task execution. We introduce MemHarmBench, a victim-centric benchmark for evaluating cross-session prompt injection in memory-persistent AI agents. MemHarmBench considers three categories of potential victims: users, workspace/project owners, and external stakeholders. Our evaluation first exposes an agent to malicious instructions and tests whether they are retained in memory. We then remove the attack content and initiate a new session with a legitimate task while preserving the agent's memory. We jointly evaluate whether the agent follows the attacker's intent, completes the legitimate task, and exhibits observable execution anomalies. Across multiple agent systems, we find that cross-session attacks can remain behaviorally stealthy: agents often complete tasks normally and exhibit no detectable anomalies while still making critical decisions aligned with the attacker's intent. By connecting malicious memory retention to downstream decisions and affected parties, MemHarmBench provides a systematic framework for exposing safety risks that conventional attack- and task-success metrics may overlook. We publicly release MemHarmBench at https://github.com/Kirito14IT/MemHarmBench.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑