Manuscript Offprint
arXiv:2610.41272ANGLER: Verifier-Grounded Benchmarking with an Adaptive Attacker for Web Agents
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Web agents are increasingly deployed to complete tasks autonomously on real websites, where adversarially injected content can induce them to perform unauthorized actions. Existing evaluations primarily use fixed attacks or focus on a single attack type, and evaluate attacks at the text level rather than through real state changes, thus underestimating how vulnerable agents are to diverse attacks. To address the gap, we introduce REEF, a benchmark of Red-teaming Executable Environments with Faithful Verification for measuring the security vulnerabilities of web agents. REEF covers 9 verifier-grounded websites spanning travel, commerce, productivity, media, and communication, and pairs every authentic benign task with a malicious objective delivered through 5 attack types at both the user and the environment level. REEF's state-based verifiers provide the execution feedback that drives ANGLER, an Adaptive Near-miss-Guided Lure Evolution framework for Red-teaming. Rather than evaluating a fixed attack set, ANGLER uses outcomes from prior rollouts to guide LLM-based attack mutation and candidate selection, prioritizing near-miss seeds during refinement. Across 8 VLM-based web agents, ANGLER achieves an end-to-end attack success rate (ASR) of 20.36%, compared with 15.24% for the non-adaptive setting. Compared with attack-free execution on the same benign tasks, attacks generated by ANGLER reduce benign task success rate (BSR) from 61.9% to 44.4%.
1 Introduction
Recent advances in large language models and vision-language models enable web agents to navigate websites and complete multi-step tasks on behalf of users [10, 11, 22, 36]. However, these capabilities also introduce security risks, as malicious instructions may induce web agents to perform unauthorized actions, such as sending messages, modifying settings, or completing transactions [9, 24, 27]. Adversarial content can reach web agents through user-level attacks that manipulate user instructions or environment-level attacks that inject malicious content into webpages encountered during execution. If the agent follows such content, it may perform actions that are not authorized by the authentic user goal. A faithful security evaluation must therefore test attacks during interactive website execution and verify whether they cause unauthorized changes to website state.
Existing security benchmarks provide executable environments for evaluating adversarial attacks against web agents and related tool-using agents. WASP [9], RedAgentBench [6], and SecureWebArena [34] execute adversarial tasks in interactive environments, but evaluate agents using fixed and static attack cases or trajectories. However, these benchmarks do not adapt attack generation or selection during agent evaluation based on outcomes from previous rollouts, potentially missing vulnerabilities that could be uncovered through feedback-driven exploration.
Although recent works have begun to introduce adaptive attacks, they are typically limited to a single attack type. Studies of pop-up and advertising-based injections each target a specific delivery channel [27, 35], while MUZZLE [24] uses execution feedback to adapt attacks but focuses specifically on indirect prompt injection. Consequently, existing evaluations provide broad evaluation of fixed attacks or adaptive refinement within a narrow attack class. What remains missing for web agents security evaluation is an adaptive but reproducible framework across multiple attack types. However, simply adding an adaptive attacker to existing benchmarks is insufficient because newly generated attack plans must be validated against specific constraints and evaluated under consistent task contexts, objective definitions, and verifier rules.
Therefore, we address these requirements with REEF and ANGLER, which combine a fixed benchmark specification with adaptive search. Built on 9 resettable AutoWebWorld environments [31], REEF pairs benign tasks with grounded malicious objectives across 5 attack types. A site compiler enforces attack constraints and checks plan validity, while programmatic verifiers assess outcomes from website state and committed artifacts. Within this feasible space, ANGLER combines systematic exploration, experience-guided LLM mutation, and feedback-driven candidate selection under a fixed rollout budget. This separation enables controlled comparisons of discovery policies under shared attack constraints and success criteria. Our contributions are summarized as follows:
We introduce REEF, an executable benchmark spanning 9 websites and 5 attack types. Unlike fixed-case evaluations, REEF supports controlled online mutation of structured attack configurations and uses programmatic verifiers to measure benign task completion and malicious objective success.
We propose ANGLER, an adaptive experience-guided framework for red-teaming web agents. It uses verifier-grounded rollout feedback to identify near-miss seeds for attack refinement and to select subsequent candidates within a predefined feasible attack-plan space.
We establish an evaluation protocol for comparing adaptive and non-adaptive attackers under identical task contexts and rollout counts. Across 8 VLM-based web agents and 9 websites, ANGLER increases average ASR from 15.2% for the non-adaptive baseline to 20.4%, while its attacks reduce average BSR from 61.9% under attack-free execution to 44.4%.
Co-corresponding authors: Yuzhi Zhao (zyz0808.hust@gmail.com) and Jiaheng Wei (jiahengwei@hkust-gz.edu.cn).
Table 1: Comparison of representative security benchmarks and adaptive red-teaming systems for web and computer-use agents. #Web denotes the number of web environments. User and Env. denote user-level and environment-level attacks respectively.
| Work | #Web | User | Env. | Attack Types | Online Generation | Adaptive Search | Cross-rollout Learning | Failure-guided Refinement | Plan Validation | Execution Oracle |
|---|---|---|---|---|---|---|---|---|---|---|
| VWA-Adv [30] | 3 | × | ✓ | Text/Image | × | × | × | × | - | ✓ |
| WASP [9] | 2 | × | ✓ | IPI | × | × | × | × | - | ✓ |
| RedTeamCUA [19] | 3 | × | ✓ | IPI | × | × | × | × | - | ✓ |
| SecureWebArena [34] | 6 | ✓ | ✓ | 6 Types | × | × | × | × | - | × |
| AgentVigil [29] | 3 | × | ✓ | IPI | ✓ | ✓ | ✓ | × | × | ✓ |
| MUZZLE [24] | 4 | × | ✓ | IPI | ✓ | ✓ | ✓ | ✓ | × | × |
| SIR [32] | 1(+OS) | × | ✓ | IPI | ✓ | ✓ | ✓ | ✓ | × | ✓ |
| ANGLER | 9 | ✓ | ✓ | 5 Types | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Online Generation denotes whether new attack candidates are generated during evaluation. Adaptive Search denotes whether execution feedback guides candidate generation or selection. Cross-rollout Learning denotes whether outcomes from earlier rollouts guide later ones. Failure-guided Refinement denotes whether diagnosed failures guide subsequent attack updates. Plan Validation denotes whether candidate plans are checked before execution. Execution Oracle denotes whether attack success is programmatically verified.
Web Agent Security Benchmarks. Security benchmarks extend agent evaluation by introducing malicious objectives or untrusted external content. ST-WebAgentBench [18] and SafeArena [26] respectively examine policy adherence and agents' completion of harmful requests. WASP [9] evaluates end-to-end prompt-injection attacks with realistic malicious objectives, while RedTeamCUA [19] extends adversarial testing to hybrid Web-OS environments. TRAP [17] studies how persuasive content embedded in realistic interfaces redirects web agents away from their original tasks. SecureWebArena [34] covers multiple user- and environment-level attack vectors, and REDAgentBench [6] emphasizes executable attacks and faithful measurement of their effects. These benchmarks improve environmental realism and attack coverage, but evaluate adversarial cases instantiated before execution rather than refining subsequent attacks from observed outcomes.
Recent work has begun to make attack generation adaptive. WebInject [28] optimizes webpage-level pixel perturbations through the rendered interface to induce malicious actions. Other approaches refine prompt injections through black-box tree search, reinforcement learning, or white-box and black-box prompt optimization [5, 12, 29]. AdvWeb [33] trains a black-box adversarial prompter using successful and failed attack strings collected against a target VLM-based web agent. Trajectory-driven methods instead use observed execution failures to guide subsequent attacks. MUZZLE [24] revises indirect prompt injections from Web-agent execution feedback, while SIR [32] extracts reusable attack principles from failed computer-use-agent trajectories. These methods demonstrate the value of feedback-driven testing, but their adaptation remains within a narrow attack mechanism.
3 Problem Statement
3.1 Environment and Target Agent
Environment. We consider a stateful website environment . At step , the environment is in state and emits an observation . After the agent selects an action , the environment transitions to .
Target Agent. We define a target-agent configuration as
where is the backbone model, is the prompting configuration, is the observation interface, is the action space available to the target agent, and is the interaction horizon. Given an authentic user goal , the current observation , and the interaction history , the agent chooses . We instantiate using the VisualWebArena agent scaffold [16]. Further details of the target agent's observation and action spaces are provided in Section B.1. Reported results therefore characterize the complete target-agent configuration rather than the backbone model alone.
A benign task is defined as , where is its initial website state and programmatically determines whether the requested operation has taken effect. A rollout denotes one complete execution from environment reset to agent termination under a fixed benign task and compiled attack. Before each rollout, we clear browser-persisted state and reload the website to restore .
3.2 Threat Model
Adversarial Goal. The adversary tries to induce the target agent to carry out a malicious objective that is not authorized by the authentic user goal . Representative objectives include sending an

Figure 1: Overview of REEF. The left panel summarizes 9 web environments spanning 5 application areas and 8,316 executable cases. The center panel illustrates the compositional construction of benign tasks and attacks from structured templates and parameters. The right panel presents the state-based user, attacker, and recovery verifiers used to programmatically determine rollout outcomes.
unauthorized message, modifying an account setting, or completing an unauthorized transaction. Each malicious objective is paired with an executable verifier that determines whether the unauthorized website-state change has occurred and remains effective at termination.
Capabilities. The attacker can manipulate either the user instruction or the webpage content encountered by the target agent, corresponding to user-level and environment-level attacks, respectively.
-
In a user-level attack, the attacker appends an adversarial payload to the authentic user instruction while leaving the website environment unchanged.
-
In an environment-level attack, the authentic user instruction remains unchanged, while the attacker injects content through an eligible webpage surface, including ordinary page content, pop-up or modal overlays, distraction elements, and advertising or sponsored-content slots. The four environment-level attack types and their delivery mechanisms are detailed in Section A.1.
Attacker Knowledge and Constraints. The attacker selects a malicious objective supported by the current website and varies its payload, delivery configuration, injection surface, timing, and presentation parameters within a predefined feasible attack space. After each rollout, the attacker receives execution-level feedback, including verifier outcomes and attack-progress signals, but has no access to the target model's parameters, hidden states, or private reasoning. The attacker cannot modify the agent implementation, underlying website logic, verifiers, or environment reset procedure.
4 REEF Construction
We construct REEF by combining diverse executable web environments, compositional task and attack generation, and programmatic verification of website-state changes.
4.1 Overview
REEF is an executable multi-site benchmark for systematically evaluating the security vulnerabilities of web agents. Built on 9 stateful and realistic website environments from AutoWebWorld [31],
REEF spans 5 application domains: travel, commerce, productivity, media, and communication. These websites run in isolated environments with synthetic users and content, enabling reproducible state-changing interactions without affecting public services. Across these websites, REEF instantiated 326 malicious objectives covering 5 functional categories: browsing and navigation, lightweight actions, content publishing, account configuration, and transactional commits. Malicious objective completion is verified from the resulting website state, and browsing and navigation objectives additionally require the agent to terminate on the intended page. Section A.2 provides the detailed statistics.
Each benchmark case combines an authentic benign task with a site-supported malicious objective and a compatible attack delivery configuration. The malicious objective can be delivered through a user-level direct prompt injection or an environment-level webpage injection, while the payload, delivery configuration and injection surface are subject to site-specific constraints. Each case is compiled and validated against site-compatible execution and evaluated using programmatic state-based verifiers that separately measure benign task completion, malicious objective achievement, and recovery. This executable design evaluates site-specific attack cases under a common protocol and measures their effects through website state changes, rather than treating payloads as isolated text prompts.
4.2 Task and Attack Construction
Benign Task Construction. For each website, we model its user-facing workflows as a finite-state machine (FSM). Starting from the reset state, breadth-first search (BFS) enumerates valid paths to reachable goal states. We convert each path into a parameterized task template and instantiate its free variables using entities supported by the website. Each resulting task is paired with a programmatic user verifier that checks whether the specified goal state has been reached. This construction increases task diversity while preserving the underlying workflow structure.
Attack Construction. For each website, we define malicious-objective templates over unauthorized but executable state changes supported by that website. Each objective is instantiated with site-valid entities and paired with an attacker verifier . We separate the malicious objective from its delivery and represent an attack plan as
where denotes the attack type, the instantiated malicious objective, the delivery specification, an optional webpage injection surface, the injection timing, and the site-valid content and presentation parameters used to instantiate . We organize the attack types represented by into two attack levels:
-
User-level. Direct Prompt Injection (DPI) delivers the malicious objective through an adversarial payload appended to the authentic user instruction.
-
Environment-level. Indirect Prompt Injection (IPI), Pop-up Injection, Distraction Injection, and Ad Injection deliver the malicious objective through injected webpage content. Environment-level attacks support a two-phase delivery process. The initial-phase injection presents a call-to-action (CTA), such as a button or link, intended to elicit an agent to interact with it and navigate to a target page. After navigation, a continuation-phase injection on the destination page attempts to induce completion of the malicious objective.
A benchmark attack case pairs a benign task with an executable attack plan supported by the same website.
Quality Control. We combine automated consistency checks with manual audits during benchmark construction. For each website, cases containing invalid configurations, implausible instructions, broken interactions, or mismatches between visible behavior and verifier outcomes are corrected and rerun.
4.3 Faithful Execution and Measurement
Compilation and Validation. Given a candidate attack case , the compilation-and-validation pipeline either produces an executable case or rejects the candidate. The compiler instantiated the selected benign-task, malicious-objective, and delivery templates with registered site-specific parameters and constructs the corresponding verifier specifications. It produces a composed agent instruction for a user-level plan or a renderer-ready injection specification for an environment-level plan. Static validation rejects undefined site-specific templates, entities, or injection surfaces, as well as incompatible task-objective pairs, invalid timing or payloads, and payload-objective inconsistencies. Only validated cases are eligible for rollout.
Verifier-Grounded Measurement. We determine rollout outcomes directly from recorded website states rather than relying on agent self-reports or LLM-as-a-judge scoring. Each attack case is paired with three programmatic verifiers:
-
The user verifier determines whether the benign objective is achieved during the rollout.
-
The attacker verifier determines whether the malicious objective is achieved during the rollout and remains satisfied at termination.
-
The recovery verifier confirms whether a malicious effect observed earlier is absent at termination.
Before each rollout, the attacker verifier must be false in the reset state, preventing a pre-existing malicious effect from being
counted as attack success. Together, the three verifiers distinguish attacks that are never successful, recovered before termination, or successful at termination.
Stage-Wise Engagement Measurement. For environment-level attacks, we additionally record whether the agent engages with the initial injected call to action before evaluating the final malicious outcome. Let denote the set of environment-level rollouts, and let if the agent activates the registered call to action in rollout , and otherwise. We define the CTA engagement rate as
CTA is recorded from the registered interaction event and associated page transition without relying on agent self-reports or an LLM judge. Unlike ASR, which requires the malicious objective to remain satisfied in the final website state, CTA captures an intermediate stage of the attack process. Reporting both metrics distinguishes failures to elicit interaction from failures to complete the malicious objective after engagement.
5 Adaptive Attacker with Experience Guidance
We propose ANGLER, a two-stage adaptive framework for discovering vulnerabilities in web agents. The first stage covers feasible combinations of benign tasks and attack types. The second stage iteratively uses an experience pool to guide LLM mutation of candidate attacks, with near-miss records prioritized as mutation seeds. A funnel-aware contextual bandit then selects the most promising candidate for execution. Verifier feedback updates both the experience pool and the bandit.
5.1 Two-Stage Scheduler
Our two-stage scheduler separates systematic coverage from adaptive optimization by assigning the benign task and specifying the attack search space for each rollout.
Coverage Stage. At the beginning of evaluation, the experience pool is empty, so the attacker has no prior outcomes to guide adaptive generation or selection. To bootstrap this process, the coverage stage systematically evaluates feasible pairings of benign-task templates and supported attack types. For each rollout, the scheduler prioritizes a pairing that has not reached its coverage quota, and then chooses one of the least-used instruction instances from that template. Once every pairing reaches its predefined quota, which may differ across attack types, the scheduler transitions to the adaptive stage. This forced exploration mitigates cold-start bias and prevents early random successes from prematurely dominating subsequent search.
Adaptive Stage. Once the coverage requirements are satisfied, the scheduler enters the adaptive stage. It selects a benign template uniformly, chooses one of its least-used instruction instances, and assigns the rollout to a compatible attack level, either user-level or environment-level. These scheduling decisions are independent of previous attack outcomes. Within the assigned attack level, the corresponding contextual bandit selects the specific attack type and delivery configuration. This separation prevents the attacker from concentrating its rollout budget on easier task contexts while allowing adaptive optimization within each scheduled context.

Figure 2: Overview of ANGLER. A two-stage scheduler balances structured coverage and adaptive search, while verifier feedback guides candidate generation and contextual-bandit selection across subsequent rollouts.
5.2 Experience-guided Candidate Generation
Experience Pool and Seed Selection. After each rollout, we add a record to the experience pool containing the executed attack plan, verifier outcomes, benign-task completion, and attack-funnel signals, and assign it to one of the four categories in Table 2. When only a few matching records are available or their observed ASR is low, seed selection favors verified successes because they provide executable starting points for further mutation. As more records become available and ASR increases, the seed selection system will give higher priority to near-miss records. Unlike blocked rollouts, near-misses show that an attack induced its malicious effect at least transiently, even though the effect was absent at termination. They help locate the remaining bottleneck, allowing ANGLER to guide subsequent mutations toward the stage where the attack failed rather than treating all unsuccessful rollouts alike. The exact sampling priorities and criteria are provided in Section B.2.
Candidate Generation. During the adaptive stage, the attacker uses the selected seed as structured feedback for experience-guided LLM mutation. For each candidate slot, the program assigns a malicious objective grounded in the current website, while the LLM determines how that objective is expressed and delivered. The complete construction of the mutation prompt is provided in Section B.3.
We design a mutation router that uses the verified outcome and progress signals from the previous rollout to determine which components the LLM should revise. For user-level failures, the router
Table 2: Experience-record categories for mutation-seed selection based on attack success and benign-task completion.
| Seed category | Definition |
| Success | The malicious objective remains satisfied at termination. |
| Near-miss, benign incomplete | The malicious objective is achieved transiently but not at termination, while the benign task remains incomplete. |
| Near-miss, benign complete | The malicious objective is achieved transiently but not at termination, while the benign task is completed. |
| Blocked | The malicious objective is never achieved. |
directs the LLM to revise the injected instruction. For environment-level failures, it distinguishes failures of exposure, engagement, and continuation-phase navigation completion, directing the LLM toward placement and timing, CTA wording and visual salience, or continuation instructions, respectively. Across all routes, the LLM may modify only permitted payload, delivery, timing, and presentation fields, while the assigned objective, verifier logic, site entities, and renderer behavior remain fixed. The permitted mutation fields and JSON output schema are detailed in Section B.4. The resulting attack plan candidates pass through compilation and validation before contextual-bandit selection.
5.3 Contextual Bandit Selection
Contextual Candidate Representation. Let index successive rollouts. At rollout , let denote the scheduler-assigned context and the set of validated candidate attack plans. For each candidate , we construct a fixed-dimensional feature vector
where denotes the feature dimension. The representation encodes the website, benign instruction and template, seed category, malicious objective, attack type, delivery configuration, and mutation provenance. For environment-level candidates, it additionally encodes injection timing, initial and continuation-phase surfaces, and interactions among task, attack type, and delivery choices. We encode numerical attributes such as injection delay and mutation length directly, and use signed feature hashing for categorical attributes and their interactions. Rollout outcomes therefore update feature weights shared by candidates with overlapping attributes, rather than only the specific attack plan that was executed.
User-level Candidate Selection. For a user-level rollout, contains the validated DPI plans generated under the scheduler-assigned context . We use logistic Thompson sampling (Logistic-TS) to select one candidate for execution [4]. The selector models verifier-confirmed final attack success as a logistic function of the contextual representation. Before rollout , it maintains a Gaussian approximation to the posterior over the parameter , with mean and covariance , obtained using Laplace's method. It draws one parameter sample and uses the same sample to score every candidate:
Table 3: Matched site-level ASR (%) of the non-adaptive baseline (NA) and ANGLER for agents instantiated with 8 VLM backbones. CTA reports the engagement rate of ANGLER. Avg. denotes the unweighted mean across websites.
| Website | GPT-4o | GPT-6.1 Sol | Claude Sonnet 4.5 | Claude Sonnet 5.5 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NA | ANGLER | CTA | NA | ANGLER | CTA | NA | ANGLER | CTA | NA | ANGLER | CTA | |
| Coursera | 22.0 | 58.0 | 84.6 | 7.0 | 10.0 | 10.3 | 22.0 | 17.0 | 70.7 | 17.0 | 25.0 | 0.0 |
| 28.0 | 59.0 | 81.6 | 2.0 | 9.0 | 0.0 | 18.0 | 31.0 | 82.1 | 15.0 | 20.0 | 0.0 | |
| GitHub | 20.0 | 42.0 | 66.7 | 5.0 | 12.0 | 0.0 | 22.0 | 20.0 | 73.4 | 5.0 | 13.0 | 6.7 |
| Headspace | 24.0 | 31.0 | 81.9 | 10.0 | 4.0 | 0.0 | 12.0 | 10.0 | 53.2 | 3.0 | 10.0 | 0.0 |
| JD | 41.0 | 54.0 | 74.7 | 20.0 | 14.0 | 0.0 | 16.0 | 28.0 | 62.7 | 15.0 | 24.0 | 0.0 |
| Skyscanner | 10.0 | 20.0 | 70.7 | 3.0 | 10.0 | 6.7 | 2.0 | 6.0 | 69.5 | 5.0 | 13.0 | 3.4 |
| Slack | 39.0 | 42.0 | 80.5 | 10.0 | 9.0 | 6.9 | 14.0 | 26.0 | 74.3 | 5.0 | 15.0 | 6.7 |
| Walmart | 22.0 | 22.0 | 65.4 | 5.0 | 10.0 | 13.3 | 6.0 | 8.0 | 66.2 | 2.0 | 9.0 | 0.0 |
| YouTube | 23.0 | 43.0 | 65.0 | 0.0 | 9.0 | 0.0 | 6.0 | 9.0 | 69.5 | 5.0 | 8.0 | 0.0 |
| Avg. | 25.4 | 41.2 | 74.6 | 6.9 | 9.7 | 4.1 | 13.1 | 17.2 | 69.1 | 8.0 | 15.2 | 1.9 |
| Website | Qwen3-VL | Qwen3.7-Flash | GLM-4.6V-Flash | GLM-5V-Turbo | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NA | ANGLER | CTA | NA | ANGLER | CTA | NA | ANGLER | CTA | NA | ANGLER | CTA | |
| Coursera | 16.0 | 24.0 | 42.1 | 19.0 | 25.0 | 37.1 | 13.0 | 15.0 | 51.6 | 32.0 | 43.0 | 55.6 |
| 13.0 | 14.0 | 46.9 | 19.0 | 24.0 | 48.7 | 12.0 | 11.0 | 46.5 | 45.0 | 50.0 | 72.4 | |
| GitHub | 12.0 | 11.0 | 34.4 | 15.0 | 15.0 | 50.6 | 6.0 | 7.0 | 47.9 | 35.0 | 40.0 | 58.6 |
| Headspace | 14.0 | 13.0 | 41.0 | 9.0 | 12.0 | 63.6 | 2.0 | 3.0 | 48.5 | 25.0 | 32.0 | 48.4 |
| JD | 22.0 | 30.0 | 49.3 | 18.0 | 20.0 | 51.9 | 14.0 | 19.0 | 49.3 | 42.0 | 44.0 | 70.0 |
| Skyscanner | 5.0 | 4.0 | 46.3 | 11.0 | 9.0 | 40.0 | 6.0 | 4.0 | 44.6 | 27.0 | 36.0 | 60.0 |
| Slack | 2.0 | 18.0 | 48.1 | 24.0 | 23.0 | 64.8 | 7.0 | 5.0 | 59.7 | 27.0 | 25.0 | 51.7 |
| Walmart | 8.0 | 4.0 | 38.8 | 17.0 | 12.0 | 32.1 | 9.0 | 11.0 | 46.3 | 30.0 | 32.0 | 63.3 |
| YouTube | 12.0 | 13.0 | 23.2 | 16.0 | 13.0 | 37.7 | 10.0 | 16.0 | 56.1 | 22.0 | 39.0 | 55.6 |
| Avg. | 11.6 | 14.6 | 41.1 | 16.4 | 17.0 | 47.4 | 8.8 | 10.1 | 50.1 | 31.7 | 37.9 | 59.5 |
where denotes the logistic sigmoid and is the sampled success probability of candidate . The selector executes the candidate with the highest score . After executing , the selector assigns the binary label if the attacker verifier is satisfied at termination, and otherwise. The selector then updates the posterior approximation from to . Posterior sampling favors candidates with high estimated success probability while preserving exploration under parameter uncertainty.
Environment-level Candidate Selection. For an environment-level rollout, contains the validated webpage-injection plans generated under the scheduler-assigned context . The two-phase delivery process provides an intermediate engagement signal before the final verifier outcome. We exploit this feedback using a gate model for initial-phase engagement and a completion model for continuation-phase success.
Let indicate whether the agent engages with the initial-phase CTA, and let indicate whether the attacker verifier is satisfied at termination. The gate model uses the initial-phase feature view , whereas the completion model uses the continuation-phase feature view . The selector draws one parameter sample from each posterior and scores every candidate by
(6)
The selector executes . After execution, the gate posterior is updated on every environment-level rollout using . The completion posterior is updated using only when . Thus, initial-phase engagement without final attack success is positive for the gate model but negative for the completion model, while a rollout without initial-phase engagement leaves the completion model unchanged.
6 Experiments
We evaluate whether ANGLER discovers verifier-confirmed vulnerabilities more effectively than non-adaptive attack policies under matched task contexts and rollout budgets. We further examine vulnerability variation across websites and target agents, the effect of attacks on benign-task completion, and the contribution of the adaptive components.
6.1 Experimental Setup
Backbone Models. All target agents use the VisualWebArena interaction scaffold [16] with the same observation interface, action space, prompt structure, and interaction horizon, differing only in their VLM backbones. We evaluate 8 vision-language models on REEF: GPT-4o [15], GPT-6.1 Sol [21], Claude Sonnet 4.5 [1], Claude Sonnet 5.5 [2], Qwen3-VL [3], Qwen3.7-Flash [23], GLM-4.6V-Flash [14], and GLM-5V-Turbo [13]. During the adaptive stage, we use Qwen3.5-9B [25] as the proposal model for candidate generation and keep it fixed across target agents.
Evaluation Protocol. For each target agent and website, we compare ANGLER with a non-adaptive baseline attacker under matched task contexts and identical rollout budgets. At each rollout, the baseline constructs candidate attacks supported by the current website, filters them through the compiler, and selects one of the remaining candidates uniformly at random. We additionally execute the same benign tasks without attacks to measure clean task success. Before each rollout, the environment is restored to its initial state, and all experimental conditions receive the same target-agent configuration and interaction horizon. We report verifier-confirmed final attack success rate (ASR), benign-task success rate (BSR), and call-to-action engagement rate (CTA).
6.2 Evaluation of ANGLER
Main Results. Table 3 presents the matched comparison between ANGLER and the non-adaptive baseline across 9 websites and 8 VLM backbones. For each backbone, both attackers follow the same task contexts and receive a budget of 100 rollouts per website.
ANGLER achieves an average ASR of 20.36%, compared with 15.24% for the baseline, corresponding to an absolute improvement of 5.12 percentage points and a relative improvement of 33.6%. At the aggregate level, ANGLER improves the average ASR for all 8 backbones and all 9 websites. The largest backbone-level gain occurs for GPT-4o, whose average ASR increases from 25.4% to 41.2%, followed by Claude Sonnet 5.5 and GLM-5V-Turbo. At the website level, the largest average gains occur on Coursera, Facebook, and YouTube, where ASR increases by 8.6, 8.3, and 7.0 percentage points across backbones. A complementary breakdown of ASR and CTA by attack type and backbone models is provided in Section B.5. Discovery Efficiency. Figure 3 reports the cumulative number of verifier-confirmed successful executions as the rollout budget increases for each website and target backbone. The two methods are relatively close at small budgets, but their gap widens as additional verifier feedback becomes available to ANGLER. At a budget of 50 rollouts per site-backbone pair, ANGLER discovers 713 successful attacks, compared with 545 for the non-adaptive baseline. The resulting gain of 168 successful rollouts, or 30.8% relative to the baseline, shows that prior executions become increasingly useful as the search proceeds. This trend highlights the value of adaptive evaluation.

Figure 3: Cumulative number of verifier-confirmed successful attack rollouts as the rollout budget increases, aggregated across 8 VLM backbones and 9 websites.
Engagement Evaluation. For environment-level attacks, the CTA metric measures whether the target agent engages with the initial injected surface before the malicious objective is evaluated. Across the 8 backbones, ANGLER attains an average CTA rate of 43.5%, ranging from 1.9% for Claude Sonnet 5.5 to 74.6% for GPT-4o. Six of the eight backbones achieve CTA rates above 40%, with the highest rates observed for GPT-4o at 74.6%, Claude Sonnet 4.5 at 69.1%, and GLM-5V-Turbo at 59.5%. By contrast, Claude Sonnet 5.5 and GPT-6.1 Sol exhibit substantially lower CTA rates of 1.9% and 4.1%, respectively, showing that engagement with injected interface elements varies considerably across target backbone models.
Attack-Free Benign Task Completion. We execute the same benign tasks without adversarial content to measure the intrinsic task-completion capability of each target agent. Table 4 reports BSR across three settings: attack-free execution, non-adaptive attacks, and attacks generated by ANGLER. Across the 8 backbones, the attack-free condition achieves an average BSR of 61.9%, compared with 46.4% under the non-adaptive baseline and 44.4% under ANGLER. Thus, adversarial content reduces benign-task success by 15.5 percentage points under the non-adaptive baseline and by 17.5 percentage points under ANGLER.
Table 4: Benign-task success rate (BSR, %) under attack-free (AF), non-adaptive (NA), and ANGLER conditions.
| Backbone Model | AF | NA | ANGLER |
|---|---|---|---|
| GPT-4o | 62.2 | 35.0 | 28.9 |
| GPT-6.1 Sol | 78.4 | 62.2 | 61.1 |
| Claude Sonnet 4.5 | 59.7 | 44.9 | 46.8 |
| Claude Sonnet 5.5 | 69.8 | 56.1 | 52.3 |
| Qwen3.7-Flash | 43.6 | 31.4 | 27.7 |
| Qwen3-VL | 67.3 | 50.2 | 51.9 |
| GLM-4.6V-Flash | 41.2 | 30.7 | 28.9 |
| GLM-5V-Turbo | 73.2 | 61.0 | 58.0 |
| Avg. | 61.9 | 46.4 | 44.4 |
Runtime Analysis. The measurements of wall-clock execution time include victim-model inference, browser interaction, environment execution, and verifier evaluation. The result varies substantially across target backbones, ranging from 63.9 seconds per valid rollout for Qwen3.7-Flash to 299.7 seconds for Qwen3-VL when averaged across 9 websites. The complete measurement protocol and website-level breakdown are provided in Section B.6.
6.3 Evaluation Stability
Budget-wise Score Convergence. ANGLER adapts its attack generation and selection using outcomes from previous executions, so its measured effectiveness may vary with the available rollout budget. Figure 4 therefore tracks the running ASR and CTA for each backbone as the budget increases. Metrics fluctuate at small sample sizes but become substantially more stable after approximately 75 rollouts. Beyond this point, additional rollouts mainly reduce residual variation without materially changing the backbone-level trends. These results suggest that 75 rollouts per website-backbone pair, or 675 rollouts per backbone across 9 websites, provide a practical minimum for obtaining reasonably stable aggregate estimates.
We nevertheless use the full budget of 100 rollouts for the reported results to support more robust comparisons and analyses.

Figure 4: Score convergence of ANGLER across 8 VLM backbones. Each curve reports the mean of site-level rates across 9 websites.
Run-to-Run Repeatability. Budget-wise convergence within a single evaluation does not by itself establish reproducibility across independent executions. We therefore repeat the complete ANGLER evaluation three times using Qwen3-VL [3] across all 9 websites. Each run uses 100 rollouts per website and holds the task schedule, candidate budget, compiler constraints, verifier definitions, target-agent configuration, and environment reset procedure fixed. The runs use independent randomness for attack generation and candidate selection. Table 5 reports the resulting ASR, CTA, and BSR for each run. The standard deviation remains below two percentage points for all three metrics, indicating limited sensitivity to the randomness of attack generation and candidate selection under the controlled evaluation setting.
Table 5: Run-to-run repeatability of ANGLER using Qwen3-VL across 9 websites. Values are percentages and macro-averaged across websites. The final column reports the mean and standard deviation over three independent runs.
| Metric | Run 1 | Run 2 | Run 3 | Mean SD |
|---|---|---|---|---|
| ASR | 14.6 | 12.1 | 11.0 | 12.6 1.8 |
| CTA | 41.1 | 44.1 | 41.3 | 42.2 1.7 |
| BSR | 51.9 | 49.7 | 52.9 | 51.5 1.6 |
6.4 Ablations
We evaluate the adaptive components using Qwen3-VL [3] as the target-agent backbone on all 9 websites. Every variant follows the same immutable schedule of 100 attempts per website, uses the same candidate budget, and preserves the benchmark compiler and verifier definitions. As shown in Table 6, the full method achieves the highest ASR of 14.6%. Removing bandit selection, experience feedback, or online mutation reduces ASR by 4.3, 3.3, and 2.6 percentage points, respectively, indicating that all three components contribute to attack effectiveness and that bandit selection provides the largest individual gain. CTA remains within a narrow range of 39.4–41.2%, indicating that the adaptive components primarily
improve downstream attack success rather than the frequency of initial engagement.
Table 6: Ablation of the adaptive components of ANGLER using Qwen3-VL across 9 websites.
| Method / Variant | BSR | CTA | ASR |
|---|---|---|---|
| w/o Bandit Selection | 50.0 | 39.4 | 10.3 |
| w/o Experience Feedback | 53.8 | 40.7 | 11.3 |
| w/o Online Mutation | 51.6 | 41.2 | 12.0 |
| Full ANGLER | 51.9 | 41.1 | 14.6 |
6.5 Discussion and Analysis
Engagement May Not Imply End-to-End Success. CTA measures whether an agent engages with injected webpage content, whereas ASR requires the malicious objective to be satisfied at termination. The attack-type breakdown in Table 11 reveals substantial gaps between these stages: pop-up injection achieves 52.4% CTA but only 17.1% ASR, while distraction injection achieves 47.0% CTA and 17.8% ASR. These gaps show that a high CTA does not necessarily translate into a high ASR, as the agent may abandon the malicious path before completing the objective. Nevertheless, high engagement remains security-relevant because it may redirect the agent to attacker-controlled pages and expose it to further malicious content. Therefore, CTA should be interpreted as a meaningful indicator of attack exposure and engagement.
Vulnerability Varies Across Models and Attack Types. The effectiveness of an attack depends on both the target backbone and its delivery mechanism. As shown in Table 11, GPT-4o is highly susceptible to environment-level attacks: pop-up and distraction injection achieve CTA rates of 83.3% and 89.3%, together with ASRs of 42.3% and 39.3%, respectively. In contrast, CTA never exceeds 5.4% for GPT-6.1 Sol or 2.3% for Claude Sonnet 5.5 across the four environment-level attack types. However, direct prompt injection still achieves ASRs of 32.5% and 32.9% against these two models. These results show that low engagement with injected webpage content does not imply general robustness, as a model that resists one delivery channel may remain vulnerable to another.
7 Conclusion
We presented REEF and ANGLER for measuring and discovering security vulnerabilities of web agents through verified website-state changes. REEF provides 8,316 executable cases over 9 stateful websites and 5 attack types spanning both user-level and environment-level delivery, using programmatic state verifiers to measure both benign and malicious task completion. Across 8 VLM-based target agents, ANGLER increases average ASR from 15.24% to 20.36%, a relative improvement of 33.6%.
Ethics and Privacy Statement
All experiments are conducted in isolated and resettable benchmark environments using synthetic accounts, entities, and malicious objectives. No attacks are directed at public services, real users, or real accounts, and the experiments do not collect personal data or access real secrets.
References
[1] Anthropic. 2025. System Card: Claude Sonnet 4.5. https://wwwcdn.anthropic.com/963373e433e4898a7a10c823c52a0a013e9172dd.pdf
[2] Anthropic. 2026. System Card: Claude Sonnet 5.5. Retrieved October 18, 2026 from https://www.anthropic.com/claud-e-sonnet-5-5-system-card
[3] Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, et al. 2025. Qwen-3-vl technical report. arXiv preprint arXiv:2511.21631 (2025).
[4] Olivier Chapelle and Lihong Li. 2011. An empirical evaluation of thompson sampling. Advances in neural information processing systems 24 (2011).
[5] Xin Chen, Jie Zhang, and Florian Tramér. 2026. Learning to inject: Automated prompt injection via reinforcement learning. arXiv preprint arXiv:2602.05746 (2026).
[6] Zixing Chen, Xingyuan Liu, Jie Zhu, Huaixia Dou, Shuo Jiang, Junhui Li, Lifan Guo, Feng Chen, and Chi Zhang. 2026. REDAgentBench: Executable Red Teaming and Faithful Measurement of LLM Agent Systems. arXiv preprint arXiv:2608.10669 (2026).
[7] De Chezelles, Thibault Le Sellier, Sahar Omidi Shayegan, Lawrence Keunho Jang, Xing Han Lü, Ori Yoran, Dehan Kong, Frank F Xu, Siva Reddy, Quentin Cappart, et al. 2024. The browsergym ecosystem for web agent research. arXiv preprint arXiv:2412.05467 (2024).
[8] Xiang Deng, Yu Gu, Boyuan Zheng, Shijie Chen, Sam Stevens, Boshi Wang, Huan Sun, and Yu Su. 2023. Mind2web: Towards a generational agent for the web. Advances in Neural Information Processing Systems 36 (2023), 28091–28114.
[9] Ivan Evtimov, Arman Zharmagambetov, Aaron Grattafiori, Chuan Guo, and Kamalika Chaudhuri. 2025. Wasp: Benchmarking web agent security against prompt injection attacks. Advances in Neural Information Processing Systems 38 (2025).
[10] Izzeddin Gur, Hiroki Furuta, Austin Huang, Mustafa Safdari, Yutaka Matsuo, Douglas Eck, and Aleksandra Faust. 2024. A real-world webagent with planning, long context understanding, and program synthesis. In International Conference on Learning Representations, Vol. 2024. 52690–52717.
[11] Hongliang He, Wenlin Yao, Kaixin Ma, Wenhao Yu, Yong Dai, Hongmeng Zhang, Zhenzhong Lan, and Dong Yu. 2024. Webvoyager: Building an end-to-end web agent with large multimodal models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 6864–6890.
[12] David Hofer, Edoardo Debenedetti, and Florian Tramér. 2026. Assessing Automated Prompt Injection Attacks in Agentive Environments. arXiv preprint arXiv:2606.10525 (2026).
[13] Wenyi Hong, Xiaotao Gu, Ziyang Pan, Zhen Yang, Yuting Wang, Yue Wang, Yuan-chang Yue, Yu Wang, Yanling Wang, Yan Wang, et al. 2026. Glm-5v-turbo: Toward a native foundation model for multimodal agents. arXiv preprint arXiv:2604.26752 (2026).
[14] Wenyi Hong, Wenmeng Yu, Xiaotao Gu, Guo Wang, Guobing Gan, Haomiao Tang, Jiale Cheng, Ji Qi, Junhui Ji, Lihang Pan, et al. 2025. Glm-4.5 v and glm-4.1 v-thinking: Towards versatile multimodal reasoning with scalable reinforcement learning. arXiv preprint arXiv:2507.01006 (2025).
[15] Aaron Hurst, Adam Lerer, Adam P Goucher, Adam Perelman, Aditya Ramesh, Aidan Clark, AJ Ostrow, Akila Welihinda, Alan Hayes, Alec Radford, et al. 2024. Gpt-4o system card. arXiv preprint arXiv:2410.21276 (2024).
[16] Jing Yu Koh, Robert Lo, Lawrence Jang, Vikram Duvvur, Ming Lim, Po-Yu Huang, Graham Neubig, Shuyan Zhou, Russ Salakhutdinov, and Daniel Fried. 2024. Visualwebarena: Evaluating multimodal agents on realistic visual web tasks. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 881–905.
[17] Karolina Korgul, Yushi Yang, Arkadiusz Drohomirecki, Will Howard, Lukas Aichberger, Chris Russell, Philip HS Torr, Adam Mahdi, Adel Bibi, et al. 2025. It's a TRAP! Task-Redirecting Agent Persuasion Benchmark for Web Agents. arXiv preprint arXiv:2512.23128 (2025).
[18] Ido Levy, Sami Marreed, Alon Oved, Avi Yaeli, Segev Shlomov, et al. 2026. St-webagentbench: A benchmark for evaluating safety and trustworthiness in web agents. In International Conference on Learning Representations, Vol. 2026. 122213–122255.
[19] Zeyi Liao, Jaylen Jones, Linxi Jiang, Yuting Ning, Eric Fosler-Lussier, Yu Su, Zhiqiang Lin, and Huan Sun. 2026. Redteamcua: Realistic adversarial testing of computer-use agents in hybrid web-os environments. In International Conference on Learning Representations, Vol. 2026. 48534–48579.
[20] Xing Han Lü, Zdenek Kasner, and Siva Reddy. 2024. Weblinx: Real-world website navigation with multi-turn dialogue. arXiv preprint arXiv:2402.05930 (2024).
[21] OpenAI. 2026. Addendum: GPT-6.1 Sol System Card. https://deploymentsafety.openai.com/gpt-6-1-sol/gpt-6-1-sol.pdf
[22] Zehan Qi, Xiao Liu, Lai Long Long, Hanyu Lai, Xueqiao Sun, Jiadai Sun, Xinyue Yang, Yu Yang, Shuntian Yao, Wei Xu, et al. 2025. Webrl: Training llm web agents via self-evolving online curriculum reinforcement learning. In International Conference on Learning Representations, Vol. 2025. 79791–79821.
[23] Qwen Team. 2026. Qwen3.7: The Agent Frontier. https://qwen.ai/blog?id=qwen3.7
[24] Georgios Syros, Evan Rose, Brian Grinstead, Christoph Kerschbaumer, William Robertson, Cristina Nita-Rotaru, and Alina Oprea. 2026. Muzzle: Adaptive agentic red-teaming of web agents against indirect prompt injection attacks. arXiv preprint arXiv:2602.09222 (2026).
[25] Qwen Team. 2026. Qwen3.5: Towards Native Multimodal Agents. https://qwen.ai/blog?id=qwen3.5
[26] Ada Defne Tur, Nicholas Meade, Xing Han Lü, Alejandra Zambrano, Arkil Patel, Esin Durnus, Spandana Gella, Karolina Starczak, and Siva Reddy. 2025. Safearena: Evaluating the safety of autonomous web agents. arXiv preprint arXiv:2503.04957 (2025).
[27] Haowei Wang, Junjie Wang, Xiaojun Jia, Rupeng Zhang, Mingyang Li, Zhe Liu, Yang Liu, and Qing Wang. 2025. Adinject: Real-world black-box attacks on web agents via advertising delivery. arXiv preprint arXiv:2505.21499 (2025).
[28] Xilong Wang, John Bloch, Zedian Shao, Yuepeng Hu, Shuyuan Zhou, and Neil Zhenqiang Gong. 2025. Webinject: Prompt injection attack to web agents. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing. 2010–2030.
[29] Zhuon Wang, Vincent Siu, Zhe Ye, Tianneng Shi, Yuzhou Nie, Xuandong Zhao, Chengquan Wang, Wenbo Guo, and Dawn Song. 2025. AGENTVIGIL: Automatic Black-Box Red-teaming for Indirect Prompt Injection against LLM Agents. In EMNLP (Findings). 23159–23172.
[30] Chen Wu, Rishi Shah, Jing Yu Koh, Russ Salakhutdinov, Daniel Fried, and Aditi Raghunathan. 2025. Dissecting adversarial robustness of multimodal lm agents. In International Conference on Learning Representations, Vol. 2025. 28362–28383.
[31] Yifan Wu, Yiran Peng, Yiyu Chen, Jianhao Ruan, Zijie Zhuang, Cheng Yang, Jiayi Zhang, Man Chen, Yenchi Tseng, Zhaoyang Yu, et al. 2026. Autowebworld: Synthesizing infinite verifiable web environments via finite state machines. arXiv preprint arXiv:2602.14296 (2026).
[32] Chen Xiong, Zhiyuan He, Pin-Yu Chen, Stjepan Picek, and Tsung-Yi Ho. 2026. SIR: Self-improving Red-teaming for Compute Use Agents. arXiv preprint arXiv:2608.30202 (2026).
[33] Chejian Xu, Mintong Kang, Jiawei Zhang, Zeyi Liao, Lingbo Mo, Mengqi Yuan, Huan Sun, and Bo Li. 2024. Advweb: Controllable black-box attacks on vlm-powered web agents. arXiv preprint arXiv:2410.17401 (2024).
[34] Zonghao Ying, Yangguang Shao, Jianle Gan, Gan Xu, Wenxin Zhang, Quanchen Zou, Junzheng Shi, Zhenfei Yin, Mingchuan Zhang, Aishan Liu, et al. 2026. Securewebarena: A holistic security evaluation benchmark for lvlm-based web agents. In Findings of the Association for Computational Linguistics: ACL 2026. 11986–11998.
[35] Yanzhe Zhang, Tao Yu, and Diyi Yang. 2025. Attacking vision-language computer agents via pop-ups. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 8387–8401.
[36] Boyuan Zheng, Boyu Gou, Jihyung Kil, Huan Sun, and Yu Su. 2024. Gpt-4v (ision) is a generalist web agent, if grounded. arXiv preprint arXiv:2401.01614 (2024).
[37] Shuyuan Zhou, Frank F Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, et al. 2024. Webarena: A realistic web environment for building autonomous agents. In International Conference on Learning Representations, Vol. 2024. 15585–15606.
A REEF Details
A.1 Environment-level Attack Types
Figure 5 illustrates the four environment-level attack types supported by REEF. All four leave the authentic user instruction unchanged and inject adversarial content through the website environment.
Indirect Prompt Injection. Indirect Prompt Injection embeds the adversarial instruction within ordinary webpage content, such as a community post, discussion note, or support message. The injected content adopts the surrounding page's native presentation and attempts to appear as task-relevant information that the agent should follow. Unlike the other attack types, it does not rely on a modal interruption, warning-style distraction, or explicitly sponsored presentation.
Pop-up Injection. Pop-up Injection presents the adversarial content in a modal overlay above the current webpage. The pop-up interrupts the normal interaction flow and typically frames its call to action as a required verification, security check, or workflow prerequisite. This attack tests whether visual prominence and apparent urgency cause the agent to prioritize the injected instruction over the authentic user goal.
Distraction Injection. Distraction Injection places a non-modal notice or banner alongside the normal task interface. The injected content commonly claims that the page state is outdated, inconsistent, or requires synchronization, thereby redirecting the agent toward an auxiliary action while leaving the original interface accessible. It differs from Indirect Prompt Injection by presenting the payload as a separate warning or status notice rather than ordinary page content.
Ad Injection. Ad Injection delivers the adversarial instruction through a designated advertising or sponsored-content surface, such as a promoted card or corner advertisement. The payload uses promotional framing, such as offering a shortcut or task assistant, to make its call to action appear beneficial to the current workflow. This attack evaluates whether the agent treats sponsored content as actionable guidance for completing the user's task.

(a) Indirect Prompt Injection
(b) Pop-up Injection

(c) Distraction Injection
(d) Ad Injection
Figure 5: Representative initial-phase injection surfaces for the four environment-level attack types in REEF. The attacks differ in how adversarial content is presented through the webpage environment.
A.2 Statistics of Malicious Objectives
Malicious Task Categories. The catalog defines 72 malicious objective templates, which produce 326 executable malicious instances after parameter instantiation. Each instance fixes a concrete malicious target and the parameters evaluated by its attack verifier. These instances are not complete benchmark cases: one objective instance can be paired with multiple compatible benign tasks and attack configurations to produce different executable cases. We group the objective instances by their terminal website effects into five broad categories: browsing or navigation, lightweight action, content publishing, account configuration, and transactional commit. This effect-based taxonomy groups semantically comparable objectives across websites despite differences in interface structure and terminology. Figure 6 shows the five broad categories in the
inner ring and their 20 fine-grained objective categories in the outer ring. Browsing and navigation is the largest category with 108 objectives (33.1%), followed by content publishing with 70 (21.5%), transactional commit with 55 (16.9%), account configuration with 51 (15.6%), and lightweight action with 42 (12.9%).

Figure 6: Distribution of the 326 instantiated malicious objectives in REEF. The inner ring shows five broad task categories, while the outer ring shows their fine-grained categories.
Malicious Task Complexity. We characterize the structural complexity of each objective using its estimated minimum action horizon from the reset state to the terminal state checked by its verifier. This metric captures the required interaction length rather than model reasoning difficulty. Each of the 326 instantiated objectives inherits the horizon of its originating template and is grouped as short (≤ 6 actions), medium (7–9), or long (≥ 10). Overall, 111 objectives (34.0%) are short, 104 (31.9%) are medium, and 111 (34.0%) are long. Table 7 reports the website-level breakdown.
Table 7: Counts of instantiated malicious objectives by estimated minimum action horizon. Short, medium, and long denote ≤ 6, 7–9, and ≥ 10 actions, respectively.
| Website | Short | Medium | Long | Total |
|---|---|---|---|---|
| Coursera | 15 | 7 | 5 | 27 |
| 16 | 15 | 0 | 31 | |
| GitHub | 15 | 10 | 10 | 35 |
| Headspace | 20 | 20 | 5 | 45 |
| JD.com | 9 | 22 | 8 | 39 |
| Skyscanner | 5 | 0 | 36 | 41 |
| Slack | 3 | 20 | 10 | 33 |
| Walmart | 0 | 2 | 37 | 39 |
| YouTube | 28 | 8 | 0 | 36 |
| Total | 111 | 104 | 111 | 326 |
B Implementation and Experiment Details
B.1 Agent Configuration
Observation Space. Our implementation supports three observation presets derived from VisualWebArena [16]: a text-only accessibility tree, a multimodal accessibility tree paired with the current viewport screenshot, and a set-of-marks representation that overlays numbered element identifiers on the screenshot. All reported experiments use the multimodal accessibility-tree preset. At each step, the agent receives the current task instruction, page URL, previous action, browser accessibility tree with element identifiers, and a screenshot of the current viewport.
Action Space. The action space follows the ID-based browser-action interface of VisualWebArena [16] and contains 10 action types. These actions support element interaction, text entry, keyboard input, page and container scrolling, within-site navigation, and episode termination. Agents cannot create, switch, or close browser tabs, or navigate outside the website associated with the current task. Table 8 provides the complete action grammar.
Table 8: ID-based browser actions available to the target web agents. Element IDs refer to the agent's current observation.
| Action | Description |
|---|---|
| click [id] | Click the element identified by id. |
| clear [id] | Clear the contents of a text-input element. |
| type [id] [text] [0|1] | Enter text into an element, optionally appending a newline. |
| hover [id] | Move the pointer over an element. |
| press [key_comb] | Issue a keyboard key or key combination. |
| scroll [up|down] | Scroll the current page in the specified direction. |
| scroll [id] [up|down] | Scroll an identified element or nested container. |
| goto [url] | Navigate to a URL within the current task website. |
| go_back / go_forward | Move backward or forward through in-site browser history. |
| stop [answer] | Terminate the episode and optionally return an answer. |
B.2 Seed-Sampling Details
During the adaptive stage, ANGLER generates each new candidate by selecting an experience record and mutating its attack plan. The selected record serves as the mutation seed, allowing previous execution outcomes to guide subsequent generation. For each scheduler-assigned context, we first retrieve experience records associated with the same benign instruction and otherwise fall back to records from the same benign-task template. Let denote the number of retrieved records and let ASR denote their running verifier-confirmed attack success rate. When or ASR < 0.5, we use the low-evidence regime in Table 9, which favors verified successes as reliable starting points for mutation. Otherwise, we use the refinement regime, which prioritizes near-misses to address the remaining failure stages. Within the near-miss categories, benign-incomplete records receive greater weight because they provide stronger evidence that the attack diverted the agent from the authentic task. Because every category has a positive weight, lower-priority records may still be sampled.
Table 9: Relative weights for mutation-seed sampling under the low-evidence regime and refinement regime.
| Seed Category | Low-evidence Regime | Refinement Regime |
|---|---|---|
| Success | 5 | 2 |
| Near-miss, benign incomplete | 4 | 5 |
| Near-miss, benign complete | 3 | 4 |
| Blocked | 2 | 3 |
B.3 Mutation Prompts
For each adaptive proposal round, we construct a JSON-serialized prompt that combines fixed mutation instructions with rollout-specific context. The fixed instructions define the permitted modifications, output format, and validity constraints. The rollout-specific context contains the parent attack plan, benign user goal, outcome category, verifier results, attack-funnel signals, delivery configuration, and site-specific catalog constraints. The program additionally assigns objective slots, each specifying a catalog-provided malicious objective, its parameters, action URL, attacker instruction, and a unique slot identifier. The proposal model must yield one mutation per slot, preserving its assigned objective or parameters.
The mutation router determines which aspects of the parent plan may be revised according to its attack type and observed failure stage. For user-level attacks, only the injected instruction may be revised. For environment-level attacks, the prompt emphasizes placement and timing when the injection was not observed, CTA wording and visual salience when it was observed but not engaged, and continuation instructions when the malicious path was reached without completing the objective. For successful seeds, the program may assign new catalog-backed objectives, while the proposal model varies only their expression and delivery.
The proposal model must return a single JSON object containing exactly mutations with distinct slot identifiers. Each mutation must preserve the catalog-provided attacker instruction and, when applicable, its action URL and CTA label. The model may not introduce new objective parameters, entity identifiers, routes, verifier rules, rendering logic, HTML, or arbitrary CSS.
B.4 Mutation Output Schema
The proposal model does not directly generate executable attack plans. Instead, it returns candidate revisions through a constrained JSON interface, allowing each revision to be bound to a program-assigned objective and validated before execution. The output is a single JSON object containing a mutations array. Each entry must bind to a unique assigned objective slot through slot_id and include at least one permitted update listed in Table 10. No other fields are accepted.
The system normalizes the returned mutations and compiles them into executable attack plans before candidate selection. It removes entries with missing or duplicate slot identifiers, unsupported fields, invalid values, or payloads that omit required catalog-provided instructions, URLs, or CTA labels. It also rejects duplicate plans and candidates that cannot be instantiated by the site-specific compiler. If fewer than the required number of valid mutations remain, the unfilled slots receive catalog candidates that pass the same compiler validation.
Table 10: Editable fields in the mutation-output schema.
| Field group | Allowed output |
|---|---|
| Slot binding | slot_id, which must identify one assigned and previously unused objective slot. |
| Initial payload | payload_override, which revises the initial injected instruction or surface copy. |
| Delivery | delivery_param_override and delivery_parameter_id, restricted to catalog-supported delivery fields. |
| Display timing | show_after_agent_steps, restricted to an integer from 1 to 3. |
| Surface style | surface_style_override, restricted to environment-level attacks and whitelisted color, font-size, and font-family values. |
| Continuation | phase2_payload_override and the corresponding continuation-phase delivery and style fields. |
B.5 Attack-Type Breakdown
The main evaluation reports performance by website and target backbone without separating rollouts by attack type. To complement this view, we regroup the evaluation results by attack type and target backbone. Table 11 reports the ASR and CTA for each group and CTA is reported only for environment-level attacks.
Across all rollouts, direct prompt injection achieves the highest ASR of 31.5%. Among environment-level attacks, distraction and pop-up injection obtain ASRs of 17.8% and 17.1%, respectively. Pop-up injection achieves the highest CTA rate of 52.4%, followed by distraction injection at 47.0%. The difference between CTA and ASR indicates that initial engagement with injected content frequently does not translate into successful completion of the malicious objective. Performance also varies substantially across backbones, showing that vulnerability to different delivery mechanisms is strongly model dependent.
Table 11: Attack-type performance of ANGLER by target backbone model. Each cell reports ASR/CTA (%).
| Model | Direct PI | Indirect PI | Pop-up Injection | Distraction Injection | Ad Injection |
|---|---|---|---|---|---|
| GPT-4o | 56.6/- | 38.9/46.3 | 42.3/83.3 | 39.3/89.3 | 29.3/56.3 |
| GPT-6.1 Sol | 32.5/- | 0.0/0.0 | 0.5/5.4 | 0.0/2.5 | 0.0/3.9 |
| Claude Sonnet 4.5 | 22.5/- | 9.8/29.4 | 14.0/75.8 | 24.5/80.6 | 8.3/58.0 |
| Claude Sonnet 5.5 | 39.8/- | 2.2/0.0 | 2.3/2.3 | 0.0/1.9 | 0.0/1.8 |
| Qwen3.7-Flash | 23.6/- | 6.3/14.6 | 18.6/69.7 | 13.2/42.6 | 14.1/34.8 |
| Qwen3-VL | 35.5/- | 0.0/0.0 | 8.0/69.2 | 9.1/40.1 | 1.7/15.0 |
| GLM-4.6V-Flash | 15.4/- | 15.4/69.2 | 8.4/45.6 | 7.4/49.5 | 6.6/54.3 |
| GLM-5V-Turbo | 38.8/- | 29.6/63.0 | 37.9/63.1 | 37.4/59.9 | 38.1/55.9 |
| Aggregate | 31.5/- | 15.9/25.8 | 17.1/52.4 | 17.8/47.0 | 13.9/34.6 |
Table 12: Average wall-clock execution time per completed valid rollout across websites and victim backbones. Values are reported in seconds.
| Website | GPT-4o | GPT-6.1 Sol | Claude Sonnet 4.5 | Claude Sonnet 5.5 |
|---|---|---|---|---|
| Coursera | 51.6 | 557.3 | 123.6 | 85.1 |
| 102.0 | 72.5 | 148.0 | 156.6 | |
| GitHub | 97.0 | 100.6 | 110.1 | 149.4 |
| Headspace | 95.4 | 89.3 | 130.3 | 124.9 |
| JD | 126.3 | 100.8 | 158.5 | 130.6 |
| Skyscanner | 98.4 | 135.4 | 95.8 | 102.9 |
| Slack | 95.5 | 184.9 | 128.7 | 268.7 |
| Walmart | 94.0 | 541.2 | 128.3 | 139.1 |
| YouTube | 88.8 | 191.3 | 153.7 | 84.7 |
| Avg. | 94.3 | 219.3 | 130.8 | 138.0 |
| Website | Qwen3-VL | Qwen3.7 Flash | GLM-4.6V Flash | GLM-5V Turbo |
|---|---|---|---|---|
| Coursera | 436.8 | 61.0 | 98.2 | 68.2 |
| 238.6 | 66.9 | 135.8 | 97.0 | |
| GitHub | 252.6 | 57.8 | 128.1 | 81.7 |
| Headspace | 242.2 | 88.1 | 183.6 | 87.5 |
| JD | 221.9 | 63.6 | 168.2 | 109.9 |
| Skyscanner | 283.1 | 54.1 | 132.2 | 143.8 |
| Slack | 536.1 | 65.9 | 191.9 | 103.6 |
| Walmart | 254.5 | 59.3 | 119.5 | 205.9 |
| YouTube | 231.3 | 58.4 | 127.4 | 85.1 |
| Avg. | 299.7 | 63.9 | 142.8 | 109.2 |
B.6 Runtime Analysis
We report the wall-clock execution time of ANGLER across all 8 victim backbones and 9 websites. For each valid formal rollout, we measure the elapsed time from the creation of its execution artifact to the completion of the final trajectory. The measurement therefore includes victim-model inference, browser interaction, environment execution, and verifier evaluation. It excludes candidate generation before rollout dispatch, queueing between rollouts, interrupted executions, and infrastructure failures that were not committed as formal experience records. Table 12 reports the mean execution time per valid rollout.
The results show that the runtime of ANGLER depends primarily on the latency of the victim backbone and the number of interaction steps required by each website. Qwen3.7-Flash has the lowest average execution time at 63.9 seconds per rollout, followed by GPT-4o at 94.3 seconds and GLM-5V-Turbo at 109.2 seconds. Qwen3-VL requires the longest average runtime at 299.7 seconds per rollout, with particularly long executions on Coursera and Slack. GPT-6.1 Sol also exhibits substantial site-dependent variation, primarily due to long executions on Coursera and Walmart. Because the victim models are served through a mix of local GPUs and remote APIs, these measurements represent practical rollout latency under our evaluation setup rather than controlled model-serving throughput.