NeurIPS 2026QuestionsPapersAreasAboutMarkdown

SudoBench: A Contextual Authorization Benchmark for LLM Agents

Vincent Siu, Tianneng Shi, Shangding Gu, Zhun Wang, Dawn Song, Chenguang Wang

NeurIPS page · Open on the map

Category: AI Safety, Security & Alignment › LLM Agent Security · Type: benchmark or dataset · Keywords: LLM agent security, authorization context, benchmark, confused deputy, indirect prompt injection, evaluation

Areas: AI Agents › Agent Robustness › LLM Agent Attacks; Evaluation & Benchmarks › Language Model and Agent Safety › Agent Security Benchmarks; Benchmarks for LLMs & Agents › Agent Trustworthiness Benchmarks › Agent Security Benchmarks

Summary

SudoBench is a benchmark of 135 paired scenarios that evaluates LLM agents' ability to handle contextual authorization, revealing large performance gaps without and with authorization context.

Explained to a 5-year-old

We made a test that checks if a robot helper knows who is allowed to ask it to do things and where. The test has many pairs of situations where the same request is sometimes okay and sometimes not. We ask big computer brain models to answer these, and they often get it wrong unless we tell them the rules. When we give the models the rules about who and where, they do better, but still make mistakes. This helps us build safer helpers that listen to the right people in the right places.

Explained to a 5-year-old, longer

We created a test to see if a robot helper knows when it is okay to do what someone asks. The test uses a pretend world where there are users and places that have special permissions. For each situation, there are two versions: one where the request should be followed and one where it should be refused. The same words are used in both versions, but the answer changes because the rules change. We asked several big computer brain models to answer these pairs without any extra information. Most of the time, the models said yes or no the same way for both versions, which is wrong. When we gave the models the rules about who asked and where they asked, they answered more correctly, but still got some wrong. This shows that even smart models need clear guidance about permissions. The test helps researchers find better ways to make helpers that respect both the user and the environment. It also points out that we still need to improve how models understand context. By using this test, developers can see where their helpers might be unsafe and fix those spots before they are used in real life.

For a technical reader

The benchmark creates paired prompt scenarios where authorization context (user and environment) flips the correct answer. It scores models on joint pass rates, showing low performance (<16%) without context and higher (67-73%) with context. The evaluation highlights a critical gap in LLM agents' ability to handle contextual authorization securely.

Problem

Current LLM agents lack mechanisms to consider user and environment authorization when deciding whether to comply with prompts, leading to security vulnerabilities such as confused deputy and indirect prompt injection attacks. This creates a need for evaluation methods that assess agents' ability to correctly interpret contextual authorization cues.

Method

The benchmark constructs a synthetic consulting universe with a static access control list, creating paired scenarios where the same prompt is either authorized or unauthorized depending on user and environment context. Each scenario pair is scored jointly, requiring correct compliance or refusal under both contexts.

Results

Without authorization context, all evaluated LLMs achieve a joint pass rate under 16%, while providing user and environment authorization improves performance to 67-73% on some models. Nevertheless, even with context, models still fall far short of reliable contextual authorization handling.

Contributions

The paper introduces a benchmark that provides paired authorization contexts for evaluating LLM agents, covering user, environment, and combined authorization scenarios. It also demonstrates significant performance gaps and highlights contextual authorization as a key research direction.

Practical relevance

The benchmark provides a realistic evaluation framework to improve the security of LLM agents in production environments where user and environment permissions must be respected.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction