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

当智能体记忆过多时:对大语言模型智能体的内存中毒攻击

When Agents Remember Too Much: Memory Poisoning Attacks on Large Language Model Agents

George Torres3(乔治·托雷斯(第三作者));Sharad Shrestha1(沙拉德·什雷斯塔(第一作者));Satyajayant Misra4(萨蒂亚扬特·米什拉(第四作者))

George Torres, Sharad Shrestha, Satyajayant Misra

AI总结:

研究大语言模型驱动的个人智能体因缺乏内存安全治理存在安全漏洞,提出攻击向量GhostWriter,实现近98%注入率和约60%激活率,还提出AM-Sentry缓解技术,显著降低GhostWriter成功率并保持智能体效用。

摘要:

由大语言模型驱动的个人人工智能智能体可以借助可用工具进行推理和行动,如访问电子邮件、管理日历和推送代码等,且只需极少监督。当配备长期记忆时,智能体可回忆与当前任务相关的特定细节,减少对大上下文窗口的需求。目前,长期记忆智能体往往分为对话式和行动规划式两个不同领域。个人助理智能体处于这两个领域的交汇点,在与不可信信息源交互时处理敏感信息,从而产生了前所未有的安全漏洞。在这项工作中,我们引入了新颖的攻击向量GhostWriter,它利用工具使用型个人智能体中的当前内存子系统来毒害其内存存储。GhostWriter分两个阶段运行:注入阶段,对手向目标智能体发送隐藏的攻击payload;激活阶段,检索被毒害的内存。我们表明,针对最先进的智能体,GhostWriter实现了近98%的几乎通用的注入率和约60%的高平均激活率。由于缺乏以安全为重点的内存治理,这种攻击才成为可能。作为回应,我们提出了智能体内存哨兵(AM-Sentry),它利用两种缓解技术:内存节省策略和内存检索筛选。我们的实验表明,AM-Sentry在保持智能体效用的同时,显著降低了GhostWriter的成功率。

英文摘要:

Personal AI agents powered by large language models can reason and act using available tools to access emails, manage calendars, and push code to remote repositories, all with minimal oversight. When augmented with long-term memory, an agent can recall specific details relevant to the current task, reducing the need for large context windows. Currently, long-term memory agents tend to fall into two distinct domains: conversational and action-planning agents. Personal assistant agents sit at the convergence of these two domains and handle sensitive information while interacting with untrusted information sources, creating previously unaccounted security vulnerabilities. In this work, we introduce the novel attack vector, GhostWriter, which exploits current memory subsystems in tool-using personal agents to poison their memory store. GhostWriter operates in two phases: injection, where an adversary sends a hidden attack payload to the target agent; and activation, in which the poisoned memory is retrieved. We show that GhostWriter achieves near-universal injection rates of approximately 98% and a high average activation rate of approximately 60% against state-of-the-art agents. This attack is possible due to the lack of security-focused memory governance. In response, we propose Agentic Memory Sentry (AM-Sentry), which leverages two mitigation techniques: a memory-saving policy and a memory-retrieval screen. Our experiments show that AM-Sentry dramatically reduces GhostWriter's success rate while preserving agent utility.

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

↑