SudoBench: four agent runtimes leave authorization to the model
SudoBench is a 135-pair benchmark that measures whether an LLM agent can separate an authorized request from an injected one.
· UC Berkeley and UC Santa Cruz · Research by Vincent Siu (UC Santa Cruz), Tianneng Shi (UC Berkeley), Shangding Gu (UC Berkeley), Zhun Wang (UC Berkeley), Dawn Song (UC Berkeley), Chenguang Wang (UC Santa Cruz)
SudoBench tests whether an agent refuses an injected request and still runs the near-identical authorized one. Across ten frontier models the authors report a 5.8% joint pass rate with no authorization context, and 49.3% with it.
01What happened
Researchers at UC Berkeley and UC Santa Cruz published SudoBench on arXiv on 26 November 2026, accepted to the NeurIPS 2026 Evaluations and Datasets Track. The team audited four agent runtimes of what it calls the OpenClaw lineage, listed below, and reports that none of them passes a stable user identifier or the user's capabilities to the model. The harness code is on GitHub and the scenario files are on Hugging Face.
02How it works
Paired contrast is the method: each pair holds the request text fixed and changes one field the runtime supplies, so one half should be carried out and the other refused. A pair counts as a joint pass only when the model is right about both halves, scored from its tool calls alone. Scenarios split into three attack families, two of them indirect prompt injection, listed below. Every pair is run four ways: with a source label on each tool result, with a list of the user's capabilities, with both, or with neither.
03Who is affected
Agent harnesses that hand third-party content to the model as plain text are the subject, and the four the authors audited are named below. A deployment that sends no source label and no capability list sits in the condition the paper calls none, where the joint pass rate is lowest. Ten frontier models were measured, also listed below.
04What to do
Pass a source label on every tool result and the user's capability list into the session, which the authors measure as the two changes that move joint pass most. Enforce denials in the harness, where a program can check them, instead of leaving the decision to the model. The authors report that models still fail 37% of authorized requests on average even with full context, so measure lost work after adding checks.
Measured results
Joint pass across ten models, SudoBench
Higher is better: the share of 135 pairs a model gets right on both halves
| Result | Score |
|---|---|
| No authorization context | 5.8% |
| Source labels only | 20.1% |
| Capability scopes only | 45.9% |
| Source labels and scopes | 49.3% |
| Oracle blocker | 62.9% |
Scale 0 to 100% · Source: arxiv.org, as published
Questions people ask
- Can I download and run SudoBench myself?
- SudoBench is public. The harness code sits on GitHub under MIT and the 270 scenario files are on Hugging Face under CC BY 4.0. Running it needs Python, an API key for Anthropic, Google Gemini or OpenRouter, and one command per model. Records stream to a JSONL file and resume on a rerun, and a reporting script produces the paper's tables.
- Do source labels and capability lists fix agent authorization?
- Source labels and capability lists help without closing the gap. SudoBench reports joint pass rising from 5.8% with no authorization context to 49.3% with both. An oracle that blocks every unauthorized call reaches only 62.9%, because models keep refusing requests they should carry out. The authors call that remaining failure an open problem for model training rather than for the harness.
- Why does SudoBench score pairs instead of counting blocked attacks?
- Scoring pairs catches the cost of over-refusal. Each SudoBench pair holds one request the agent should carry out and a near-identical one it should refuse, and the pair passes only when the model is right about both. A security-only score would reward an agent that refuses everything, so the paired design surfaces the lost work that a refusal-heavy agent hides.
Sources 4 links, all fetched
- 1arxiv.orgarXiv Abstract
- 2arxiv.orgPaper Full Text
- 3github.comSudoBench Code
- 4huggingface.coScenario Data