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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Nakash, Itay, Kour, George, Uziel, Guy, Anaby-Tavor, Ateret
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929554247909376
author Nakash, Itay
Kour, George
Uziel, Guy
Anaby-Tavor, Ateret
author_facet Nakash, Itay
Kour, George
Uziel, Guy
Anaby-Tavor, Ateret
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_16950
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Breaking ReAct Agents: Foot-in-the-Door Attack Will Get You In
Nakash, Itay
Kour, George
Uziel, Guy
Anaby-Tavor, Ateret
Cryptography and Security
Artificial Intelligence
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.
title Breaking ReAct Agents: Foot-in-the-Door Attack Will Get You In
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2410.16950