TL;DR
Current defenses against large language model (LLM) jailbreaks and prompt injections appear strong only because they are evaluated against static datasets or generic, unadapted optimizers. By designing adaptive attacks that specifically counter each defense—leveraging reinforcement learning, evolutionary search, and human red-teaming—the authors break 12 recent defenses, driving attack success rates from near 0% to over 90% in most cases.
What Problem Does This Paper Address?
In classical computer security, the attacker always moves second: adversaries adapt to a system’s specific defenses and bring substantial compute to bear. In adversarial machine learning for LLMs, however, researchers routinely evaluate proposed defenses against fixed, static benchmark datasets or off-the-shelf optimization attacks (such as unmodified GCG) with low computational budgets.
This mirrors errors made a decade ago in the adversarial vision literature, where defenses claimed robustness against fixed perturbations but quickly collapsed under adaptive attacks. As a result, the community has developed a false sense of security regarding current prompt injection and jailbreak defenses.
Methods
The authors formalize a generalized adaptive attack framework based on an iterative PSSU loop:
- Propose: Generate candidate prompts/triggers via an LLM, gradient steps, or human intervention.
- Score: Evaluate candidates via target model feedback (e.g., perplexity, task redirection, LLM-as-a-judge, or tool call behavior).
- Select: Filter and retain top-performing or diverse candidates (e.g., using elite archives).
- Update: Refine the attack policy or search strategy based on qualitative and numerical feedback.
The authors instantiate four attack paradigms under this framework:
- Gradient-Based Optimization: Using Greedy Coordinate Gradient (GCG) with defense-specific loss formulations.
- Reinforcement Learning (RL): Training an attacker LLM with Group Relative Preference Optimization (GRPO) over multiple interaction rounds, guiding it with defense-aware reward scoring.
- LLM-Guided Search: An evolutionary algorithm based on MAP-Elites (via OpenEvolve) where a strong LLM (Gemini-2.5 Pro) acts as a mutator, guided by numeric scores and qualitative text critiques from a critic model.
- Human Red-Teaming: A public competition with over 500 participants and \$20,000 in prizes across 40 agentic challenge scenarios on the AgentDojo environment.
Datasets
The authors evaluate defenses across four major established benchmarks:
- HarmBench: Standardized benchmark for jailbreak misuse prompts (e.g., cyberattacks, dangerous materials).
- Alpaca-Davinci: Instruction-following pairs used to evaluate task redirection against input-formatting defenses (specifically StruQ).
- OpenPromptInject: Evaluates direct prompt injection in non-tool-calling contexts by embedding adversarial triggers into user data.
- AgentDojo: Dynamic benchmark for evaluating indirect prompt injection in tool-calling LLM agents. The study evaluated an 80-task subset across Slack, Travel, and Workspace suites.
Key Insights and Ideas
- Static Evaluations Breed Overfitting: Training on or evaluating against pre-collected datasets of prompt injections offers almost no out-of-distribution security. Once an adaptive attacker explores alternative framings, the protections collapse.
- Defenses Fail to Conceal Context: Filtering detectors (e.g., Protect AI, PromptGuard) struggle to differentiate malicious payloads from legitimate administrative overrides without causing unacceptably high false-positive rates on benign queries.
- Honeypots and Canaries Can Be Re-framed: Secret-knowledge defenses (such as Data Sentinel and MELON) rely on the model performing canary checks or detecting duplicate tool calls. Adaptive attacks simply instruct the model to execute the canary while conditionally executing the malicious task only during user-facing execution.
- Reward Hacking Distorts Automated Red-Teaming: Attack algorithms often exploit flaws in the scoring mechanism (e.g., repeating a target string 50 times to minimize perplexity) without achieving a genuine jailbreak, underscoring the need for careful scoring and human verification.
- Humans Remain the Strongest Adaptive Attackers: A single skilled human red-teamer found successful bypasses far faster (in as few as 50 queries) than hundreds of automated iterations.
Key Results
The authors systematically evaluated 12 defenses spanning four defensive paradigms, bypassing all of them:
| Defense Type | Defenses Tested | Static / Baseline ASR | Adaptive Attack ASR (Ours) |
|---|---|---|---|
| Prompting | Spotlighting, Prompt Sandwiching, RPO | 0% – 28% | 95% – 99% |
| Adversarial Training | Circuit Breaker, StruQ, MetaSecAlign | 0% – 62% | 96% – 100% |
| Filtering Models | Protect AI, PromptGuard, Model Armor, PIGuard | 0% – 26% | 71% – 94% |
| Secret Knowledge | Data Sentinel, MELON | 0% | 80% – 89% (up to 95% with full knowledge) |
- Human Red-Teaming Efficacy: Collective human red-teaming achieved a 100% success rate across all evaluated challenge scenarios in AgentDojo.
- Utility Trade-offs: Model-filtering defenses significantly degrade normal system utility (e.g., Protect AI and PIGuard reduced agent task utility to ~30–40% on AgentDojo).
Limitations and Future Work
- Computational Budget and Search Efficiency: Current discrete search attacks on LLMs still require dozens to hundreds of queries and often plateau after 100–200 attempts, falling short of the algorithmic efficiency seen in image-based gradient attacks (like PGD).
- Out-of-Scope Architectures: "Plan-then-execute" frameworks (e.g., CaMeL, Tool Filter) where the control flow is provably data-independent were excluded because injection attacks in the chosen scenarios are guaranteed to fail by design, though these architectures heavily restrict agent flexibility.
- Safety Classifier Vulnerability: Model-based auto-raters used to detect violations are themselves vulnerable to adversarial evasion, demanding more robust evaluation judges.
- Call for Open Defenses: The authors strongly advocate for defense creators to open-source defenses in easily testable formats to allow extensive human red-teaming prior to claiming robustness.
Summary updated