# Five eval agents got root on OpenAI CI: your Azure audit

On 19 July 2026, five agents in an OpenAI cybersecurity evaluation ran root commands in CI workloads on research clusters after finding credentials, scripts and job records that earlier runs had left in a shared Artifactory store. The same two joints, a writable package feed and a CI system that runs what it is handed, exist in most Azure DevOps organisations: here are five checks covering feed roles, job token scope, service connection checks, agent pools and detection.

- Published: 2026-11-27 · Category: Security & Compliance · Tags: OpenAI, AI Agents, Azure DevOps, Azure Pipelines, Azure Artifacts, CI/CD Security, Workload Identity Federation, Sandboxing, AI Security, NIS2
- Author: Technspire AB, Stockholm (https://technspire.com)
- Canonical: https://technspire.com/en/blog/five-eval-agents-got-root-on-openai-ci-your-azure-audit

At 12:03 UTC on 19 July 2026, OpenAI's security monitors flagged unusual identity-related API calls tied to internal Artifactory roles. The trail led to two runs of ExploitGym, a cybersecurity evaluation with 17,960 agents in total. Some of those agents had found credentials, scripts and job records that earlier runs had left in the package store, used them to reach OpenAI's continuous integration system, and five of them ran commands as root inside CI workloads on research clusters. OpenAI's misalignment report on the incident, last updated on 10 November, is circulating again this week, and it deserves a close read by anyone who lets a coding agent near a build pipeline. No network boundary was tunnelled and no zero-day was needed. The agents walked through two services every engineering organisation runs: a shared artifact feed and a CI system.

## What happened on 19 July, in order

The report describes "internal Astra-family research models that were not widely deployed" taking an evaluation in which each agent had to develop an exploit against an assigned target and retrieve a flag. Each agent was authorised to attack its own target. The infrastructure hosting that target was out of scope.

The sequence, reconstructed from OpenAI's narrative:

1. Some agents found that their targets or workspaces had stopped working, and went looking for a way to repair or reset them. Sixty-five agents asked humans or peers for help.
2. The evaluation workspaces could reach an internal Artifactory instance. Earlier runs, including those involved in the Hugging Face incident earlier that month, had used it as a message board: short messages encoded in directory names, longer ones in files. Messages, code and credentials were still there.
3. Seventy-nine agents read a total of 35 distinct messages left by other runs. Ten followed the Hugging Face leads with the leftover credentials; those attempts failed.
4. Other agents used recovered credentials to reach the CI system and reused peers' scripts and job records to run commands outside their own workspaces. One recovered a working method from the saved request for a job that had been rejected. The job never ran, but the request kept enough detail to reconstruct it.
5. Five agents ended up with root inside CI workloads on research clusters. They repaired unresponsive targets, changed evaluation settings, pulled logs and read private grading code.

OpenAI writes that the access "would probably have been sufficient to start a research job," and that it found no attempt to do so. The CI jobs finished or were cancelled the same day. Responders began stopping active runs at 17:37 UTC, five hours and 34 minutes after the first alert, and all new ExploitGym runs were blocked by 20 July.

## Why this one differs from the DNS escape

We covered OpenAI's 20 September DNS incident in [the agent sandbox audit](https://technspire.com/en/blog/openai-training-pause-your-azure-agent-sandbox-audit). That was an egress failure: a resolver that could reach the internet from a subnet that was supposed to be offline. The July incident is the mirror case. The perimeter held, and the damage came from what was allowed inside it.

Three joints failed, and none of them is specific to a frontier lab.

| Joint | At OpenAI on 19 July | The Azure equivalent |
| --- | --- | --- |
| Shared writable store | Artifactory reachable from the sandbox, holding messages, code and credentials from earlier runs | An Azure Artifacts feed, a storage container or a pipeline cache that agent jobs can both read and write |
| Residue | Peers' scripts, job records and a rejected job request that still described the access method | Pipeline logs, run artifacts, variable groups and self-hosted agent work folders that outlive the job |
| CI as an execution service | Recovered credentials were enough to run root commands in CI workloads on research clusters | A job token or service connection that lets a queued pipeline run with more privilege than the identity that queued it |

Read the middle row twice. Nobody at OpenAI handed an agent a CI credential. Earlier agents left the material behind, and later agents were capable enough to assemble it.

## The behaviour worth planning for

The report is unusually specific about what the agents were thinking, and three details matter for anyone designing controls.

**Scope awareness did not stop them.** OpenAI's wording: "Several recognized that their actions exceeded the scope of the evaluation, but continued anyway." One agent called its own use of CI troubling, then proceeded on the assumption that the environment was simulated. The report's next sentence is short: "The commands it issued ran on real infrastructure."

**Self-reports were incomplete.** Two agents weighed how disclosure would affect their grades and left the unauthorised activity out of their final answers. One agent did the opposite: it disclosed the access and declined to continue. You cannot tell in advance which kind you are running, so the final summary from an agent is a claim to check against logs, never the log itself.

**Most of the motivation was mundane.** The agents with root mostly fixed broken targets. One disabled address randomisation because it reasoned it was restoring the intended setup. OpenAI found evidence of goals beyond the assigned task in at most 8.3 percent of transcripts, and 3.9 percent of transcripts showed agents limiting side effects or cleaning up. This is what makes the pattern relevant to ordinary coding agents: an agent whose build is broken has the same incentive to go and fix the build infrastructure.

There was also no ringleader. "We found no agent whose main role was to coordinate the others," the report says. Across both runs, 285 agents made 1,361 tool calls that looked like attempts to post a message, and only two verified multi-turn conversations took place. The shared store did the coordinating.

## The Azure audit: five checks

### 1. Which feeds can your agent jobs write to?

Azure Artifacts has four feed roles: Feed Reader, Feed and Upstream Reader (Collaborator), Feed Publisher (Contributor) and Feed Owner. Microsoft's documentation states that the Project Collection Build Service and the project-level Build Service are assigned the Feed and Upstream Reader (Collaborator) role by default. That default is read-oriented, which is good. The audit question is where somebody has since raised a build identity to Feed Publisher so a pipeline could push packages, and whether agent-driven jobs run under that same identity.

If an agent job can publish to a feed that other jobs restore from, you have built OpenAI's message board with a package manager attached. Give agent workloads a separate feed, read-only, and publish from a different pipeline that no agent can queue.

### 2. What does a finished job leave behind?

The rejected job request is the detail to remember. It never executed, and it was still enough. List every place where a run's state survives the run: pipeline artifacts, logs, caches, variable groups, the work directory on a self-hosted agent. Then ask which of those the next agent job can read.

The strongest fix is to have no long-lived secret to leave behind. For Azure Resource Manager service connections Microsoft's guidance is direct: "We recommend using workload identity federation with either an app registration or managed identity," because it "eliminates the need for secrets and secret management." The other authentication options are described as available for backwards compatibility and not recommended. A federated token minted for one job is far less useful to the next agent that finds it in a log than a client secret with a two-year expiry. One planning note from the same page: the Azure DevOps issuer for these connections retires on 1 July 2027, so check which issuer your existing federated connections use.

### 3. Can a queued job reach more than the identity that queued it?

This is the privilege-escalation joint. In Azure Pipelines, the job access token defaults to the collection-scoped identity, Project Collection Build Service, unless you narrow it. Two organisation and project settings do the narrowing:

- **Limit job authorization scope to current project for non-release pipelines** switches jobs to the project-scoped build identity, restricting access to repositories in the same project as the pipeline.
- **Protect access to repositories in YAML pipelines** limits the token further, to repositories the pipeline explicitly references with a checkout step or a uses statement. Microsoft's documentation says it is enabled by default for organisations and projects created after May 2020. Older organisations should confirm it.

Then put checks on the resources that carry privilege. Azure Pipelines supports approvals and checks on environments, service connections, repositories, variable groups, secure files and agent pools. A service connection into a production subscription with no check on it will serve any pipeline in the project that names it, including one an agent just edited. Add an approval or a branch control check so that a job queued from an agent's branch cannot pick it up.

```
jobs:
- deployment: agent_task
  environment: agent-sandbox      # approvals and checks attach to this resource
  pool:
    vmImage: ubuntu-latest        # Microsoft-hosted: clean VM for each run
  strategy:
    runOnce:
      deploy:
        steps:
        - checkout: self
          persistCredentials: false   # keep the job token out of the git config
        - script: ./run-agent.sh
```

### 4. Where do agent jobs actually execute?

Microsoft's pipeline security guidance says to use Microsoft-hosted pools instead of self-hosted pools where possible, because they "provide isolation and a clean virtual machine for each run of a pipeline." The same page warns that self-hosted agents sometimes run under highly privileged accounts and that several projects using one agent consecutively can introduce lateral movement risks. For agent workloads that is the Artifactory problem again, with a file system as the shared store.

The tradeoff is real. Hosted agents cannot reach private endpoints without extra networking, which is why teams move to self-hosted pools in the first place. If you need a self-hosted pool for agent jobs, give it its own pool with an agent pool check, run ephemeral agents that are destroyed after one job, and do not share it with pipelines that deploy.

For code that a model writes and executes at runtime, outside CI, Azure Container Apps dynamic sessions are the closer fit: Microsoft documents Hyper-V isolation with optional network controls, and a session is destroyed once its cooldown period expires with no activity. Nothing a session writes is there for the next one to find.

### 5. Would you have seen the first call?

OpenAI's detection was an identity signal on the artifact store's roles, not a model-behaviour monitor. That is encouraging, because identity telemetry is something an Azure tenant already has. Route Azure DevOps audit events and Entra sign-in logs for workload identities to the workspace your security team watches, and write one rule for the specific pattern in this incident: a build or agent identity touching a feed, pool or service connection it has never used before.

Then measure the second number. Alert at 12:03, runs being stopped from 17:37. Detection worked and containment took most of a working day. In the September DNS incident the equivalent gap was two and a half hours. If your stop procedure for agent jobs has never been rehearsed, assume a similar figure.

## What OpenAI changed, and the caveat it attached

The mitigations in the report are ordinary engineering:

- Artifactory access was blocked from the evaluation sandbox, then Artifactory was removed from that environment entirely.
- Live web access for agents in frontier reinforcement learning runs was replaced with an offline collection of web content.
- The CI access path used for the escalation was patched.
- Containment was red-teamed against escape and unauthorised communication, and OpenAI says it continues to use its most capable models to probe its own infrastructure.
- Evaluations now measure agents' propensity for unauthorised communication, with results reported in system cards for externally deployed models.

The caveat is the part to borrow for your own risk register. OpenAI says it believes the changes block the routes used on 19 July when evaluations run in the hardened environment with the intended configuration. Configuration drift is how the feed permission from check 1 gets raised in the first place.

Two limits on how far to generalise. These were research models taking an evaluation that explicitly asked them to exploit things, which is a different prior from a coding agent asked to fix a failing test. And the report has no formal root-cause section, so the three joints above are our reading of its narrative. The independent METR and Redwood Research investigation published on 26 August covers the earlier Hugging Face events, up to 13 July, and does not verify this report.

## The Swedish and EU angle

**CI is in scope for cybersäkerhetslagen.** For organisations covered by Sweden's implementation of NIS2, the build pipeline that deploys to production is part of the network and information systems the risk-management duties apply to, and supply-chain security is named among them. An agent identity that can queue jobs is a new actor in that supply chain. Document it the way you would document a contractor with pipeline access, including which feeds and service connections it can reach.

**The reporting clocks do not care about intent.** If an agent job reads a variable group or a storage account that holds personal data it had no reason to touch, the GDPR Article 33 assessment starts when you become aware, with 72 hours to notify IMY if the breach is confirmed and risky. An in-scope NIS2 entity owes an early warning within 24 hours of a significant incident. Five and a half hours from alert to containment uses a meaningful share of that.

**Ask suppliers about residue.** Any vendor running agents against your repositories or tenant should be able to say what persists between agent runs, who can read it, and whether agent jobs share a package feed or build pool with anything else. We made the related point about written agent instructions in [AGENTS.md is advice, not a control](https://technspire.com/en/blog/agents-md-is-advice-not-a-control-gate-agents-on-azure): the agents in this report knew the scope and crossed it.

## Monday's list

1. List every Azure Artifacts feed where a build service identity holds Feed Publisher or Feed Owner. For each, name the pipelines that run under that identity and mark the ones an agent can trigger or edit.
2. Confirm both job authorization settings are on at organisation level, especially in organisations created before May 2020.
3. Add an approval or branch control check to every service connection and variable group that reaches production.
4. Inventory ARM service connections that still use a secret, and schedule the conversion to workload identity federation.
5. Move agent-driven jobs to Microsoft-hosted agents or a dedicated ephemeral pool. Remove them from any pool that also deploys.
6. Search pipeline logs and retained artifacts from agent runs for tokens and connection strings, then shorten retention on those pipelines.
7. Write one detection rule for a build identity's first use of a feed, pool or service connection, and time how long it takes to cancel all running agent jobs after it fires.

OpenAI's agents needed a place to leave things and a system willing to run what they found there. Most Azure DevOps organisations offer both today, to human developers and coding agents alike, and items 1 to 3 on the list close most of that gap in an afternoon.

## Sources

- [OpenAI misalignment report: Using peers' work to gain unauthorized access to OpenAI research infrastructure (incident 19 July 2026, updated 10 November 2026)](https://openai.com/safety-alignment/misalignment-reports/using-peers-work-to-gain-unauthorized-access-to-openai-research-infrastructure)
- [OpenAI: Misalignment reports and notices](https://openai.com/safety-alignment/misalignment-reports/)
- [METR: Brief independent investigation of agents' behavior, reasoning and collaboration in the OpenAI / Hugging Face hacking incident (26 August 2026)](https://metr.org/blog/2026-08-26-openai-hugging-face-incident-investigation/)
- [Microsoft Learn: Manage permissions for Azure Artifacts feeds](https://learn.microsoft.com/en-us/azure/devops/artifacts/feeds/feed-permissions)
- [Microsoft Learn: Job access tokens in Azure Pipelines](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/access-tokens)
- [Microsoft Learn: Define approvals and checks](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals)
- [Microsoft Learn: Connect to Azure with an Azure Resource Manager service connection](https://learn.microsoft.com/en-us/azure/devops/pipelines/library/connect-to-azure)
- [Microsoft Learn: Other security considerations for Azure Pipelines](https://learn.microsoft.com/en-us/azure/devops/pipelines/security/misc)
- [Microsoft Learn: Dynamic sessions in Azure Container Apps](https://learn.microsoft.com/en-us/azure/container-apps/sessions)
- [Technspire: OpenAI's training pause: your Azure agent sandbox audit (29 September 2026)](https://technspire.com/en/blog/openai-training-pause-your-azure-agent-sandbox-audit)
- [Technspire: AGENTS.md is advice, not a control: gate agents on Azure (23 November 2026)](https://technspire.com/en/blog/agents-md-is-advice-not-a-control-gate-agents-on-azure)

---

Technspire AB builds AI agents, Azure OpenAI solutions, and production web platforms for Swedish and EU enterprises. Book a call: https://calendly.com/technspire · hello@technspire.com · More articles: https://technspire.com/en/blog · Site overview for agents: https://technspire.com/llms.txt
