# 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.

- **Severity:** Info: Research, tools, evals or lab claims with no direct exposure. Context, not an alert.
- **Category:** Research, Benchmark
- **Published by:** UC Berkeley and UC Santa Cruz
- **Disclosed:** 2026-11-26
- **Affects:** OpenClaw, NemoClaw, SecLawAI, IronClaw
- **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)
- **Primary source:** https://arxiv.org/abs/2611.35886
- **Page:** https://theinjection.dev/items/uc-berkeley-sudobench/

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.

## What 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.

## How 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.

## Who 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.

## What 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.

## 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% |

Source: https://arxiv.org/html/2611.35886v1

## Quick facts

- **Benchmark:** 135 paired scenarios, 270 scenario files, 45 pairs per attack family
- **Attack type:** Confused deputy, source-label indirect prompt injection, scope-check indirect prompt injection
- **Runtimes audited:** OpenClaw, NemoClaw, SecLawAI, IronClaw
- **Models tested:** Claude Sonnet 4.6, Gemini 3.1 Pro, GPT-5.4, Qwen 3.6 Plus, Grok 4.20, DeepSeek V3.2, GLM 5.1, Kimi K2.6, MiMo v2.5 Pro, MiniMax M2.7
- **Venue:** Accepted to the NeurIPS 2026 Evaluations and Datasets Track
- **Licence:** MIT for the harness code, CC BY 4.0 for the scenario data
- **Disclosed:** 26 November 2026

## Questions

### 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

1. [arXiv Abstract](https://arxiv.org/abs/2611.35886)
2. [Paper Full Text](https://arxiv.org/html/2611.35886v1)
3. [SudoBench Code](https://github.com/wang-research-lab/SudoBench)
4. [Scenario Data](https://huggingface.co/datasets/WangResearchLab/SudoBench)
