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

Itay Nakash, George Kour, Guy Uziel, Ateret Anaby-Tavor
10/22/2024
cs.CRcs.AI

No official code found. Best implementation: paperwave/FITD-ReAct-Agents-Attack (0 stars, last commit 2024-10-21).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

This repository contains the code and experiments for our research paper "Breaking ReAct Agents: Foot-in-the-Door Attack Will Get You In," which explores indirect prompt injection vulnerabilities in LLM-based agents and proposes effective defense strategies.

00Dec 18, 20242 years ago

Similar Papers

Cite this paper

@article{nakash2024breaking,
  title  = {Breaking ReAct Agents: Foot-in-the-Door Attack Will Get You In},
  author = {Itay Nakash and George Kour and Guy Uziel and Ateret Anaby-Tavor},
  year   = {2024},
  eprint = {2410.16950},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.16950v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.16950.svg)](https://codeofpaper.com/paper/2410.16950)

Discussion