Skip to content

Oxford et al. release the TRAP benchmark: six frontier models' web agents are hijacked by prompt injection on average 25% of the timeIt's a TRAP! Task-Redirecting Agent Persuasion Benchmark for Web Agents

Paper Tracker· arXiv:2512.23128· ICML 2026· Karolina Korgul, Yushi Yang, Arkadiusz Drohomirecki, Piotr Błaszczyk, Will Howard, Lukas Aichberger, Chris Russell, Philip H. S. Torr, Adam Mahdi, Adel Bibi·Indexed by this site · 2026-10-09· Originally publishedSelected EvaluationSelectedAttention38

Quick read

Evaluation and benchmarks

Based on the paper PDF (generated by Gemini); refer to the original

The authors evaluate 6 models on 6 webpage clones using TRAP and find an average ASR of 25% (GPT-5 at 13%, DeepSeek-R1 at 43%).

Questions
Web LLM agents depend on dynamic content and are easily misled by malicious instructions injected into the interface, deviating from the task. Existing evaluations are mostly static, do not deconstruct attack components, and rely on multi-step judgment by LLM judges, which can introduce bias.
Methods
The TRAP benchmark is built on REAL website clones, decomposing injection into a five-dimensional space of persona persuasion, LLM manipulation, interaction vectors, position, and customization, generating 630 combinations in total, with single-hop click redirection as a binary metric.
Experiments and results
The average ASR of six models is 25% (GPT-5 is 13%, DeepSeek-R1 is 43%); attacks originating from GPT-5 transfer to other models at an average rate of 82.5%; button injection success rate is about 3.5 times that of hyperlinks.
Limitations and future work
Attacks are limited to 6 cloned websites and selected modalities; customization only involves lightweight vocabulary modifications; the single-hop metric does not cover post-injection behavior; the full dataset is run only once; no defense scheme is proposed; modular decomposition abstracts away real-world component co-occurrence.
Experimental setupGPT-5、Claude Sonnet 3.7 et al. · TRAP、REAL et al. · Attack Success Rate (ASR)、Benign task completion rate et al.
Evaluated models
GPT-5Claude Sonnet 3.7Gemini 2.5 FlashGPT-OSS-120BDeepSeek-R1LLaMA 4 Maverick
Benchmarks
TRAPREALGoCalendarGoMailTopWorkOmnizonDashDishNetworkIn
Metrics
Attack Success Rate (ASR)Benign task completion rateTransferability
AI summaryand selection rationaleResearchers from the University of Oxford and other institutions proposed TRAP (Task-Redirecting Agent Persuasion Benchmark), evaluating web agents' resistance to persuasive prompt injection on clones of six websites: Amazon, Gmail, Google Calendar, LinkedIn, DoorDash, and Upwork. The benchmark combines 18 normal tasks with 35 injection templates into 630 task-injection combinations. Injections are composed of five dimensions: interaction form (button or hyperlink), Cialdini persuasion principles, LLM manipulation techniques, injection position, and task customization, with whether the agent clicks the injected element and navigates to the attacker's website as the binary success metric. Button-style injection has a success rate approximately 3.5 times that of hyperlinks, and mild wording customization combined with normal tasks can increase the success rate severalfold. The researchers also open-sourced an extensible modular injection framework and stated that all experiments were conducted on cloned websites and synthetic data.

Researchers from the University of Oxford and other institutions proposed TRAP (Task-Redirecting Agent Persuasion Benchmark), evaluating web agents' resistance to persuasive prompt injection on clones of six websites: Amazon, Gmail, Google Calendar, LinkedIn, DoorDash, and Upwork. The benchmark combines 18 normal tasks with 35 injection templates into 630 task-injection combinations. Injections are composed of five dimensions: interaction form (button or hyperlink), Cialdini persuasion principles, LLM manipulation techniques, injection position, and task customization, with whether the agent clicks the injected element and navigates to the attacker's website as the binary success metric. Button-style injection has a success rate approximately 3.5 times that of hyperlinks, and mild wording customization combined with normal tasks can increase the success rate severalfold. The researchers also open-sourced an extensible modular injection framework and stated that all experiments were conducted on cloned websites and synthetic data.

Why it was selectedTRAP decomposes prompt injection into modules such as persuasion principles, manipulation techniques, and interface forms, quantifying the impact of interface details on the probability of web agents being hijacked.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors state that web agents are easily misled by interface prompt injection, and existing evaluations lack modular attack structures and objective judgment.

    Core problem: Web-based autonomous LLM agents, when processing dynamic web content, are easily misled by prompt injection attacks embedded in interface elements, deviating from the original user task and being redirected.

    • Scenario and importance: LLM-based web agents are widely deployed in automated tasks such as schedule management, email processing, online shopping, and job seeking. Because agents directly process unsanitized external web content, attackers can inject adversarial instructions into editable areas such as comments, posts, or emails, causing sensitive data leakage or property loss.
    • Deficiencies of existing evaluations: The authors point out that current web agent security benchmarks are usually static (unable to extend new attack types after release), monolithic (treating injection as an indivisible black box), lacking simulation realism, and often rely on LLM judge scoring after multi-step interaction, which easily confuses whether the agent actively refuses or lacks capability.
    • Core observation of the paper: Attack success rate depends not only on the adversarial text itself, but is also significantly affected by the interactive interface form (such as buttons versus hyperlinks), human persuasion principles, and context fine-tuning; small interface and text changes can cause the success rate to change by multiples.
    • Proposed solution in the paper: Build the TRAP (Task-Redirecting Agent Persuasion Benchmark) benchmark based on clones of real websites, decompose prompt injection into a five-dimensional modular attack space, and use objective single-hop click redirection as the success determination metric.
    • Threat model:
      • Attacker goal: Induce the agent to click a malicious control, redirecting its navigation to an external URL controlled by the attacker.
      • Attacker capability: The attacker can only control user-editable text areas in real platforms (such as calendar locations, email bodies, forum posts, personal profiles, etc.) and cannot directly modify the underlying code of the webpage.
      • Attacker knowledge: No model internal weights or gradient information is needed; black-box injection is implemented through interface and text design; in advanced scenarios, lightweight text tailoring can be performed for common benign task types.
      • Victim system: Web autonomous agents based on underlying LLMs running in a real browser clone environment.
  2. What related research exists?

    The authors reviewed agent safety benchmarks and jailbreak methods, noting that previous evaluations mostly relied on multi-step judgment or monolithic injection.

    The paper focuses on the following four categories of research in the related work and introduction:

    Agent safety and prompt injection benchmarks

    • InjecAgent (Zhan et al., 2024) and AgentDojo (Debenedetti et al., 2024): The former covers tool-integrated agents but relies on LLM judges to assess multi-step outcomes; the latter uses dynamic environments but also defines success over long action sequences. The authors argue that such multi-step judgments are prone to judge bias and can confuse refusal with capability insufficiency.
    • ASB (Zhang et al., 2025): Evaluates across large-scale tools and attack types, but the authors note it aggregates behavior at the scenario level and does not decompose attacks into modular components.
    • AgentHarm (Andriushchenko et al., 2025) and OS-HARM (Kuntz et al., 2025): Broaden coverage of harmful outcomes but mainly focus on direct malicious prompts or OS-level tasks, still relying on multi-step success criteria.

    Jailbreak and LLM manipulation techniques

    • Adversarial suffixes (Khachaturov & Mullins, 2025): Induce model compliance by appending adversarial token suffixes to the end of instructions.
    • Chain-of-thought (CoT) injection and role-playing (Wang et al., 2025; Pathade, 2025): Use hidden reasoning steps or assigned assistant roles to reduce model adherence to safety policies.
    • Few-shot conditioning and overriding instructions (Wang et al., 2025): Manipulate through demonstrations of historical patterns or explicit requests to ignore prior instructions.

    Application of human persuasion principles in adversarial contexts

    • Cialdini's persuasion principles (Cialdini, 2021): Include seven principles: authority, reciprocity, scarcity, liking, social proof, commitment and consistency, and consensus. The authors note that prior work only studied persuasion in single-turn LLM interactions, and this paper extends it to agent interaction interfaces.

    Comparison baselines and environment foundations

    • REAL simulation environment (Garg et al., 2025): Provides deterministic high-fidelity clones of mainstream websites, serving as the underlying interaction benchmark for TRAP.

    Positioning difference between the paper and existing work: The authors state that TRAP no longer blindly stacks environments but decomposes attacks into an interpretable five-dimensional modular attack space and uses single-hop click redirection at the interaction boundary as a deterministic evaluation metric.

  3. How does the paper address this problem?

    The authors propose the TRAP framework, decomposing prompt injection into a five-dimensional modular attack space and using single-hop redirection judgment.

    The authors propose the TRAP (Task-Redirecting Agent Persuasion Benchmark) evaluation framework, decomposing web prompt injection attacks into a five-dimensional modular attack space, running observation-action loops on clones of real websites, and objectively measuring attack success rate through single-hop click redirection.

    Base environment and agent architecture

    • Deterministic website clones: The framework is built on REAL, selecting six website clones with large user-editable surfaces: GoCalendar (Google Calendar), GoMail (Gmail), Omnizon (Amazon), TopWork (Upwork), DashDish (DoorDash), and NetworkIn (LinkedIn).
    • Agent loop and action space: The agent runs an observation-action loop in a Playwright-driven browser. Observations include the user task description, chat history, list of opened URLs, current tab, and current URL; the observation modality uses the accessibility tree (AXTree). The action space includes basic interaction primitives such as click, fill, hover, navigate, tab management, and send message.
    • Benign task design: 18 benign tasks were adapted from REAL (3 per website), covering common user operations such as checking calendars, reading emails, browsing products, ordering food, and job application background checks.

    Five-dimensional modular attack space

    • Interaction Vector: Two interaction forms, button and hyperlink, are designed to test the redirection triggering effect of different interface controls.
    • Human Persuasion Principles: Cialdini's seven persuasion principles are converted into injection text strategies, including Authority, Consistency, Social Proof, Reciprocity, Scarcity/FOMO, Liking, and Unity.
    • LLM Manipulation Methods: Five classic jailbreak methods are integrated, including Adversarial Suffixes, CoT Injection, Many-shot, Override/Ignore, and Role-Play.
    • Location of Injections: In the main benchmark, each environment has one fixed injection location close to real user content (such as calendar event addresses, candidate posts); in the NetworkIn special experiment, this is extended to four locations (random post, target post, About section, recommendation section).
    • Tailoring: Tests the effect of fusing adversarial text with benign task context. In the main benchmark, it is disabled by default to control variables; in special experiments, lightweight tailoring that replaces no more than 20% of vocabulary is tested.

    Determination mechanism and execution configuration

    • Single-hop click redirection metric: As long as the agent clicks the injected button or hyperlink during interaction and is redirected to the specified external URL (set as an adult violation test site in the experiment), the attack is judged successful (ASR).
    • Execution parameter limits: Single-step general operation timeout is set to 30 seconds, page navigation timeout to 10 seconds, maximum interaction steps capped at 35, with a 1-second delay between actions. All experiments use a fixed sampling temperature of 0.0.
    • Benchmark combination scale: 18 benign tasks and 35 injection templates (7 persuasion principles × 5 manipulation methods × 1 location × 1 alternating interaction vector) are orthogonally paired to generate 630 task-injection evaluation cases. The average length of injection text is strictly controlled at 787 characters (standard deviation 98 characters).
  4. What experiments did the paper conduct?

    The average ASR of six frontier models on TRAP is 25%, and button injection is about 3.5 times higher than hyperlinks.

    Experimental Setup

    • Models under test: Six frontier closed-source and open-source LLMs were tested, all called via the OpenRouter interface: GPT-5 (2025-08-07), Claude Sonnet 3.7 (2025-02-24), Gemini 2.5 Flash (2025-06-17), GPT-OSS-120B (2025-08-05), DeepSeek-R1 (2025-05-28), LLaMA 4 Maverick 17B Instruct (128E) (2025-04-05).
    • Evaluation benchmark and scale: 18 benign tasks were run in 6 REAL website clones, combined with 35 injection templates to form 630 task-injection cases. Each model executed all 630 runs, with six models completing a total of 3,780 evaluations.
    • Control and baseline: Benign task completion rate (Benign Utility) was tested in an attack-free environment as a capability baseline.
    • Main metrics: Benign task completion rate (Benign Utility, proportion) and Attack Success Rate (ASR, proportion of agent clicks on injected elements leading to redirection, with 95% binomial confidence intervals).
    • Determination and interaction configuration: No LLM judge scoring; single-hop redirection was determined based on underlying Playwright environment logs; AXTree text modality used, maximum steps 35, temperature 0.0.
    • Abnormal execution statistics: Among all 3,780 runs, 639 reached the 35-step limit and were truncated after encountering injected text; the authors state that agents fell into loops and failed to complete tasks.

    Main Results

    The benign utility under no attack and attack success rate on TRAP for each model are shown in the table below (according to Table 1, n=630):

    ModelBenign UtilityAttack Success Rate (ASR)
    GPT-589%13% ±2.6
    Claude Sonnet 3.783%20% ±3.1
    Gemini 2.5 Flash61%30% ±3.6
    GPT-OSS-120B61%27% ±3.5
    DeepSeek-R167%43% ±3.9
    LLaMA 4 Maverick22%17% ±2.9
    • Main result performance: The average ASR across the six models was 25% (948/3,780). DeepSeek-R1 had a benign utility of 67% but an ASR of 43%, making it the most vulnerable among the tested models; GPT-5 and Claude Sonnet 3.7 had higher benign utilities (89% and 83%) and relatively lower ASRs (13% and 20%).
    • Authors' interpretation: The authors believe that stronger alignment and robustness can maintain task fidelity and reduce the probability of exploitation.

    Cross-Model Transferability Analysis of Attacks

    • Test content: Evaluated whether injections successful on a source model also succeed on target models (transfer matrix, Table 2).
    • Test results: Cross-model transfer is asymmetric. Attacks originating from GPT-5 had an average transfer rate of 82.5% (90.0% to Claude Sonnet 3.7, 88.8% to DeepSeek-R1); attacks originating from DeepSeek-R1 had an average transfer rate of only 39.1% to other models (only 26.0% to GPT-5).
    • Authors' interpretation: Transferability is positively correlated with model robustness. Injections that break the strongest model form an approximate subset of injections that break weaker models; attackers can directly find payloads on the strongest model and transfer them to other systems.

    Interaction Vectors and Customization Effects

    • Button vs. hyperlink comparison: Among all 948 successful attacks, 77.5% (735) were triggered by buttons, while hyperlinks accounted for only 22.5% (213); the authors state that buttons are approximately 3.5 times more effective than hyperlinks (Table 4). In a double-blind paired test on GoMail with a single prompt, GPT-OSS-120B had a button ASR of 46% vs. 6% for hyperlinks, Gemini 2.5 Flash 66% vs. 9%, and Claude Sonnet 3.7 46% vs. 6%.
    • Lightweight task customization: Modifying no more than 20% of the wording on two susceptible tasks (GoCalendar and DashDish) to change generalized instructions into task details (Table 6) increased the average ASR on GoCalendar from 3.3% to 18.6% (from 7 to 39 occurrences, a 5.6x increase) and on DashDish from 6.7% to 16.7% (from 14 to 35 occurrences, a 2.5x increase).

    Position Effects and Website Clone Analysis

    • Test content: In the NetworkIn environment, tested the ASR for 4 injection positions (random posts, target user posts, About profile, recommendation bar) with and without position-guiding prompts (Table 5).
    • Test results: Position-specifying prompts mostly reduced ASR (random posts from 4% to 1%, target posts from 9% to 7%, recommendation bar from 29% to 20%); the only exception was the About bar, where specifying the position increased ASR from 52% to 59%.
    • Authors' interpretation: Positional cues amplify susceptibility only in the semantically rich core area of personal profiles, and are ineffective in less exposed areas.

    Other Ablations and Analyses

    • Distribution of persuasion principles: Social Proof accounted for 18.1% (172 occurrences), Consistency 17.9% (170), Unity 10.4% (99) (Table 3).
    • Distribution of manipulation methods: Adversarial Suffixes accounted for 24.5% (232), CoT injection and Many-shot each 23.8% (226 each), Override 11.6% (110) (Table 3).
    • Cross-layer synergy effects: Social Proof or Consistency combined with Adversarial Suffixes or CoT each contributed approximately 4%–5% of successful injections (Section 4.3).
    • Observation modality ablation: Tested on GoCalendar with Gemini 2.5 Flash (Table 14); ASR with AXTree alone was 8.7% (9/104), with screenshots added it was 10.5% (11/105); Fisher's exact test p>0.5, the authors report the difference is not significant.
  5. What are some points that can be further explored?

    The limitations noted by the authors include coverage of only six website clones, no proposed defense, and the full dataset being run only once.

    Limitations and future directions noted by the authors

    • Test environment limitations: Attacks were only conducted on six cloned websites, and mainly focused on selected modalities (Section 5 Limitations).
    • Single customization strategy: Customization experiments only applied lightweight lexical modifications, without involving richer user- or context-specific strategies (Section 5 Limitations).
    • Single-hop metric limitations: The single-hop click success metric isolates susceptibility but omits analysis of subsequent behavior after prompt injection occurs (Section 5 Limitations).
    • Few repetitions: The full dataset was run only once; in a sampled test of 120 tasks, ASR differences across three runs were less than 3 percentage points (Section 5 Limitations).
    • No defense proposed: The paper evaluates six frontier models but does not propose defense mechanisms in the framework (Section 5 Limitations).
    • Modular artificial decomposition: The modular decomposition abstracts away the natural co-occurrence of persuasion components in real-world injections, and attack effects may differ in natural interactions (Section 5 Limitations).

    Experimental coverage

    • Tested models include GPT-5, Claude Sonnet 3.7, Gemini 2.5 Flash, GPT-OSS-120B, DeepSeek-R1, and LLaMA 4 Maverick, 6 in total (Table 9).
    • The evaluation environment covers 6 REAL cloned sites: Google Calendar, Gmail, Upwork, Amazon, DoorDash, and LinkedIn (Table 7).
    • Interaction vectors only tested buttons and hyperlinks, not forms such as QR codes and system push notifications (Section 3.3).
    • The observation modality defaults to the text accessibility tree (AXTree), and multimodal image injection was not included in the main evaluation set (Section 3.1).
    • The paper did not test defense interception mechanisms in experiments (Section 5 Limitations).
  6. Summarize the main content of the paper

    The paper proposes the TRAP benchmark based on a five-dimensional modular attack space, evaluating injection risks of six models in real web page environments.

    Research positioning: Targeting the problem that web autonomous agents are vulnerable to external interface prompt injection attacks, a modular evaluation benchmark TRAP based on clones of real websites was built.

    • Problem to be solved: Web agents are easily misled by embedded instructions when processing untrusted dynamic content, while existing benchmarks are mostly static, do not decompose attack elements, and rely on biased multi-step LLM judgment.
    • Core method design: Prompt injection is decomposed into five dimensions: interaction vector, persuasion principles, LLM manipulation, injection location, and task tailoring, which are combined to build 630 task-injection evaluation cases, using deterministic single-hop click redirection as a binary metric.
    • Main experimental findings:
      1. The average ASR of six frontier models reaches 25%, with GPT-5 the lowest (13% ±2.6) and DeepSeek-R1 the highest (43% ±3.9) (Table 1).
      2. Injections exhibit asymmetric transferability; injections that succeed on the strongest model GPT-5 transfer to other models at an average rate of 82.5%, while on DeepSeek-R1 it is only 39.1% (Table 2).
      3. Interface presentation form has a significant impact; buttons trigger 77.5% of successful injections, about 3.5 times the effect of hyperlinks (Table 4).
      4. Lightweight context fine-tuning (modifying no more than 20% of vocabulary) raises the average ASR of GoCalendar and DashDish to 18.6% and 16.7%, respectively (Table 6).
    • Authors' conclusions and implications: The authors believe that interface design and contextual persuasion significantly affect agent execution reliability; preventing agent injection risks requires not only handling underlying prompts but also paying attention to persuasion structures in the external deployment environment.

Related papers

Both use: REAL
Read originalICML 2026