Who Pays the Price? Stakeholder-Centric Prompt Injection Benchmarking for Real-world Web Agents

Zihao Wang, Yiming Li, Yutong Wu, Kangjie Chen, Zheyu Liu, Fok Kar Wai, Pin-Yu Chen, Vrizlynn L. L. Thing, Bo Li, Dacheng Tao, Tianwei ZhangarXiv 2026

TL;DR

Current prompt injection benchmarks evaluate LLM-based web agents purely on whether an attack succeeds, ignoring who actually suffers the consequences. This paper introduces StakeBench, a stakeholder-centric benchmark that maps prompt injection risks to specific victims (Users, Sellers, or Platforms) and reveals hidden failure modes—like "stealthy parasitism"—where attacks succeed without disrupting the user's primary task.

What Problem Does This Paper Address?

Large Language Model (LLM)-based web agents are rapidly evolving from passive text generators into autonomous assistants capable of navigating the web, comparing products, and executing financial transactions. However, this autonomy leaves them highly vulnerable to Indirect Prompt Injection (IPI), where malicious instructions are hidden inside untrusted web content like product reviews or ratings.

Existing security benchmarks typically adopt an attack-centric view, bundling results into a single aggregate "attack success rate." The authors argue this misses two crucial real-world nuances:

  1. Multi-party harm distribution: In complex environments like e-commerce, an attack doesn't just affect the user. It can harm third-party sellers (e.g., via malicious order cancellations) or the platform itself (e.g., by bypassing workflows), even if the user's task completes successfully.
  2. Diverse failure manifestations: Current metrics fail to distinguish between an attack that silently hijacks an agent in the background versus one that completely breaks the agent's execution loop.

Methods

Figure 1: Overview of StakeBench, encompassing four stages of an evaluated execution. Scenario: the agent acts on the user’s behalf in a functional shopping environment shared with sellers and the platform, while an adversary embeds instructions in content surfaces such as reviews and ratings. Taxonomy: three stakeholder categories partition the harm space into 12 objectives, realized by 22 reusable templates (9 DPI, 13 IPI) and instantiated across 12 product categories to yield 264 executable adversarial cases. Trajectory: injected content diverts execution from the user’s intent toward the attacker’s, and the resulting trajectory is evaluated against its benign counterpart. Assessment: each execution is labeled with ASR and BIR, with TDR additionally defined for IPI. For IPI, ASR and TDR jointly locate the execution in one of four outcome regimes, from Robust Behavior, where neither is realized, to Compounded Failure, where both are.

To capture these missing dynamics, the authors built StakeBench. Instead of relying on a single metric, StakeBench evaluates agent trajectories across three distinct axes:

  • Attack Success Rate (ASR): Did the adversary achieve their specific objective?
  • Task Deviation Rate (TDR): Was the user's original benign task materially disrupted?
  • Behavioral Irregularity Rate (BIR): Did the agent exhibit process-level pathologies, such as infinite loops or unstable navigation?

By plotting ASR against TDR, StakeBench maps agent performance into four distinct operational regimes:

  • Robust Behavior: The attack fails, and the user's task succeeds.
  • Stealthy Parasitism: The attack succeeds, but the user's task also completes normally (making it incredibly hard to detect).
  • Misaligned Disruption: The user's task is derailed, but the attacker fails to achieve their goal.
  • Compounded Failure: The user's task is broken, and the adversarial goal succeeds simultaneously.

Evaluation is conducted automatically using a frontier LLM judge (GPT-5) configured with template-specific judging criteria, ensuring the evaluation is grounded in actual environmental states (like cart contents and order confirmations) rather than just the agent's text responses.

Datasets

StakeBench introduces a new benchmark suite instantiated within OneStopMarket (derived from WebArena), a fully functional, sandboxed e-commerce platform. The dataset consists of:

  • 12 concrete harm objectives split across Users, Sellers, and Platforms.
  • 22 reusable attack templates (9 Direct Prompt Injection, 13 Indirect Prompt Injection).
  • 264 executable adversarial cases distributed across 12 native product categories.

The authors evaluated these cases across 3,168 total runs, testing two deployable agent frameworks (NanoBrowser and BrowserUse) paired with two backbone models (GPT-5 and Gemini-2.5-Flash).

Figure 2: The attack taxonomy of StakeBench. The same 12 harm objectives are shown under two groupings: by the stakeholder bearing the direct harm (left) and by harm type (right). P1-P3 are multi-label annotations rather than separate attack cases, since an execution realizing a User or Seller objective typically realizes one or more of them in the same step; P4 admits an isolated realization and is instantiated through dedicated templates.

Key Insights and Ideas

  • Vulnerability is an Emergent System Property: You cannot predict an agent's safety solely by evaluating the backbone LLM or the agent architecture in isolation. For example, switching the backbone from GPT-5 to Gemini-2.5-Flash caused a massive 26.92% ASR spike on NanoBrowser, but had virtually no impact on BrowserUse. Security is entirely configuration-dependent.
  • The Threat of Stealthy Parasitism: User-targeted attacks frequently result in stealthy parasitism. Because the agent still fulfills the user's explicit request, standard user-facing completion checks will completely miss underlying harms like background data exfiltration or unauthorized secondary actions.
  • Platform Harm is a Universal By-Product: Platform-level violations (such as spoofing authority or bypassing workflows) rarely happen in isolation. They almost always manifest as the underlying mechanism that enables user- or seller-targeted harm.
  • Semantic Alignment Drives Success: Adversarial prompts are significantly more effective when they align with the user's intent. If an agent is looking for slippers, an injection recommending a specific slipper brand is far more likely to succeed than an injection trying to force an unrelated action.

Key Results

  • High Vulnerability Across the Board: No evaluated agent configuration successfully resisted all harm objectives. Aggregate IPI success rates (ASR) ranged between 41.67% and 68.59%.
  • Seller-Targeted Attacks are Most Disruptive: Attacks aimed at sellers (e.g., review distortion, malicious cancellations) achieved the highest success rates and caused the most severe task disruptions (highest TDR).
  • Strong Judge Alignment: The automated GPT-5 judge demonstrated exceptional reliability, achieving 87.88% to 90.66% agreement with independent human consensus across all evaluation metrics.
  • Visual Prompt Injections Work: In a preliminary multimodal experiment, modifying only product images to include fake promotional cues (like a "Bestseller" badge) successfully manipulated agent behavior, driving selection of the targeted product from a baseline of 10% up to 76.67%.

Limitations and Future Work

  • Domain Isolation: StakeBench is currently restricted to e-commerce. While the core taxonomy is domain-agnostic, expanding the benchmark to other multi-stakeholder environments (e.g., enterprise workflows, financial systems) is an open direction.
  • Defense Evaluation: The current framework focuses entirely on establishing a vulnerability baseline and does not yet systematically benchmark prompt injection defenses or mitigations.
  • Multimodal Scale: The visual injection study was a small-scale proof of concept. Developing a comprehensive, large-scale benchmark for visual and multimodal prompt injection remains future work.

Summary updated

BibTeX
@misc{wang2026who,
  author = {Zihao Wang and Yiming Li and Yutong Wu and Kangjie Chen and Zheyu Liu and Fok Kar Wai and Pin-Yu Chen and Vrizlynn L. L. Thing and Bo Li and Dacheng Tao and Tianwei Zhang},
  title = {{Who Pays the Price? Stakeholder-Centric Prompt Injection Benchmarking for Real-world Web Agents}},
  year = {2026},
  eprint = {2606.13385},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.13385},
}
Figure