Adversarial Images Hijack Web Agents from Visual Grounding to Browser Execution
Organizations: University of Utah
Abstract
Modern web agents built on large vision-language models process webpages, select relevant UI elements, and translate model outputs into browser actions. Existing visual red-teaming approaches use adversarial visual content to manipulate this process. However, they primarily target model inference and do not explicitly account for structured input processing or action post-processing. Consequently, model-level success does not establish control over browser execution and cannot reliably characterize end-to-end agent robustness. To address this gap, we formulate red teaming for vision-grounded web agents as an end-to-end grounding-to-execution problem, and introduce WebMirage, a framework that crafts localized visual perturbations that cause agents to select attacker-controlled content and execute the corresponding browser action across varying webpage renderings. It uses a role-slot abstraction and webpage recomposition to capture competition among webpage elements, and dataflow analysis to align optimization with action post-processing. We evaluate WebMirage across four agent configurations and six VLM backbones on 2,250 tasks covering 13 public websites and a sandbox benchmark. WebMirage achieves an average attack success rate of 91.9%, compared with 17.4% for the strongest baseline, and remains effective against three agent-level defenses.
Figures & tables
| Agent | Method | ASR-S ( ) | MTR ( ) |
|---|---|---|---|
| SEEACT ( ) | EIA | 6.2% | 7.3% |
| VWA-Adv | 14.5% | 5.0% | |
| Chameleon | 16.7% | 2.8% | |
| WebMirage | 90.0% | 1.8% | |
| WEBVOYAGER ( ) | EIA | 5.0% | 12.3% |
| VWA-Adv | 15.6% | 10.6% |
| Scenario | LLaVA v1.5 | LLaVA v1.6 | MiniCPM o | Phi-3 Vision | Qwen2 VL |
|---|---|---|---|---|---|
| Retail ( ) | 92.5 | 90.0 | 93.8 | 94.3 | 98.2 |
| Accomm. ( ) | 92.0 | 92.4 | 95.5 | 96.7 | 95.5 |
| Tutoring ( ) | 90.6 | 87.5 | 92.0 | 93.7 | 92.4 |
| Home ( ) | 71.1 | 69.0 | 73.8 | 80.1 | 76.1 |
| Avg. ( ) | 88.4 | 86.4 | 90.4 | 92.3 | 92.5 |
| Scenario | LLaVA v1.5 | LLaVA v1.6 | MiniCPM o | Phi-3 Vision | Qwen2 VL |
|---|---|---|---|---|---|
| Retail ( ) | 90.0 | 86.6 | 92.4 | 93.6 | 94.6 |
| Accomm. ( ) | 89.4 | 87.5 | 91.2 | 92.7 | 92.2 |
| Tutoring ( ) | 86.2 | 84.7 | 88.6 | 90.2 | 89.5 |
| Home ( ) | 68.5 | 65.3 | 69.4 | 75.5 | 73.9 |
| Avg. ( ) | 85.4 | 82.8 | 87.4 | 89.6 | 89.4 |
| LLaVA-v1.5 | LLaVA-v1.6 | MiniCPM-o | Phi-3-Vision | Qwen2-VL | |||||||
| Scenario | Method | Seen | Unseen | Seen | Unseen | Seen | Unseen | Seen | Unseen | Seen | Unseen |
| Retail | VWA-Adv | 14.5% | 0.0% | 11.0% | 1.5% | 16.0% | 0.0% | 16.8% | 2.5% | 16.5% | 1.7% |
| Chameleon | 17.8% | 7.1% | 15.5% | 2.7% | 16.9% | 5.6% | 19.2% | 6.6% | 18.6% | 7.5% | |
| WebMirage | 92.5% | 90.7% | 90.0% | 85.2% | 93.8% | 91.5% | 94.3% | 92.7% | 98.2% | 95.1% | |
| Accommodation | VWA-Adv | 15.5% | 2.5% | 10.8% | 0.0% | 15.4% | 1.8% | 17.9% | 5.5% | 19.7% | 4.2% |
| Chameleon | 19.5% | 9.0% | 15.9% | 6.9% | 19.0% | 9.2% | 18.6% | 7.4% | 20.0% | 12.5% | |
| Attack Success Rate (ASR) | ||||
| Agent | Site | Original | Rewritten | ASR |
| Public Websites | ||||
| SeeAct | Amazon | 96.7% | 91.2% | -5.7% |
| Walmart | 100.0% | 95.5% | -4.5% | |
| Target | 91.7% | 88.8% | -3.2% | |
| WebVoyager | Amazon | 93.6% | 90.5% | -3.3% |
| NLL | |||||
|---|---|---|---|---|---|
| Source Model | Target Model | ASR-S | Clean | Perturbed | NLL (%) |
| Within-lineage transfer | |||||
| MiniCPM-o | MiniCPM-V 2.5 [ 38 ] | 92.5% | 1.253 | 0.113 | -90.1% |
| MiniCPM-V 2.6 | 89.3% | 1.305 | 0.149 | -88.6% | |
| Phi-3 Vision | Phi-3.5 Vision | 88.3% | 2.252 | 0.206 | -90.9% |
| CogVLM | CogAgent [ 39 ] | 93.5% | 1.730 | 0.115 | -93.4% |
| Agent | Target | ASR-S | Epochs | Target Len. |
|---|---|---|---|---|
| SeeAct | Raw output | 74.5% | 1500 | 59 |
| Exec-aligned | 90.0% | 500 | 16 | |
| WebVoyager | Raw output | 63.5% | 1500 | 65 |
| Exec-aligned | 85.4% | 750 | 6 | |
| VWA (AcTree) | Raw output | 70.8% | 1500 | 125 |
| Exec-aligned | 96.2% | 245 | 8 |
| Defense | Acc. (%) | ASR-S (%) |
|---|---|---|
| No countermeasure | 100.0 | 91.9 |
| Image-Level Sanitization | ||
| JPEG compression (quality ) | 89.3 | 75.2 |
| Gaussian blur (radius ) | 100.0 | 82.5 |
| Uniform noise ( ) | 90.2 | 81.4 |
| Uniform noise ( ) | 58.5 | 45.7 |
| Backbone | Baseline ASR-S (%) | Randomized-ID Acc. (%) | Randomized-ID ASR-S (%) |
|---|---|---|---|
| LLaVA-v1.5 | 92.5 | 10.8 | 11.8 |
| LLaVA-v1.6 | 90.0 | 16.5 | 13.4 |
| MiniCPM-o | 93.8 | 5.3 | 5.5 |
| Phi-3-Vision | 94.3 | 29.4 | 17.7 |
| Qwen2-VL | 98.2 | 17.5 | 10.2 |
| Average | 93.8 | 15.9 | 11.7 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Scenario | Websites |
|---|---|
| Retail | Amazon, Target, Walmart, Woot, Menards |
| Accommodation | Airbnb, HomeToGo |
| Tutoring | Preply, K12.tutoring, HeyTutor, Superprof, Princeton Review |
| Home Service | Care.com |
| Scenario | Total | Failure Cause Breakdown | |||
|---|---|---|---|---|---|
| Network | Popups | Auth/Login | Context Drift | ||
| Retail | 73 | 8 | 46 | 11 | 8 |
| Accomm. | 67 | 12 | 30 | 22 | 3 |
| Home | 49 | 3 | 3 | 37 | 6 |
| Tutoring | 76 | 18 | 5 | 45 | 8 |
| Total | 265 | 41 | 84 | 115 | 25 |
| ASR-S (%) | |||
|---|---|---|---|
| VLM Backbone | 2% | 5% | 10% |
| LLaVA-v1.5 | 61.9 | 84.5 | 98.0 |
| LLaVA-v1.6 | 52.4 | 78.3 | 93.5 |
| MiniCPM-o | 67.0 | 85.9 | 100.0 |
| Phi-3-Vision | 68.2 | 90.4 | 100.0 |
| Qwen2-VL | 64.7 | 87.5 | 95.3 |