破坏智能体:通过故障放大危害自主 LLM 智能体
Breaking Agents: Compromising Autonomous LLM Agents Through Malfunction Amplification
AI总结:
本文提出一种通过误导智能体执行重复或不相关动作来引发故障的新型攻击,实验显示失败率超80%,并指出仅靠LLM难以有效检测此类攻击。
摘要:
近年来,基于大语言模型(LLMs)构建的自主智能体经历了显著发展,并正被部署到现实世界应用中。这些智能体能够以多种方式扩展基础 LLM 的能力。例如,一个以 GPT-3.5-Turbo 为核心构建的良好智能体,可以通过利用外部组件超越更先进的 GPT-4 模型。更重要的是,工具的使用使这些系统能够在现实世界中执行动作,从仅仅生成文本转变为主动与环境交互。鉴于智能体的实际应用及其执行具有后果性动作的能力,评估潜在漏洞至关重要。此类自主系统一旦被攻破,可能比独立语言模型造成更严重的损害。虽然已有一些研究探讨了 LLM 智能体的有害行为,但我们的研究从不同的视角切入该漏洞问题。我们引入一种新型攻击,通过误导智能体执行重复或不相关的动作来引发故障。我们使用多种攻击方法、攻击面和属性进行全面评估,以定位易受影响的环节。实验表明,这些攻击在多个场景中可导致超过 80% 的失败率。通过对多智能体场景中已实现且可部署的智能体进行攻击,我们强调了与这些漏洞相关的现实风险。为缓解此类攻击,我们提出了自检检测方法。然而,研究结果表明,仅依靠 LLM 难以有效检测这些攻击,凸显了该漏洞带来的重大风险。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。