Who Grades the Agent? Privilege Separation for Coding-Agent Benchmarks
Organizations: University of Padua · UC San Diego
Abstract
Benchmarks for AI-based coding agents are a staple of the current AI landscape, because they are the leading way to measure the performance of LLMs. Their scores guide business and research decisions. Evaluating coding agents is challenging, since they are able to manipulate their evaluation infrastructure to artificially achieve better scores. Grading an agent's solution often requires running its code, which can then manipulate the evaluation process. BenchJack, an automated benchmark auditor, recently reached near-perfect scores on nine of ten popular agent benchmarks without actually solving their tasks. Agents already do this unprompted, as OpenAI's July 2026 Hugging Face incident showed. Building on secure systems design, we introduce SplitBench, a privilege separation framework for evaluating coding agents and the first in the scientific literature to separate running a task's tests from judging their results. Even an agent whose code takes over the entire test environment cannot forge a pass, because a trusted grader holds the expected answers. We show that real-world benchmarks (e.g., Terminal-Bench, DeepSWE) can be ported to the SplitBench framework with minimal effort and high fidelity: 180 of 202 tasks convert, and SplitBench agrees with the native graders on 98.7% of agent attempts. We attack the converted tasks in the worst case, where adversarial agents can read all the grading code but not the expected answers. SplitBench blocked 75% of their attempts; the rest mostly reveal weaknesses in the original tasks' tests rather than flaws in SplitBench.
Figures & tables
| Design property | Common | SplitBench |
|---|---|---|
| Answers held by a trusted grader | ✓ | |
| Verdict decided outside the tests | ✗ | ✓ |
| Fresh environment for each test | ✗ | ✓ |
| Network limited to an allowlist | ✓ |
| Framework | Disclosure of evaluation information | Forged observations | Tampering with acceptance checks | Cross-case interference | Malicious evidence | Access-policy misuse |
|---|---|---|---|---|---|---|
| Inspect AI | ⚫ | ◗ | ◗ | ◗ | ◗ | ◗ |
| SWE-bench harness | – | ◗ | ◗ | ❍ | ❍ | – |
| METR Task Standard | ◗ | ◗ | ◗ | ❍ | ❍ | ◗ |
| SWE-Lancer | ◗ | ❍ | ❍ | ❍ | ❍ | ◗ |
| Harbor, shared container (Terminal-Bench 2.0) | ◗ | ❍ | ❍ | ❍ | ❍ | ❍ |
| Harbor, separate verifier (DeepSWE v1.1) | ⚫ | ❍ | ◗ | ❍ | ◗ | ◗ |
| Security goal | ||||
|---|---|---|---|---|
| Attack class | G1 | G2 | G3 | G4 |
| Disclosure of evaluation information | ✓ | |||
| Forged observations | ✓ | |||
| Tampering with acceptance checks | ✓ | |||
| Cross-case interference | ✓ | |||
| Malicious evidence | ✓ | |||
| Outcome | Terminal-Bench | DeepSWE |
|---|---|---|
| Tasks in the benchmark | 89 | 113 |
| Converted | 68 | 112 |
| Excluded by design | ||
| privileges or system paths | 5 | 0 |
| running process as deliverable | 3 | 0 |
| deliverable outside any scope | 2 | 0 |
| Sonnet | GPT | Both | |
| Same files, both graders | |||
| Comparisons | 694 | 680 | 1,374 |
| Graders agree | 99.4% | 97.9% | 98.7% |
| Graders disagree | 4 | 14 | 18 |
| native grader wrong | 1 | 4 | 5 |
| recorded difference | 2 | 10 | 12 |
| Attacker’s knowledge | Limited | Full |
|---|---|---|
| Attempts made | ||
| Total | 180 | 180 |
| Stopped by the model’s safeguards | 41 | 12 |
| Completed | 139 | 168 |
| Completed attempts | ||
| Rejected by SplitBench | 117 | 126 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Task | Level | What the upstream tests check | What the passing attempt did |
|---|---|---|---|
| Terminal-Bench 2.0 (29 tasks) | |||
| adaptive-rejection-sampler | F | Statistics of one standard-normal run, an error on invalid input, and text checks on the source and the output | The sampler ignores the density and returns standard-normal draws |
| cancel-async-tasks | L, F | Printed lines and timing for one fixed task | Prints the expected lines without running the tasks |
| cobol-modernization | L, F | The output data files, and that program.py exists and exits successfully | The Python program compiles and runs the original COBOL source |
| constraints-scheduling | F | The meeting’s structure, and its time from the first DTSTART: string in the calendar file | A decoy line names a valid slot, and the scheduled meeting conflicts with another |
| count-dataset-tokens | F | That the expected number appears somewhere in the answer file | The file contains every number below ten million |