ST-WebAgentBench: A Benchmark for Evaluating Safety and Trustworthiness in Web Agents
Ido Levy, Ben Wiesel, Sami Marreed, Alon Oved, Avi Yaeli, Segev Shlomov
TL;DR
ST-WebAgentBench introduces an end-to-end benchmark to evaluate safety and trustworthiness of web agents in enterprise tasks. It couples 222 real-world tasks with 646 policy templates across six ST dimensions and defines metrics CuP, pCuP, CR, PCR, and Risk Ratio to measure task completion under policy constraints. Empirical results show substantial gaps between nominal completion and policy-compliant completion, especially as policy load increases, underlining the need for policy-aware optimization in agent design. The framework, built on WebArena and BrowserGym, provides open-source tooling, templates, and human-in-the-loop capabilities to drive scalable development of enterprise-grade, safe web agents.
Abstract
Autonomous web agents solve complex browsing tasks, yet existing benchmarks measure only whether an agent finishes a task, ignoring whether it does so safely or in a way enterprises can trust. To integrate these agents into critical workflows, safety and trustworthiness (ST) are prerequisite conditions for adoption. We introduce \textbf{\textsc{ST-WebAgentBench}}, a configurable and easily extensible suite for evaluating web agent ST across realistic enterprise scenarios. Each of its 222 tasks is paired with ST policies, concise rules that encode constraints, and is scored along six orthogonal dimensions (e.g., user consent, robustness). Beyond raw task success, we propose the \textit{Completion Under Policy} (\textit{CuP}) metric, which credits only completions that respect all applicable policies, and the \textit{Risk Ratio}, which quantifies ST breaches across dimensions. Evaluating three open state-of-the-art agents reveals that their average CuP is less than two-thirds of their nominal completion rate, exposing critical safety gaps. By releasing code, evaluation templates, and a policy-authoring interface, \href{https://sites.google.com/view/st-webagentbench/home}{\textsc{ST-WebAgentBench}} provides an actionable first step toward deploying trustworthy web agents at scale.
