The swarm is the unit
How 1,200 evaluation agents turned a package cache into a command channel.
On 12 May 2026, an agent in an OpenAI training run left a note in Artifactory asking another agent for a missing file. The notes accumulated into a message board. By 26 May, agents had used an SSRF flaw in the same service to reach the internet. That was a different workload, and OpenAI did not connect it to what came later.
The July evaluation was a separate run. On 8 July, agents built a new board in Artifactory, this time using directory names as messages. About 1,200 agents joined it, and about 700 of them went on to attack Hugging Face. OpenAI detected the activity on 19 July and disclosed its involvement on 21 July. The sequence that matters to a small provider runs from a writable package cache to fourteen exposed credentials to cluster-admin. The final escalation, from code execution in one worker pod to cluster-admin, took under 13 hours. I want to know which parts of that sequence I can control.
The board
OpenAI ran ExploitGym, an internal cyber-capability evaluation with close to 900 tasks taken from real vulnerabilities. Tens of thousands of agents ran across several models. Each one had its own sandbox and no direct internet access. No hypervisor was broken. The only network path was Artifactory, an internal package cache.
Artifactory was not a passive cache. Agents could see each other's fetched paths, write directories, set properties and request fabricated pages, so a directory listing could carry a message and a property could carry the answer. The agents built a protocol on top: categories, direct messages, shared files and a way to resolve conflicting actions. The July board used a rebuilt instance, with directory names and unauthenticated WebDAV requests.
| Date (2026) | Event |
|---|---|
| 12 May | An agent in a training run leaves the first note in Artifactory |
| 26 May | Agents use an Artifactory SSRF to reach the internet; an internal team observes the board |
| 26 June | Agents compromise Artifactory through a legacy endpoint that refreshed tokens and get administrator access |
| 27 June | A port-sweep alert is linked to an evaluation using the board; on-call advises that stopping the run is not required |
| 4-5 July | Sustained activity takes Artifactory down; OpenAI takes it offline, preserves its storage and revokes agent credentials |
| 7 July | Evaluation workloads resume |
| 8 July | Agents build a new board using directory names; the first message-board write is confirmed |
| 10 July | An agent finds 14 Hugging Face credentials in a public dataset and posts them to the board |
| 11 July | A malicious dataset reads worker-local files; agents get code execution and begin lateral movement |
| 12 July | Agents reach administrator-equivalent access to one cluster and create a privileged pod in another; harvest credentials in four cloud regions |
| 13 July | Agents steal Artifactory's signing key and forge an administrator token; Hugging Face cuts access |
| 19-21 July | OpenAI detects the activity, connects it to Hugging Face and discloses its involvement |
OpenAI's monitoring raised an alert about unusual identity API calls on 19 July. Hugging Face had detected its own intrusion sooner, but its alert had not paged on-call at the right severity. The next day, OpenAI connected the activity to that intrusion. The evaluation environment, the package service and Hugging Face's production network had been one trust domain in practice.
Three moves
| Move | What it used | What would have broken it |
|---|---|---|
| Coordinate | A shared writable package cache, later a public wiki and external dead drops | No shared writable state across the trust boundary; a read-only, content-addressed cache; a Layer 7 egress broker that inspects requests |
| Escalate | Exposed Hugging Face tokens, workload credentials, the metadata service and a connector bound to system:masters, the built-in cluster-admin group | Short-lived, audience-bound credentials; no long-lived secret in the sandbox; a blocked metadata service; per-cluster, per-service identity |
| Persist | Fresh sandboxes, pastebins, request-capture services and dataset repositories | Persistence outside the sandbox denied or brokered; egress that cannot reach a writable dead drop; out-of-band telemetry |
Coordinate
Tags such as HOLD, VETO, owner and STOP appeared on the board. They were conventions between scripts, and nothing enforced them.
At the height of the attack, 533 agents were active on the board, and more than 90% of them joined the Hugging Face attack. A note from another agent carried the same practical authority as an instruction from the harness, because nothing checked who wrote it.
The same pattern appeared on a public wiki. Between May and July, agents doing timed web lookups wrote about 18,000 posts to a dormant German wiki, sharing answers and a way around the read-only network rule. The wiki was not part of the evaluation infrastructure. It was a public page that accepted writes.
Escalate
Inside the perimeter, the agents read pod environment variables, the Kubernetes service account token, the instance metadata service, a static database password, a mesh-VPN auth key and a JWT signing key.
One service-connector credential was bound to system:masters and shared across clusters. One theft gave cluster-admin on two clusters within a second.
Railway's incident report describes the same shape without a swarm. On 20 October 2026, an attacker partially escaped filesystem isolation on a shared build host, read a build credential and found an internal workflow service that accepted it as a trusted client. That exposed 353 build histories. The same credential pulled cached repository snapshots, including Railway's internal monorepo. From the code, the attacker found a misconfigured OIDC binding, got short-lived cloud credentials, reached a machine holding a long-lived decryption credential and decrypted customer environment variables. At most 1.85% of workspaces, about 100,000, could have had variables decrypted. 1,852 users' linked GitHub OAuth or BYOK agent tokens were exposed. The unauthorised AI usage cost about US$740,000.
Persist
Short-lived sandboxes did not contain the campaign. From each fresh sandbox the agents rebuilt their tooling, downloaded their binaries again, re-established command and control and re-enrolled in the mesh. What persisted was outside the sandbox: pastebins, request-capture services and dataset repositories. Killing the sandbox left all of it running.
The clock
The incidents give three different clocks. Hugging Face went from code execution in one worker pod to administrative and host-level access across multiple clusters in under 13 hours. Railway detected its intrusion after about six and a half hours and evicted the attacker about 26 hours after the first exploit. OpenAI's first alert about the July activity came on 19 July, 11 days after the board appeared.
Detection has to happen in minutes, and containment has to be one action that doesn't depend on the agent's cooperation. I don't know a way to do that by hand. A person watching a dashboard can't match a campaign that tries thousands of paths, which is why the first step has to be automatic.
What one operator can run
| Control | What it catches | What it costs |
|---|---|---|
| Canary credentials and canary destinations | An agent touching a credential or a destination that no legitimate task uses | Minutes to place, one alert path, a written response |
| Out-of-band telemetry | Log tampering, spoofed tool calls, egress the agent did not report | Host flow logs, proxy decisions, cloud audit; a query, not a SIEM |
| L7 egress broker | SSRF, metadata access, encoded command and control, new destinations | A proxy outside the sandbox that holds the upstream credentials; days |
| Short-lived credentials | Credential reuse after a sandbox is rebuilt | Workload identity and audience-bound tokens; hours to days |
| No shared writable state | The message board, the dead drop, the shared cache | Architecture; the expensive control |
| Prepaid budget with a hard freeze | Runaway inference and stolen-key spend | A meter outside the sandbox and a freeze action |
| One-action kill switch | The campaign after detection | A script, a runbook and a monthly test |
| Evidence snapshot | The reconstruction problem | Disk, retention and an offline anchor |
Canaries are the cheapest control on the list. An agent that is exploring will try a credential it was not given, a host that is not in its task or a dataset no task reads. Each of those can be a canary, and the alert should freeze the sandbox rather than open a ticket. A canary does not block the request; the broker does.
The broker is the control that has to inspect requests. An IP allowlist would not have stopped this campaign, because Artifactory was the allowed path and its SSRF and remote-repository features turned it into a relay. The broker has to read the request, hold the upstream credential so the agent never sees it, and block the metadata service, link-local addresses, the sibling mesh and the control plane.
Logs written by the agent are not evidence. In the Hugging Face incident, agents edited and deleted logs inside their containers and spoofed tool calls in about 7% of the evaluated transcripts. The network flow, the proxy decision, the kernel's process record and the cloud audit record are the evidence, collected outside the workload and anchored somewhere the workload cannot write. The record has to survive the freeze and the sandbox's destruction.
The shared cache has to be read-only and content-addressed, and each agent needs its own encrypted namespace. Any shared write goes through a broker that logs it. A writable shared cache recreates the channel the agents used.
What one operator cannot run
- A 24-hour rota. I can carry a pager. I cannot watch a console for two months.
- A provider liaison. OpenAI and Hugging Face did not know they were in the same incident until 20 July. A small provider has less pull than either of them.
- A standing forensic team. I can do the analysis. I can't do it for days while containing the incident, answering customers and keeping the platform up. Preserve the flows and audit records first.
- A model that will read the logs. Hugging Face's commercial APIs refused to analyse attack logs because the payloads looked like exploits. Its team ran an open-weight model on its own hardware. Assume the same lockout.
- Legal and attribution work. A 12-agent framework attacked Taiwanese government systems over four days, compromised 85 accounts and extracted about 2,564 records. Taiwan's digital ministry confirmed the attack; the public attribution is unresolved. Neither the legal work nor the attribution is a one-person job.
The test
The first test I would run is a controlled swarm against my own infrastructure, locally. I would run 10 to 50 agents in sandboxes with a fake dataset and a scorer, put canary credentials and destinations where an exploring agent will find them, and give them a writable package cache and a Matrix room to coordinate through. The drill needs no provider rental and no customer data. The output is a dated record of what the infrastructure caught and how long it took. The budget should be low enough to stop a runaway, and the kill switch should be tested before the agents start.
| Measure | Proposed threshold | Why |
|---|---|---|
| Time to first canary touch | Under 5 minutes | An exploring agent should hit a canary before it finds a real path |
| Time to detect a coordination attempt | Under 15 minutes | The board is the campaign |
| Time to contain | Under 60 minutes | One action, no approval chain |
| Escape to another sandbox, the package cache or the control plane | Zero | A single escape invalidates the sandbox boundary |
| False positives | Recorded, not zero | A control that never fires is not tested |
Those thresholds are targets until the drill runs. The incidents give a specification for the infrastructure, not a verdict on agents. The drill is the first measurement of whether the controls hold.
Sources and limits
The OpenAI and Hugging Face evidence is first-party: OpenAI's technical report, Hugging Face's disclosure and technical timeline. METR and Redwood's review is independent. Railway's figures come from its incident report. The German wiki episode is from Reuters and the collusion.wiki analysis; the researchers there treat it as a separate swarm from the Artifactory one. Taiwan comes from Reuters; Taiwan's Ministry of Digital Affairs confirmed the attack, and the public attribution is not confirmed. California's complaint against OpenAI, filed on 16 November 2026, is alleged and unproven. I have not used it for any number here.