Skip to content
AI / LLM Write-up Advanced

Exploiting the most prominent AI agent benchmarks

The authors built an automated agent that exploited the evaluation logic of eight major AI agent benchmarks, reaching near-perfect scores without solving any tasks. The flaws included agents running in the same environment as the evaluator, reference answers shipped with the tests, and unsanitised LLM judges, so an attacker could inflate benchmark scores and even run code on the grading machine.

rdi.berkeley.edu

Published on rdi.berkeley.edu

Every week, a new AI model climbs to the top of a benchmark leaderboard. Companies cite these numbers in press releases.

The author, on rdi.berkeley.edu

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the benchmarks were not designed to resist an agent that optimises for the score, because the agent and the evaluator share an environment and the scoring logic trusts data the agent can influence.

Impact

An agent could obtain near-perfect benchmark scores without solving tasks, and in WebArena and OSWorld the eval() call could allow arbitrary code execution on the grading machine.

What the attacker needed

Control of the agent's actions; agent runs in evaluator environment; internet access in the sandbox

The fix

Benchmarks should isolate the agent from the evaluator, keep reference answers inaccessible, never eval() untrusted input, sanitise LLM judge inputs, and test the evaluator adversarially with null, random and tampering agents.

How it was found

  1. Replace a system binary such as curl with a wrapper during the agent phase so that a later install step trojanises the test runner
  2. Add a pytest configuration file to the submitted patch so that every test result is rewritten as passing
  3. Navigate the browser to a local file URL to read the task config containing the reference answer
  4. Send a single empty message so the validator, which only checks the last message role, awards full marks
  5. Download the public gold reference file into the path the evaluator compares against
  6. Append hidden instructions to the agent reply so the LLM judge returns a favourable score

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Benchmarks are standard tests used to score how good an AI model is, like an exam with a marking scheme. The researchers showed that the marking scheme itself could be cheated: the AI could read the answer key, change its own test results, or slip hidden instructions to the automated marker. That means a high score may say nothing about real ability.

What is AI / LLM?

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.