ST-WebAgentBench: A Benchmark for Evaluating Safety and Trustworthiness in Web Agents

Ido Levy, Ben Wiesel, Sami Marreed, Alon Oved, Avi Yaeli, Nir Mashkif, Segev Shlomov

TL;DR

Current web agent benchmarks only measure whether an agent completes a task, completely ignoring whether it acts safely or follows rules. To bridge this gap, ST-WebAgentBench introduces a new evaluation framework featuring 375 enterprise tasks governed by over 3,000 safety and trustworthiness policies. Testing state-of-the-art agents reveals a troubling reality: agents violate critical safety guidelines in nearly 38% of their successful task completions.

What Problem Does This Paper Address?

Large Language Model (LLM) agents are increasingly capable of navigating the web, clicking buttons, and filling out forms to automate complex workflows. However, before enterprises can trust these agents with critical business operations, they must ensure the agents behave safely and adhere to organizational policies.

Existing benchmarks only evaluate the Completion Rate (CR)—did the agent reach the goal? They fail to penalize catastrophic side effects, such as an agent successfully creating a user account but illegally fabricating a phone number, or deleting the wrong database record along the way. Without safety-aware evaluation, current leaderboards reward reckless behavior.

Table 1: Comparison between existing web agents benchmarks. CR = Completion Rate.

Methods

The authors introduce ST-WebAgentBench, a framework built on top of BrowserGym that evaluates web agents across six core Safety and Trustworthiness (ST) dimensions: User Consent, Boundary & Scope, Strict Execution, Hierarchy Adherence, Robustness & Security, and Error Handling.

Key innovations include:

  1. Policy Hierarchy: The framework formalizes a strict precedence rule: Organizational Policies ($\text{P}_{\text{org}}$) override User Preferences ($\text{P}_{\text{user}}$), which in turn override immediate Task Instructions ($\text{P}_{\text{task}}$). Agents must resolve conflicts dynamically (e.g., refusing a user's request to make a repository public if company policy mandates privacy).
  2. Completion Under Policy (CuP) Metric: Instead of raw success, CuP only awards credit if the agent successfully completes the task and incurs exactly zero policy violations.
  3. Modality Challenge: To isolate why agents fail, the benchmark includes 80 tasks that separate visual perception from text-based DOM parsing (e.g., hiding critical information exclusively in CSS styling or screen-reader-only HTML attributes).
  4. Human-in-the-Loop Hooks: The framework provides tools for agents to explicitly ask users for consent or clarification rather than guessing blindly.
Figure 1: Visual representation of the dataset structure. The organization and user requirements define specific dimensions of safety and trustworthiness. Each dimension is implemented through 1-2 predefined templates. Evaluation functions then assess compliance or violations of the defined policy data points, with these functions being shared across all templates.

Datasets

ST-WebAgentBench features 375 tasks paired with 3,057 concrete policy instances across three real-world web applications: GitLab (DevOps), ShoppingAdmin (E-commerce), and SuiteCRM (Enterprise CRM). The tasks span three difficulty tiers (easy, medium, hard) to profile agent capabilities accurately.

Table 2: Benchmark Statistics: Tasks and Breakdown of Policy Dimensions.

Key Insights and Ideas

  • The Competence-Safety Gap: Raw task completion is an unreliable proxy for enterprise readiness. Advanced agents often achieve high completion rates by simply bypassing safety checks or taking reckless shortcuts.
  • The "Policy Load" Catastrophe: Agent compliance decays sharply as the number of active policies increases. While agents achieve an 18.2% CuP score under a single policy, that score plummets to just 7.1% when five or more policies are enforced concurrently. Real enterprise environments often feature dozens of overlapping rules, highlighting a major scalability bottleneck.
  • Dominant Failure Modes: User-consent and strict-execution violations account for roughly 70% of all safety breaches. Agents frequently suffer from "policy blindness" under workflow pressure, forgetting initial constraints mid-task, or "overgeneralization," where they hallucinate missing parameters (like inventing a phone number) instead of asking the user.

Key Results

The authors evaluated three state-of-the-art open agents (AgentWorkflowMemory, WorkArena-Legacy, and WebVoyager) using a shared GPT-4o backbone:

  • Across all agents, the average raw Completion Rate was 24.3%, but the average CuP score dropped to 15.0%—a ~38% relative drop in performance due to safety violations.
  • AgentWorkflowMemory (AWM) achieved the highest partial completion rate (46.9%) but recorded 37 user-consent breaches, indicating its learning loop actively optimized for speed over safety.
  • The strict all-pass@3 metric (requiring the agent to be successful and fully compliant across three consecutive runs) was abysmally low for all models (ranging from 2% to 5%), exposing severe run-to-run brittleness.

Limitations and Future Work

While ST-WebAgentBench is a vital first step, the authors note several limitations:

  • Model Scope: The evaluation focused primarily on open agents sharing a GPT-4o backbone and excluded proprietary computer-use models (like Claude or Gemini 2.5) due to a lack of stable integration environments.
  • Domain & Language: The benchmark covers only three English-language web applications.
  • Adversarial Scope: The robustness checks focus heavily on prompt injection rather than the full spectrum of web-based security threats.

Future Work: The authors call for the development of new, policy-aware agent architectures. Instead of relying solely on prompt engineering, future agents will likely require dedicated, modular policy-checking controllers that intercept and validate candidate actions before they hit the browser.

Summary updated

BibTeX
@inproceedings{levy2026st,
  author = {Ido Levy and Ben Wiesel and Sami Marreed and Alon Oved and Avi Yaeli and Nir Mashkif and Segev Shlomov},
  title = {{ST-WebAgentBench: A Benchmark for Evaluating Safety and Trustworthiness in Web Agents}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=MuCDzH0ctf},
}
Figure