[论文解读] Breaking Agents: Compromising Autonomous LLM Agents Through Malfunction Amplification
本文提出了一种新型攻击向量,通过放大自主大语言模型(LLM)代理中的不稳定性,放大其逻辑与推理错误,导致其执行重复或无关的操作。该攻击在多个代理场景中实现了超过80%的失败率,揭示了尽管已有安全措施,但在实际部署中仍存在关键漏洞。
Recently, autonomous agents built on large language models (LLMs) have experienced significant development and are being deployed in real-world applications. These agents can extend the base LLM's capabilities in multiple ways. For example, a well-built agent using GPT-3.5-Turbo as its core can outperform the more advanced GPT-4 model by leveraging external components. More importantly, the usage of tools enables these systems to perform actions in the real world, moving from merely generating text to actively interacting with their environment. Given the agents' practical applications and their ability to execute consequential actions, it is crucial to assess potential vulnerabilities. Such autonomous systems can cause more severe damage than a standalone language model if compromised. While some existing research has explored harmful actions by LLM agents, our study approaches the vulnerability from a different perspective. We introduce a new type of attack that causes malfunctions by misleading the agent into executing repetitive or irrelevant actions. We conduct comprehensive evaluations using various attack methods, surfaces, and properties to pinpoint areas of susceptibility. Our experiments reveal that these attacks can induce failure rates exceeding 80\% in multiple scenarios. Through attacks on implemented and deployable agents in multi-agent scenarios, we accentuate the realistic risks associated with these vulnerabilities. To mitigate such attacks, we propose self-examination detection methods. However, our findings indicate these attacks are difficult to detect effectively using LLMs alone, highlighting the substantial risks associated with this vulnerability.
研究动机与目标
- 识别并利用由推理缺陷和响应随机性引起的大语言模型(LLM)代理内在不稳定性。
- 证明即使不使用明显有害的指令,故障放大也能导致严重系统故障。
- 评估此类攻击在多种代理实现和真实任务场景中的有效性。
- 评估基于大语言模型(LLM)的自我检查机制检测此类攻击的可行性。
- 提高对先前被忽视的部署中大语言模型(LLM)代理漏洞的认识,这些漏洞可能导致操作中断。
提出的方法
- 攻击框架系统性地对输入提示进行扰动,以放大大语言模型(LLM)代理中的逻辑不一致性和推理错误。
- 攻击目标为代理的内部推理链,特别是在涉及外部工具的多步骤任务中,诱导重复或无进展的操作。
- 该方法评估了不同代理组件的攻击面,包括工具调用、记忆管理和规划模块。
- 实验在实际实现的代理和模拟器仿真代理上进行,以评估其在现实场景中的适用性和失败率。
- 通过提示大语言模型(LLM)对其自身推理过程进行异常审计,评估自我检查检测机制。
- 该攻击在多种大语言模型(LLM)变体(如GPT-3.5-Turbo、GPT-4)和代理框架(如LangChain、AutoGPT)上应用,以评估其泛化能力。

实验结果
研究问题
- RQ1在不触发明显安全过滤机制的前提下,大语言模型(LLM)代理的推理不稳定性在多大程度上可被利用以引发系统性故障?
- RQ2现有的基于大语言模型(LLM)的自我检查机制在检测此类故障放大攻击方面有多有效?
- RQ3在不同真实任务场景下,自主代理在故障放大攻击下的失败率是多少?
- RQ4不同的代理框架和大语言模型(LLM)主干网络如何影响其对这些攻击的易感性?
- RQ5所提出的攻击向量能否在多种代理类型和部署环境中实现泛化?
主要发现
- 故障放大攻击在多个真实世界代理场景中导致失败率超过80%,证明了其高度可利用性。
- 即使在LangChain和AutoGPT等先进代理框架下,该攻击在超过80%的测试案例中仍成功破坏了任务完成。
- 基于大语言模型(LLM)内省的自我检查检测机制总体效果不佳,各类评估场景下的检测率均低于50%。
- 该攻击对多种大语言模型(LLM)变体(包括GPT-3.5-Turbo和GPT-4)均有效,表明其具有广泛适用性。
- 该漏洞并非局限于特定代理类型或框架,表明当前自主代理设计中存在系统性风险。
- 本研究揭示,对于使用外部工具的代理而言,推理错误引发的不稳定性比幻觉构成更严重的威胁,原因在于外部接口的严格约束。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。