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

攻破 ReAct 智能体:登门槛攻击将让你得逞

Breaking ReAct Agents: Foot-in-the-Door Attack Will Get You In

IBM Research AI(IBM研究院人工智能部门)

Itay Nakash, George Kour, Guy Uziel, Ateret Anaby-Tavor

AI总结:

本文提出登门槛攻击,利用无害请求引发的间接提示注入使 ReAct 智能体更易执行后续恶意操作,并提出反思机制以缓解该漏洞。

摘要:

随着大语言模型(LLMs)的进步,基于 LLM 的自主智能体的开发变得越来越普遍。因此,理解这些智能体的安全漏洞已成为一项关键任务。我们研究了如何利用一种直接而有效的方法来利用 ReAct 智能体,我们将这种方法称为登门槛攻击。我们的实验表明,由无害且无关的请求(如基本计算)引发的间接提示注入攻击,可以显著增加智能体执行后续恶意操作的可能性。我们的结果表明,一旦 ReAct 智能体的思考中包含某个特定工具或动作,在后续步骤中执行该工具的可能性就会显著增加,因为智能体很少重新评估其行为。因此,即使是随机的、无害的请求也能建立一种登门槛效应,使攻击者能够将恶意指令嵌入智能体的思考过程中,使其更容易受到有害指令的影响。为了缓解这一漏洞,我们提出实现一种简单的反思机制,提示智能体在执行过程中重新评估其行为的安全性,这有助于降低此类攻击的成功率。

英文摘要:

Following the advancement of large language models (LLMs), the development of LLM-based autonomous agents has become increasingly prevalent. As a result, the need to understand the security vulnerabilities of these agents has become a critical task. We examine how ReAct agents can be exploited using a straightforward yet effective method we refer to as the foot-in-the-door attack. Our experiments show that indirect prompt injection attacks, prompted by harmless and unrelated requests (such as basic calculations) can significantly increase the likelihood of the agent performing subsequent malicious actions. Our results show that once a ReAct agents thought includes a specific tool or action, the likelihood of executing this tool in the subsequent steps increases significantly, as the agent seldom re-evaluates its actions. Consequently, even random, harmless requests can establish a foot-in-the-door, allowing an attacker to embed malicious instructions into the agents thought process, making it more susceptible to harmful directives. To mitigate this vulnerability, we propose implementing a simple reflection mechanism that prompts the agent to reassess the safety of its actions during execution, which can help reduce the success of such attacks.

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

↑