当智能体的记忆留存却不外露:持久化个人智能体中的隐秘内存注入攻击
When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agents
AI总结:
针对持久化个人智能体的隐秘内存注入威胁,构建多场景基准测试集WhisperBench,提出单次邮件投送的黑盒攻击框架MemGhost,可跨架构、跨防御实现高成功率的长期智能体入侵。
摘要:
持久化个人智能体将长期记忆与用户外部环境访问权限相结合,可提供个性化前台辅助与主动后台执行能力。这种集成也催生了新的入侵路径:不可信的外部内容可被静默写入持久化内存,后续被当作可信状态复用。我们将该威胁定义为隐秘内存注入,即远程黑盒攻击者仅发送单个邮件载荷,诱导智能体写入被污染的内存,同时在对用户的响应中保持隐藏,最终影响智能体的后续行为。我们推出WhisperBench,这一基准包含108个测试用例,覆盖5类风险场景及事实污染、偏好污染两类攻击目标。该基准基于真实IMAP/SMTP工作流与原生邮件智能体技能搭建,支持对隐秘内存注入攻击的全周期评估。为实现无需运行时反馈、仅靠单封邮件投送的黑盒攻击,我们提出MemGhost这一单次载荷生成框架:它通过环境代理模拟持久化智能体的执行过程,通过目标代理将内存采纳率与对话隐蔽性转化为基于密集评分规则的奖励,再结合监督微调与强化学习训练攻击策略。在56个留出测试用例上,MemGhost在搭载GPT-5.4的OpenClaw上实现了87.5%的端到端成功率,在搭载Sonnet 4.6的Claude Code SDK上实现了71.4%的端到端成功率。该攻击还可跨个人智能体架构(NanoClaw与Hermes Agent)、跨内存后端(文件系统与基于向量的Mem0)迁移,且对输入层、模型层、系统层的防御手段均保持有效。上述结果表明,持久化内存可将常规的外部内容处理流程转化为具备实用性的智能体长期入侵路径。
英文摘要:
Persistent personal agents combine long-term memory with access to users' external environments, enabling personalized foreground assistance and proactive background execution. This integration also creates a new path to compromise: untrusted external content can be silently written into persistent memory and later reused as trusted state. We study this threat as stealth memory injection, in which a remote black-box adversary delivers a single email payload that must induce the agent to write poisoned memory, stay hidden in the agent's response to the user, and affect future behavior. We introduce WhisperBench, a 108-case benchmark spanning five risk categories and both fact and preference poisoning. Built on a real IMAP/SMTP workflow and an authentic email agent skill, it enables full-cycle evaluation of stealth memory injection attacks. To enable this black-box attack under single-email delivery and without runtime feedback, we propose MemGhost, a one-shot payload generation framework. MemGhost uses an environment proxy to emulate persistent-agent execution and an objective proxy to convert memory adoption and conversational stealth into dense rubric-based rewards, then trains the attacker policy with supervised fine-tuning and reinforcement learning. Across 56 held-out test cases, MemGhost achieves 87.5% end-to-end success on OpenClaw with GPT-5.4 and 71.4% on Claude Code SDK with Sonnet 4.6. It also transfers across personal-agent architectures (NanoClaw and Hermes Agent) and memory backends (filesystem and vector-based Mem0), and remains effective against input-level, model-level, and system-level defenses. These results suggest that persistent memory can turn ordinary external processing into a practical pathway for long-term agent compromise.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。