种植、持久化、触发:针对大语言模型智能体的潜伏攻击
Plant, Persist, Trigger: Sleeper Attack on Large Language Model Agents
AI总结:
提出潜伏攻击(Sleeper Attack),即攻击者将对抗性内容注入智能体状态并持久化,在后续交互中被良性用户查询触发,导致有害行为;构建包含1896个实例的基准测试,实验表明当前最强LLM智能体仍易受此类攻击。
摘要:
大语言模型(LLM)智能体仍然容易受到来自外部环境的安全威胁,攻击者将对抗性内容注入外部观察(如工具返回的数据、网页或MCP上下文),导致有害的智能体行为,例如不安全的操作或错误的输出。现有研究通常关注单次交互攻击,即智能体观察到对抗性内容后立即在单次用户请求中表现出有害行为。然而,我们表明对抗性内容也可以在同一智能体服务的多次交互中持久化,使得此类威胁更难检测和缓解。具体来说,对抗性内容可能持久化在智能体状态中,在多次交互中保持休眠,随后被良性用户查询激活。我们将此类安全威胁形式化为潜伏攻击(Sleeper Attack)。为了评估它,我们构建了一个包含1896个实例的基准测试,涵盖六种真实世界的有害结果、三种攻击策略和三种智能体状态目标:会话上下文、记忆和可复用技能。在七个强大的开源和闭源LLM上的实验表明,最先进的LLM智能体仍然容易受到潜伏攻击,即使在单次交互基线中它们实现了较低的攻击成功率。我们的代码和数据可在https://anonymous.4open.science/r/skdvnfu23ihr9wdscnksf1asdffsaef获取。
英文摘要:
Large Language Model (LLM) agents remain vulnerable to safety threats from the external environment, where attackers inject adversarial content into external observations such as tool-returned data, webpages, or MCP context, causing harmful agentic behaviors such as unsafe actions or incorrect outputs. Existing studies typically focus on single-interaction attacks, where the agent observes adversarial content and immediately exhibits harmful behavior within one user request. However, we show that adversarial content can also persist across interactions served by the same agent, making such threats harder to detect and mitigate. Specifically, adversarial content may persist in the agent state, remain dormant across interactions, and later be activated by a benign user query. We formalize this type of safety threat as Sleeper Attack. To evaluate it, we construct a benchmark with 1,896 instances covering six real-world harmful outcomes, three attack strategies, and three agent state targets: session context, memory, and reusable skills. Experiments on seven strong open-source and closed-source LLMs show that state-of-the-art LLM agents remain vulnerable to Sleeper Attack, even when they achieve low attack success rates under a single-interaction baseline. Our code and data are available at https://anonymous.4open.science/r/skdvnfu23ihr9wdscnksf1asdffsaef.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。