PIArena, AttackEval, and PISmith form a complete evaluation pipeline. Here's what that means for LLM security.


OWASP ranks prompt injection as the number-one security risk for LLM applications. Not third. Not fifth. Number one. Yet for years, the research community has been building defenses and attacks in isolation, each team running their own benchmarks, their own metrics, their own threat models. The result: defenses that look bulletproof in one paper crumble in the next.

Three recent papers from overlapping teams at Penn State change that calculus. Together, they form a full evaluation stack for prompt injection security, from attack taxonomy through adaptive red teaming to community benchmarking. PIArena, accepted at ACL 2026, is the platform layer. AttackEval systematizes what we're measuring. PISmith automates the most aggressive attacks.

This is the stack the field has been missing.

The Problem: Defenses That Don't Generalize

The PIArena paper opens with an observation that should trouble anyone deploying LLMs in production: many defenses initially reported as effective were later shown to have limited robustness when evaluated on different datasets and against different attacks. This isn't a minor caveat. It's a structural problem.

The issue breaks down into three pieces:

  1. No unified platform. Every research group builds their own evaluation harness. Different setups, different metrics, different threat models. Fair comparison becomes nearly impossible.
  1. Static-only testing. All existing benchmarks use fixed attack templates. A defense tested only against "ignore previous instructions" style prompts looks effective. Test it against an adaptive adversary and the story changes.
  1. No extensibility. Benchmarks are frozen datasets. New attacks, new defenses, new task types require building from scratch.

PIArena directly addresses all three. It provides plug-and-play APIs for attacks, defenses, and benchmarks. It includes an adaptive strategy-based attack that evolves based on defense feedback. And it's designed as a living platform, not a static dataset.

PIArena: Architecture and Design

The platform is built around four modules: benchmark, attack, defense, and evaluator. Each has standardized interfaces that let researchers swap components without rebuilding evaluation pipelines.

Benchmarks

PIArena curates datasets spanning multiple application categories:

  • Question answering: SQuAD v2, Dolly
  • RAG: Natural Questions, HotpotQA, MS-MARCO
  • Long-context: LongBench, LEVAL
  • Code generation: CodeSearchNet
  • Agent tasks: InjecAgent, AgentDojo, AgentDyn

Each sample includes a target instruction, a target context, and an injected task. The injected tasks aren't just "say hello" or "repeat after me." They include realistic categories: phishing injection, content promotion, access denial simulation, and infrastructure failure impersonation. The HuggingFace dataset shows concrete examples where a summarization task over a paragraph about ferrets gets derailed by a fake "System Notice" about subscription expiration.

This matters because previous benchmarks often used injected tasks that were trivially distinguishable from the target task. When the injected task is "output a phishing URL" and the target task is "summarize this biology text," the defense problem is easier than it should be. PIArena's context-aware injected tasks close that gap.

Attacks

The platform ships with nine attack methods:

  • none (baseline)
  • direct (default prompt injection)
  • combined (from the USENIX Security 2024 paper by Liu et al.)
  • ignore (the classic "Ignore previous prompt" attack from Perez & Ribeiro 2022)
  • completion (Simon Willison's 2022 formulation)
  • character (delimiter-breaking attacks, also from Willison)
  • nanoggc (GCG optimization-based attacks via nanoGCG)
  • tap (Tree of Thought-based black-box attacks)
  • pair (Prompt Automatic Iterative Refinement)
  • strategy_search (PIArena's novel adaptive attack)

The strategy_search attack is the key differentiator. Unlike static attacks, it iteratively optimizes injected prompts based on defense feedback. This is the attack methodology that existing benchmarks were designed to never test against.

Defenses

Nine defense methods are integrated:

Defense Type Source
DataSentinel Detection Game-theoretic detection (arXiv 2504.11358)
AttentionTracker Detection Attention-based detection (arXiv 2411.00348)
PromptGuard Detection Meta's Prompt Guard 86M model
PIGuard Prevention Mitigating overdefense (arXiv 2410.22770)
SecAlign Prevention Preference optimization-based (uses Meta-SecAlign)
PromptLocate Detection Localization-based (arXiv 2510.12252)
PromptArmor Prevention Simple structural defenses (arXiv 2507.15219)
PISanitizer Prevention Prompt sanitization for long-context (arXiv 2511.10720)
DataFilter Detection Data-level filtering (arXiv 2510.19207)

The API is straightforward. You import attacks and defenses, pick a model, and run:

from piarena.attacks import get_attack
from piarena.defenses import get_defense
from piarena.llm import Model

llm = Model("Qwen/Qwen3-4B-Instruct-2507")
defense = get_defense("promptguard")
attack = get_attack("combined")

Three lines to set up a full attack-defense evaluation. That's the point. The friction of reproducing someone else's evaluation setup is where science goes to die. PIArena removes that friction.

The Findings: Nothing Is Safe

PIArena's systematic evaluation produces four findings that should reframe how we think about prompt injection defense.

Finding 1: Defenses Don't Generalize

Defenses that perform well on specific tasks fail to transfer to others. A defense tuned for question answering may fall apart on summarization. A defense effective on short contexts may fail on long-context RAG. This isn't surprising in isolation, but the breadth of the demonstration across PIArena's benchmark suite makes it undeniable. The generalization gap isn't a corner case. It's the norm.

Finding 2: Adaptive Attacks Break Things

The strategy_search attack, which adapts its injected prompts based on defense feedback, bypasses many defenses that resist static attacks. This confirms what security researchers have long suspected: evaluating defenses only against fixed attack templates is like testing a lock only against the key that was designed to fit it.

Finding 3: Closed-Source LLMs Are Still Vulnerable

GPT-5, Claude Sonnet 4.5, and Gemini-3-Pro all show high attack success rates under prompt injection. These are the most capable general-purpose models available. Their instruction-following capabilities, which make them useful, are precisely what makes them vulnerable. The better a model follows instructions, the more it follows injected instructions.

Finding 4: Task Alignment Is the Hardest Problem

When the injected task aligns with the target task, prompt injection reduces to a disinformation problem. If the target task is "summarize this article" and the injected task is "include this misleading claim in your summary," the outputs look legitimate. Detection-based defenses can't flag what looks like a valid task completion. Prevention-based defenses can't redirect what appears to be on-task behavior. This is the fundamental challenge, and PIArena's evaluation shows it clearly.

The Broader Stack: AttackEval and PISmith

PIArena doesn't exist in isolation. Two companion papers complete the evaluation story.

AttackEval: Systematizing Attack Measurement

AttackEval (arXiv 2604.03598) takes a systematic approach to a different question: not "which defenses work?" but "which attacks work, and why?" The paper constructs a taxonomy of ten attack categories organized into three parent groups:

  • Syntactic attacks that manipulate structure and encoding
  • Contextual attacks that exploit the relationship between injected and target content
  • Semantic/Social attacks that use persuasion, emotion, and social engineering

The authors crafted 250 prompts (25 per category) and evaluated them against four progressively stronger defense tiers. The results include several non-obvious findings:

  • Obfuscation (OBF) achieves 76% ASR against even intent-aware defenses, because it defeats both keyword matching and semantic similarity checks simultaneously.
  • Emotional Manipulation and Reward Framing maintain 44-48% ASR against intent-aware defenses, since their natural language surface evades structural anomaly detection.
  • Composite attacks combining two strategies dramatically boost ASR. The OBF + EM pair reaches 97.6%.
  • Stealth correlates positively with residual ASR against semantic defenses (r = 0.71), meaning the attacks that look most legitimate are also the most effective.

The 97.6% figure for composite attacks deserves attention. That's not a marginal improvement over single-strategy attacks. That's near-complete bypass. It suggests that real adversaries, who will combine techniques, will succeed at rates that make individual defense strategies inadequate.

PISmith: RL-Based Red Teaming

PISmith (arXiv 2603.13026) tackles the adaptive attack problem from a different angle. Rather than hand-crafting attack strategies, PISmith trains an attack LLM using reinforcement learning to optimize injected prompts in a black-box setting. The attacker can only query the defended LLM and observe its outputs.

The technical contribution addresses a specific RL challenge: when attacking strong defenses, most generated injected prompts fail. This creates extreme reward sparsity, causing the policy's entropy to collapse before discovering effective strategies. PISmith introduces adaptive entropy regularization and dynamic advantage weighting to sustain exploration and amplify learning from scarce successes.

Evaluated across 13 benchmarks, PISmith consistently achieves the highest attack success rates among seven baselines spanning static, search-based, and RL-based attack categories. It also demonstrates effectiveness in agentic settings on InjecAgent and AgentDojo against both open-source models and closed-source models including GPT-4o-mini and GPT-5-nano.

The PISmith code directly builds on PIArena's defense and benchmark infrastructure. This is the stack working as intended: PIArena provides the platform, PISmith provides the most aggressive automated attacker, and AttackEval provides the framework for understanding what works and why.

Why This Stack Matters

Before these three papers, the prompt injection research landscape had a measurement problem. Researchers would propose a defense, test it against a handful of static attacks on one or two benchmarks, and report strong results. The next group would find that the same defense fails on different data. Nobody could reproduce each other's setups without weeks of engineering work.

The PIArena/AttackEval/PISmith stack changes this in three ways:

Platform standardization. PIArena's plug-and-play API means that when a new defense is proposed, it can be evaluated against the same set of attacks, on the same benchmarks, with the same metrics, as every other defense. No more apples-to-oranges comparisons.

Adaptive evaluation. The strategy_search attack in PIArena and the RL-based attacks in PISmith move evaluation beyond static templates. A defense that only works against "ignore previous instructions" is not a defense. It's a band-aid. These tools force researchers to confront adaptive adversaries.

Taxonomic clarity. AttackEval's taxonomy of ten attack categories across three parent groups gives the field a shared vocabulary. When someone says "obfuscation attack," they mean the same thing as everyone else. When someone reports ASR against emotional manipulation, it's comparable across papers.

What's Still Missing

The stack isn't complete. Several gaps remain:

Production deployment testing. PIArena evaluates on benchmark datasets, which are necessary but not sufficient. Real production systems have logging, rate limiting, multi-step orchestration, and human-in-the-loop workflows that change the attack surface. The community needs evaluation frameworks that model these constraints.

Multimodal injection. The current stack focuses on text-only injection. Production LLM systems process images, audio, and structured data. Injection vectors in those modalities are understudied and under-tested.

Cost modeling. AttackEval shows that composite attacks achieve 97.6% ASR, but doesn't model the cost of mounting such attacks at scale. For defenders making risk-management decisions, cost-benefit analysis matters as much as raw ASR numbers.

Long-term community adoption. PIArena has 24 stars and 5 forks on GitHub as of April 2026. The platform's impact depends on whether the research community adopts it as a standard evaluation tool. LLM benchmarks have a mixed track record on this front. MMLU became standard. Many others didn't.

The Bottom Line

Prompt injection remains a fundamentally hard problem. PIArena's evaluation confirms this with systematic evidence across multiple benchmarks, attacks, and defenses. The top closed-source models, including GPT-5 and Claude Sonnet 4.5, are vulnerable. Defenses that work in one setting fail in another. Adaptive attacks bypass static defenses. And when injected tasks align with target tasks, detection and prevention both struggle.

The PIArena/AttackEval/PISmith stack doesn't solve prompt injection. It gives the research community the tools to measure the problem honestly, compare solutions fairly, and iterate faster. That's the prerequisite for any real progress.

For practitioners: if you're deploying LLMs with untrusted context inputs, test your defenses on PIArena. If your defense only works against static attacks on a single benchmark, it won't hold up in production. The data is clear on this.

For researchers: the platform is open source, the APIs are three lines, and the benchmark datasets are on HuggingFace. There's no excuse for publishing defense results without systematic evaluation anymore.


Sources and References

  • Wang, M. et al. (2026). A Systematic Empirical Study of Prompt Injection Attack Effectiveness Against Large Language Models (AttackEval). arXiv:2604.03598.
  • Yin, C. et al. (2026). Reinforcement Learning-based Red Teaming for Prompt Injection Defenses (PISmith). arXiv:2603.13026. Code: github.com/albert-y1n/PISmith.
  • OWASP (2025). Top 10 for LLM Applications. Prompt injection ranked #1.
  • Liu, Y. et al. (2024). Formalizing and Benchmarking Prompt Injection Attacks and Defenses. USENIX Security 2024.
  • Perez, G. & Ribeiro, M. (2022). Ignore Previous Prompt: Attack Techniques for Language Models. arXiv:2211.09527.