AutoPI: Taxonomy-Guided Adaptive Red Teaming for Prompt Injection in LLM Agents

Stavros Damianakis, Konstantinos PsounisarXiv 2026

TL;DR

AutoPI is a training-free, black-box red teaming framework that uses a structured taxonomy (PIAtlas) to systematically discover diverse prompt injection vulnerabilities in LLM agents. Unlike previous methods that over-optimize for a high Attack Success Rate (ASR) using a few repetitive tricks, AutoPI prioritizes technique coverage, uncovering significantly more unique ways to break models while remaining more cost-effective than state-of-the-art reinforcement learning attackers.

What Problem Does This Paper Address?

Prompt injection—where malicious instructions are hidden in data (like emails or web pages) to hijack an LLM agent's behavior—remains a critical, unsolved security risk. While the research community has moved toward "adaptive" red teaming (attackers that change their strategy based on the target), most current tools focus solely on maximizing the Attack Success Rate (ASR).

The authors argue that ASR is a misleading metric. An attacker can achieve 90% ASR by repeatedly using one or two "tricks" that happen to work, leaving dozens of other potential attack vectors untested. This creates a false sense of security and provides poor training data for hardening models. To truly measure and improve robustness, we need to know not just if a model breaks, but in how many different ways it can be broken. This concept is what the authors call technique coverage.

Methods

AutoPI introduces a taxonomy-guided approach to red teaming. It operates as a black-box attacker, requiring no access to the target model's internal weights or gradients.

1. The PIAtlas Taxonomy

The core of AutoPI is PIAtlas, a taxonomy that categorizes prompt injections into 6 classes, 34 techniques, and 132 sub-techniques (e.g., "Structural Spoofing," "Social Engineering," "Output Coercion"). This provides a "map" of the attack space.

2. The Explore/Exploit Loop

AutoPI attacks each scenario using a three-phase strategy:

  • Initialize: It starts with an optional fixed "seed" injection.
  • Explore: A "Generator LLM" writes a unique injection for every single sub-technique in the taxonomy, specialized for the specific user task and attack goal. This ensures the search covers the entire "map" rather than clustering in one spot.
  • Exploit: For injections that fail, a "Judge LLM" provides feedback on why they failed (e.g., "ignored as data"). The Generator then reworks these failed attempts into variants of the same technique to find a "near miss" that works.
Figure 1. A sketch of the intuition behind AUTOPI. The space is a hypothetical embedding of how each injection is built, without its task and context. There, the injections that work lie in regions [11], one per technique, that overlap where techniques combine. Defining and representing these regions is an open problem [12]. Explore lands near every region and Exploit closes in [13], [14]. A strong seed starts beside a region, a weak one far from all.

3. Architecture

The system is benchmark-agnostic. A thin Adapter connects the AutoPI Engine to a target environment. The Engine manages the search state, while separate LLM roles act as the Generator (writing attacks) and the Judge (diagnosing failures).

Figure 2. AUTOPI architecture. The engine’s phases are optional and run in any order. Per attempt, the generator writes an injection, and the adapter places it, runs the target once, and reads the checker (util for the user task, hit for the goal). The judge diagnoses failures for Exploit.

Datasets

The authors evaluated AutoPI on two major agent benchmarks:

  • AgentDojo: A standard research benchmark featuring multi-step tool-use agents in domains like banking, Slack, and travel.
  • IPI Arena: An open-source benchmark used by frontier labs (Anthropic, Google, OpenAI) to evaluate their own models.

They tested these against Qwen3.6-35B (an open-weight model) and Claude Haiku 5.5 (a proprietary frontier model).

Key Insights and Ideas

  • Coverage is a Robustness Metric: Robustness is a "worst-case" property. If an evaluation misses a specific technique, it overstates the model's safety. AutoPI treats coverage as a first-class metric alongside ASR.
  • Training-Free Adaptivity: Most high-performing red teamers require expensive training (Reinforcement Learning) on the target model. AutoPI achieves comparable or better results simply by using a structured search guided by a taxonomy and a judge.
  • The "Exploit-Only" Trap: The authors show that attackers focused only on success tend to "collapse" onto a narrow set of strategies (e.g., 99% of one baseline's successes used "authority claims"). AutoPI avoids this by design, forcing the search to stay diverse.
  • Efficiency Matters: Because it uses short, targeted injections and no training phase, AutoPI is significantly cheaper (0.6 GPU-seconds per attempt) than baselines like PIMiner or Climbing the Hill (CtH).

Key Results

  • Superior Coverage: On AgentDojo against Qwen, AutoPI covered 31 out of 34 techniques. The best baseline only managed 22.
  • High Effectiveness: AutoPI achieved an 86.9% ASR at equal cost on AgentDojo, outperforming most baselines.
  • Breaking Robust Models: Against Claude Haiku 5.5—the most robust model tested—AutoPI achieved 20% to 50% higher ASR and 25% to 400% higher class-level coverage than state-of-the-art adaptive red teamers.
  • Generalization: AutoPI ran on the IPI Arena benchmark with zero changes to its engine or training, whereas some baselines are tightly coupled to specific benchmarks or require retraining for new targets.

Limitations and Future Work

  • Single-Technique Focus: Currently, AutoPI generates injections using one sub-technique at a time. Real-world attacks are often "compositions" of multiple techniques (e.g., obfuscation + social engineering). The authors plan to explore multi-technique "Ln sweeps" in the future.
  • Taxonomy Dependency: The results are tied to the PIAtlas taxonomy. While AutoPI can use other taxonomies, its performance depends on the quality and granularity of the underlying classification.
  • Defense Adaptation: While AutoPI was tested against system-level defenses (like Progent or DRIFT) in a replay mode, it does not yet dynamically adapt its search strategy during the run to bypass specific defensive layers. This is a primary direction for future work.

Summary updated

Abstract

Prompt injection is the dominant unsolved security risk for LLM agents, and the community now agrees that robustness must be measured against adaptive attackers rather than fixed benchmark injections. Many adaptive red teamers exist, and most are built to maximize attack success rate (ASR). Yet ASR counts how often a target breaks, not in how many different ways. A red teamer can achieve a high ASR by reusing a few techniques that work, leaving the others untested and absent from the attacks used to harden models. We present AutoPI, an adaptive red teamer designed to find many different ways to break a target, not just to break it often. AutoPI uses PIAtlas, a taxonomy of prompt-injection techniques, both to guide its search and to measure coverage. For each scenario, an attacker LLM writes an injection for every sub-technique in the taxonomy and then reworks the ones that fail using feedback from an LLM judge. The method is black-box and training-free, it plugs into existing benchmarks in place of their fixed attack templates, and it stays up to date as the taxonomy evolves. We evaluate AutoPI on AgentDojo and IPI Arena against open-weight and proprietary target models. Alongside ASR, we report technique coverage, the fraction of taxonomy classes, techniques, and sub-techniques that yield at least one successful injection. On AgentDojo, AutoPI finds a successful injection against Qwen3.6-35B in all six classes of the taxonomy and for more than 90% of its techniques. Against Claude Haiku 5.5, the most robust target we evaluate, it achieves between 20% and 50% higher ASR and between 25% and 400% higher class-level coverage than recent state-of-the-art adaptive red teamers, while requiring no training. We release our code and the generated attacks to support reproducible, coverage-aware evaluation.
BibTeX
@misc{damianakis2026autopi,
  author = {Stavros Damianakis and Konstantinos Psounis},
  title = {{AutoPI: Taxonomy-Guided Adaptive Red Teaming for Prompt Injection in LLM Agents}},
  year = {2026},
  eprint = {2611.24313},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.24313},
}

Loading related content...

Figure