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

ShadowMerge:一种通过关系通道冲突的图基agent内存新型污染攻击

ShadowMerge: A Novel Poisoning Attack on Graph-Based Agent Memory via Relation-Channel Conflicts

Key Laboratory of Trustworthy Distributed Computing and Service (MoE)(可信分布式计算与服务重点实验室);Beijing University of Posts and Telecommunications(北京邮电大学);Zhongguancun Laboratory(中关村实验室)

Yang Luo, Zifeng Kang, Tiantian Ji, Xinran Liu, Yong Liu, Shuyu Li, Lingyun Peng

AI总结:

本文提出ShadowMerge攻击,通过关系通道冲突攻击图基agent内存,利用冲突值影响agent行为,改进现有攻击方法,实现93.8%的攻击成功率。

摘要:

图基agent内存在LLM代理中被广泛用于支持结构化长期记忆和多跳推理,但同时也创造了新的污染表面:攻击者可以将定制的关系注入图内存,使其被后续检索并影响代理行为。现有agent内存污染攻击主要针对扁平文本记录,对图基内存无效,因为恶意关系往往无法被提取、合并到目标锚点邻域或检索用于受害者查询。我们提出SHADOWMERGE,一种针对图基agent内存的污染攻击,利用关系通道冲突。其关键见解是,被污染的关系可以共享相同的查询激活锚点和标准化的关系通道,同时携带冲突值。为此,我们设计了AIR,一个将冲突转换为普通交互的管道,该交互可以被图内存系统提取、合并和检索。我们评估了SHADOWMERGE在Mem0和三个公开现实世界数据集:PubMedQA、WebShop和ToolEmu上的表现。SHADOWMERGE实现了93.8%的平均攻击成功率,比最佳基线提高了50.3个绝对点数,同时对无关的良性任务影响极小。机制研究显示,SHADOWMERGE克服了现有agent内存污染攻击的三个关键限制,防御分析显示,代表性的输入侧防御措施不足以缓解它。我们已负责任地向受影响的图内存供应商披露了我们的发现,并开源了SHADOWMERGE。

英文摘要:

Graph-based agent memory is increasingly used in LLM agents to support structured long-term recall and multi-hop reasoning, but it also creates a new poisoning surface: an attacker can inject a crafted relation into graph memory so that it is later retrieved and influences agent behavior. Existing agent-memory poisoning attacks mainly target flat textual records and are ineffective in graph-based memory because malicious relations often fail to be extracted, merged into the target anchor neighborhood, or retrieved for the victim query. We present SHADOWMERGE, a poisoning attack against graph-based agent memory that exploits relation-channel conflicts. Its key insight is that a poisoned relation can share the same query-activated anchor and canonicalized relation channel as benign evidence while carrying a conflicting value. To realize this, we design AIR, a pipeline that converts the conflict into an ordinary interaction that can be extracted, merged, and retrieved by the graph-memory system. We evaluate SHADOWMERGE on Mem0 and three public real-world datasets: PubMedQA, WebShop, and ToolEmu. SHADOWMERGE achieves 93.8% average attack success rate, improving the best baseline by 50.3 absolute points, while having negligible impact on unrelated benign tasks. Mechanism studies show that SHADOWMERGE overcomes the three key limitations of existing agent-memory poisoning attacks, and defense analysis shows that representative input-side defenses are insufficient to mitigate it. We have responsibly disclosed our findings to affected graph-memory vendors and open sourced SHADOWMERGE.

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

↑