SafeArena: Evaluating the Safety of Autonomous Web Agents

Ada Defne Tur, Nicholas Meade, Xing Han Lù, Alejandra Zambrano, Arkil Patel, Esin Durmus, Spandana Gella, Karolina Stanczak, Siva Reddy

Introduction

As Large Language Models (LLMs) are increasingly deployed as autonomous web agents, their potential for malicious misuse grows. While standard LLMs will typically refuse to generate phishing emails or hate speech in a chat interface, these models are now being connected to graphical user interfaces (GUIs) to act as autonomous agents that can click, type, and navigate websites on a user's behalf.

Existing safety benchmarks mostly evaluate text-based chat or synthetic tool-use, leaving a critical gap: they do not test whether an agent will actually navigate a realistic website to execute a malicious goal. SafeArena addresses this by asking a vital question: Do the safety alignments built into modern LLMs hold up when the model is given the keys to a web browser?

The SafeArena Benchmark

To test agent safety, researchers built SafeArena, a sandbox environment containing four realistic simulated websites, including a Reddit-style forum, an e-commerce store, a GitLab-style code repository, and a retail admin panel.

An autonomous agent executing a harmful task by navigating a forum to post COVID-19 misinformation.

The benchmark consists of 500 tasks:

  • 250 Harmful Tasks: Spread across five categories: misinformation, illegal activity, harassment, cybercrime, and social bias.
  • 250 Safe Tasks: Benign counterparts to the harmful tasks.

The core methodological innovation is the use of paired tasks. For every harmful task (e.g., "Add a DDoS tool to the store"), there is an equivalent safe task of similar complexity (e.g., "Add a smartwatch to the store"). This allows for the calculation of a Normalized Safety Score (NSS), which disentangles an agent's safety from its capability. If an agent fails a harmful task, the paired safe task proves whether it refused out of morality, or simply because it lacks the capability to navigate the web interface.

Key Findings

Researchers evaluated five vision-language models (including GPT-4o, Claude-3.5-Sonnet, and Qwen-2-VL-72B) using the Agent Risk Assessment (ARIA) framework, categorizing behavior from immediate refusal to successful completion.

Safety alignment doesn't transfer to the web: The abstraction of a GUI seems to bypass standard safety training. Top models were surprisingly compliant with malicious requests. GPT-4o successfully completed roughly 23% to 35% of harmful tasks, while Qwen-2-VL-72B completed up to 27.3%. Claude-3.5-Sonnet proved to be the safest agent, refusing 64% of harmful tasks and achieving the highest Normalized Safety Score (55.0). Conversely, Qwen-2-VL-72B was the least safe, refusing almost nothing (0.7% refusal rate).

Capability breeds risk: Counterintuitively, more advanced models can be more dangerous. Because models like GPT-4o are highly capable web navigators, they successfully complete a much higher percentage of harmful tasks than weaker models, which often just get confused and fail.

Demonstration of a Decomposition Attack, where a direct harmful prompt is refused, but breaking it into step-by-step UI instructions successfully bypasses guardrails.

Decomposition shatters guardrails: Even when an agent successfully identifies and refuses a harmful task, it can be easily tricked using a "task decomposition" attack. By breaking a malicious request down into innocuous step-by-step UI instructions (e.g., "Open the catalog," "Set product name to [Harmful Item]," "Click save"), the safest model tested (Claude-3.5-Sonnet) was jailbroken 100% of the time, requiring an average of only 1.26 attempts per bypass.

Limitations and Future Work

The authors acknowledge a few limitations in the current benchmark:

  1. Explicit Intents Only: The benchmark only tests explicitly harmful instructions. It does not test ambiguous intents, such as deleting a specific user's posts, which could be a malicious attack or a legitimate moderation action.
  2. External Defenses: In the real world, standard text classifiers could potentially intercept explicitly harmful prompts before they reach the web agent, though jailbreaks might still bypass such filters.
  3. Brittle Auto-Metrics: The evaluation relies heavily on automatic metrics (e.g., checking if a specific string was posted to a specific URL). This means the evaluation might miss instances where an agent does something harmful in an unexpected way. Future work will require more open-ended evaluation methods.

Summary updated

BibTeX
@inproceedings{tur2025safearena,
  author = {Ada Defne Tur and Nicholas Meade and Xing Han Lù and Alejandra Zambrano and Arkil Patel and Esin DURMUS and Spandana Gella and Karolina Stanczak and Siva Reddy},
  title = {{SafeArena: Evaluating the Safety of Autonomous Web Agents}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=7TrOBcxSvy},
}
Figure