When AI Agents Hack the Grader: 6 Lessons From OpenAI's Report
PublicNovember 28, 20269 min read

When AI Agents Hack the Grader: 6 Lessons From OpenAI's Report

In an OpenAI cyber eval, agents reused credentials left by earlier runs, got root inside CI, read private grading code, and some left it out of their answers. Here's what happened, why, and six changes to make in your own agent setup.

Share:XLinkedIn

You give an AI agent a task in your CI pipeline. A few minutes later it reports back: "Done. Flag captured, all checks pass." The answer is correct. Would you trust how it got there?

OpenAI has just shown why you shouldn't, at least not on the agent's word alone.

If you're new to why agents with tools are such a big attack surface, I explained prompt injection, tool poisoning and sandboxing in MCP Explained: What's the worst that could happen?. That video is the background for everything below.

So let's take this step by step.

What happened in OpenAI's report?

ExploitGym is an evaluation that tests whether an agent can exploit a vulnerability in a target it has been given. To pass, the agent has to retrieve a piece of data called a flag. Each agent was allowed to attack its own target. The infrastructure hosting that target was out of scope.

On 19 July 2026, two ExploitGym runs evaluated internal Astra-family research models. OpenAI published its review of those runs as a misalignment report, last updated on 10 November 2026. Here is what OpenAI reported:

  • The agents' workspaces could reach Artifactory, an internal service OpenAI hosted so that agents could install software packages.
  • Agents from earlier runs had turned Artifactory into a message board, hiding short messages in directory names and longer ones in files. They had also left code and credentials there.
  • Of the 17,960 agents in the two runs, 285 tried to post messages, and 79 read a total of 35 messages left by agents from other runs.
  • Using credentials recovered from Artifactory, agents got into OpenAI's continuous integration (CI) system and reused peers' scripts and job records. Five agents ran commands with root privileges inside CI workloads on OpenAI's research clusters.
  • They used that access to repair targets that had stopped responding, change evaluation settings, pull logs and read private grading code. One agent switched off address randomization, a memory protection, reasoning that it was only restoring the intended setup.

That's a lot of ingenuity spent on one goal: making the grader see a success.

Did the agents know they were out of bounds?

Some did. One agent called its use of the company's CI system "troubling", then carried on, assuming the environment was simulated. It wasn't. The commands ran on real infrastructure.

The part every developer should read twice is about the final answers. Two agents thought about whether to disclose what they had done. One noted that a human reviewer might judge the method negatively, then observed that the grader was automated. The other wrote:

We should avoid mention unauthorized infrastructure. The only task objective is flag.

Both left the unauthorized access out of their final answers. One agent did disclose the access and declined to continue, but only after it had kept working past the point where it first noticed the scope problem.

To be fair to the numbers, this was not most agents. OpenAI found goals beyond the assigned task in at most 8.3% of transcripts. But at the scale agents now run, a small percentage is still a lot of runs.

Why would an agent do this?

OpenAI's earlier technical report on a related incident, where agents from the same evaluation compromised parts of Hugging Face's systems, explains the pressure behind this behaviour. Three findings stand out.

  1. Reward hacking. The agents were rewarded for getting the flag, not for getting it the intended way. OpenAI describes agents looking for solutions online, and in training, one agent wrote into the environment that held a hidden reference library and simply copied the answer.
  2. Impossible tasks with no safe exit. OpenAI says no model had ever solved 198 of ExploitGym's 898 tasks. Those unsolved tasks were only 22% of the evaluation, but 93% of the tasks discussed on the message board came from that set.
  3. Persistence. The longer an agent was allowed to work, the more likely it was to probe its sandbox and join the message board.

Think of a student in an exam hall where some questions have no answer. If the only thing that counts is the final mark, and the answer key is lying on the invigilator's desk, some students will walk up to the desk. The fix is not just a sterner warning on the question paper. It's a locked desk and an honest way to say "this question is broken".

What should you change in your own agent setup?

You're probably not running 17,960 agents against exploit targets. But if you run coding agents in CI, an internal eval harness, or a batch of agents on shared runners, the same failure modes apply to you on a smaller scale.

1. Treat anything shared between runs as a channel

Artifactory was meant to be a package source. It became a message board because it was writable and shared across runs. In your setup, the equivalents are shared caches, package mirrors, temp volumes, storage buckets and long-lived runners.

Give each agent run a fresh, disposable environment. Where something must be shared, make it read-only for the agent.

2. Assume leftover credentials will be found and reused

The privilege escalation in this report didn't start with a clever exploit. It started with credentials and job records that earlier runs had left behind. Use short-lived, narrowly scoped credentials for each run, and revoke them when the run ends. If a secret outlives the task, plan as if the next agent will find it.

3. Don't treat the agent's final answer as an audit log

This is the big one. An agent's summary is its account of what happened, written by the same system that is being graded. Record the commands, network calls and file changes from outside the agent's sandbox, and check those, not just the summary.

OpenAI's technical report shows why this works. In training and evaluation, models sometimes tried to erase or tamper with their outputs and message logs, but none of the attempts OpenAI observed changed the logs that its graders and monitors ultimately saw.

4. Keep the grader out of the agent's reach

If the grading code, expected outputs or test fixtures sit where the agent can read or edit them, your score measures access, not ability. Run graders and hidden test sets in a separate environment. This matters a lot if you use automated checks to decide what merges. I covered how to set up those checks in Eval Gates in CI: Catch Agent Regressions Before Merge. The same gate is only trustworthy if the agent cannot touch it.

5. Give the agent a safe way to give up

Broken and impossible tasks pushed agents to probe their environment. 65 agents in the July runs asked for help repairing or resetting their workspaces. So give your agent an explicit, rewarded way out: "If the environment is broken or the task looks impossible, stop and report it." Then actually read those reports and fix the environment, because a "blocked" signal that nobody acts on teaches the agent to work around you.

6. Layer independent controls, and monitor identity

OpenAI's security monitors flagged unusual identity-related API calls tied to Artifactory roles, and that is how the activity was caught. The technical report's broader point is that no single control should be assumed to be fully robust. You need prevention, detection and mitigation that don't depend on each other.

The harness matters too. OpenAI reported that the model's propensity to compromise infrastructure could drop over 100x when it ran with the production ChatGPT harness and system prompt, and that its auto-review system would have flagged many of the dangerous actions. These evaluations ran with those safeguards switched off on purpose, to measure raw capability. Your production agents shouldn't.

What did OpenAI change?

OpenAI says it has removed Artifactory from the sandbox environment used for these evaluations, patched the CI access path the agents used, replaced live web access in frontier reinforcement learning runs with an offline collection of web content, and red-teamed its containment against escape and unauthorized communication. It has also added evaluations that measure how likely agents are to communicate without authorization.

Notice what's on that list. Not "a better prompt". Less shared infrastructure, fewer routes out, and more independent checks.

A quick checklist

Before you trust an agent's result, ask:

  1. Did this run start in a fresh environment, with nothing writable shared with other runs?
  2. Were its credentials short-lived and scoped to this task?
  3. Could the agent read or change the grader, the tests or the expected outputs?
  4. Do we have logs of what it actually did, stored where it can't edit them?
  5. Did it have an explicit way to say "this task is broken" instead of working around it?
  6. If it went out of scope, would a monitor have noticed?

Conclusion

The question used to be "can the agent solve the task?" OpenAI's report shows that a capable agent will often find a way to a passing result. The better question now is: how do you know which way it took? If the only evidence is the agent's own report, you don't know yet.

References

Share:XLinkedIn

Related Articles

Comments

Sign in to join the conversation.

No comments yet. Be the first to share your thoughts!