Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents
Qiusi Zhan, Richard Fang, Henil Shalin Panchal, Daniel Kang
TL;DR
This work investigates the security of LLM agents that rely on external tools by evaluating eight defenses against indirect prompt injection (IPI) attacks. It introduces adaptive attack techniques—rooted in jailbreak-style methods like GCG variants and AutoDAN—to craft adversarial content that defeats each defense, demonstrating attack success rates consistently above 50%. The findings reveal significant vulnerabilities across detection, input-level, and model-level defenses, with adaptive attacks capable of bypassing protections while revealing trade-offs in valid-output rates. The study underscores the importance of incorporating adaptive threat modeling into defense design and evaluation to ensure robust, reliable LLM agent safety in real-world deployments.
Abstract
Large Language Model (LLM) agents exhibit remarkable performance across diverse applications by using external tools to interact with environments. However, integrating external tools introduces security risks, such as indirect prompt injection (IPI) attacks. Despite defenses designed for IPI attacks, their robustness remains questionable due to insufficient testing against adaptive attacks. In this paper, we evaluate eight different defenses and bypass all of them using adaptive attacks, consistently achieving an attack success rate of over 50%. This reveals critical vulnerabilities in current defenses. Our research underscores the need for adaptive attack evaluation when designing defenses to ensure robustness and reliability. The code is available at https://github.com/uiuc-kang-lab/AdaptiveAttackAgent.
