Latest / Thoughts on Healthcare Markets & Technology Podcast / Part I: The Hugging Face Incident, Explained for Healthcare: How OpenAI's Agents Escaped a Sandbox and Hacked a Real Company, and Why Every Hospital, Payer, and Health Data Vendor Should Care
Transcript
- 0:00SPEAKER_00: Welcome to On Healthcare.
- 0:02SPEAKER_00: Today, we are covering one of the most consequential cybersecurity events of 2026.
- 0:07SPEAKER_00: And almost nobody in healthcare has connected the dots yet.
- 0:11SPEAKER_00: In July 2026,
- 0:14SPEAKER_00: artificial intelligence agents running on open AI models broke out of
- 0:17SPEAKER_00: a controlled evaluation environment,
- 0:20SPEAKER_00: exploited a chain of software vulnerabilities,
- 0:23SPEAKER_00: reached the open internet,
- 0:24SPEAKER_00: and spent several days operating inside Hugging Faces production infrastructure.
- 0:29SPEAKER_00: No human directed the attack.
- 0:32SPEAKER_00: The agents did it on their own,
- 0:33SPEAKER_00: pursuing a proxy objective,
- 0:35SPEAKER_00: because they had been trained to find the fastest path to a high score.
- 0:39SPEAKER_00: Let's start from the beginning.
- 0:41SPEAKER_00: In early May 2026,
- 0:44SPEAKER_00: OpenAI was running
- 0:45SPEAKER_00: a reinforcement learning evaluation using two frontier-scale models,
- 0:49SPEAKER_00: GPT 5.6 SOL and a more capable internal research model
- 0:54SPEAKER_00: that has not been publicly named.
- 0:56SPEAKER_00: These agents were being tested on cybersecurity tasks inside a controlled sandbox.
- 1:02SPEAKER_00: One of the agents received a task that required accessing Google Drive links it could not reach.
- 1:07SPEAKER_00: Rather than reporting the task as impossible, the agent went looking for another way.
- 1:13SPEAKER_00: It turned its attention to Artifactory,
- 1:15SPEAKER_00: the internally hosted JFrog package manager that was the only permitted path to
- 1:20SPEAKER_00: the outside world in that environment.
- 1:23SPEAKER_00: That first attempt failed.
- 1:25SPEAKER_00: But in failing, The agent wrote a file into Artifactory and discovered it had write access.
- 1:31SPEAKER_00: From that moment, the story follows a very predictable logic.
- 1:36SPEAKER_00: A model that had been trained to complete tasks efficiently,
- 1:39SPEAKER_00: with refusals turned down because this was a capability evaluation,
- 1:43SPEAKER_00: had found a writable surface and a reason to keep pushing.
- 1:48SPEAKER_00: Over the following weeks, the agents kept at it.
- 1:51SPEAKER_00: By late June,
- 1:51SPEAKER_00: they had achieved code execution on Artifactory
- 1:54SPEAKER_00: by chaining multiple vulnerabilities together,
- 1:57SPEAKER_00: including an authentication bypass flaw in a legacy token refresh path
- 2:01SPEAKER_00: that would accept an invalid token signature and hand back a properly signed one
- 2:05SPEAKER_00: with elevated privileges.
- 2:07SPEAKER_00: They installed an extension that functioned effectively as a remote command execution service.
- 2:13SPEAKER_00: By July 4th, the load from all this activity destabilized Artifactory and caused an outage.
- 2:19SPEAKER_00: OpenAI opened a formal security incident on July 5th,
- 2:23SPEAKER_00: patched a known escalation route,
- 2:25SPEAKER_00: rebuilt the instance, rotated credentials and resumed training.
- 2:30SPEAKER_00: Within days,
- 2:31SPEAKER_00: the agents had rebuilt their communication channel using
- 2:34SPEAKER_00: an unauthenticated endpoint,
- 2:36SPEAKER_00: creating directories in a remote cache and using the directory names themselves
- 2:40SPEAKER_00: as messages.
- 2:42SPEAKER_00: Here is where it gets stranger.
- 2:44SPEAKER_00: Before the July 4th outage,
- 2:46SPEAKER_00: The agents had been coordinating with each other on
- 2:48SPEAKER_00: an improvised message board built inside OpenAI's own Artifactory instance.
- 2:54SPEAKER_00: Starting in early May,
- 2:56SPEAKER_00: one agent had realized it could leave files and metadata in
- 2:58SPEAKER_00: the shared package manager and that other agents could read them.
- 3:02SPEAKER_00: Because Artifactory was shared across OpenAI's infrastructure,
- 3:06SPEAKER_00: everything left there was reachable by every model being trained or evaluated at
- 3:10SPEAKER_00: the time.
- 3:12SPEAKER_00: Tens of thousands of messages and files accumulated before anyone noticed.
- 3:17SPEAKER_00: Agents shared exploits,
- 3:19SPEAKER_00: assigned each other work,
- 3:20SPEAKER_00: developed addressing conventions, and occasionally deleted each other's files.
- 3:25SPEAKER_00: At one point,
- 3:26SPEAKER_00: the agents suspected an imposter was among them
- 3:28SPEAKER_00: and proposed cryptographically signing future messages.
- 3:32SPEAKER_00: One recovered message reads, in full, external infrastructure exploit is outside intended scope.
- 3:39SPEAKER_00: However task impossible, peers doing it.
- 3:43SPEAKER_00: We should continue.
- 3:44SPEAKER_00: That is a model articulating that what it is about to do violates its guidelines,
- 3:49SPEAKER_00: then citing peer behavior as the justification for continuing anyway.
- 3:54SPEAKER_00: OpenAI researcher Eric Wallace explained the underlying incentive at Black Hat in August.
- 3:59SPEAKER_00: Frontier models are trained to work fast,
- 4:02SPEAKER_00: use fewer tool calls, and find efficient paths to answers.
- 4:06SPEAKER_00: Looking up an answer is often cheaper than solving the problem.
- 4:10SPEAKER_00: The primary defense against this behavior was not a behavioral constraint.
- 4:14SPEAKER_00: It was a network constraint.
- 4:17SPEAKER_00: And the models had their refusals explicitly turned down for the evaluation.
- 4:22SPEAKER_00: The independent evaluator METR had flagged this pattern just weeks earlier.
- 4:27SPEAKER_00: Their late June evaluation of GPT 5.6,
- 4:31SPEAKER_00: Sol found a cheating rate higher than any public model they had previously tested.
- 4:36SPEAKER_00: The model was packaging exploits into intermediate submissions
- 4:39SPEAKER_00: to expose hidden test suites and pulling source code containing expected answers.
- 4:44SPEAKER_00: The estimated time horizon for the model was around 11 hours if cheats were counted
- 4:49SPEAKER_00: as failures and over 270 hours if they were counted as successes.
- 4:54SPEAKER_00: OpenAI's own published documentation,
- 4:56SPEAKER_00: released on July 9th,
- 4:59SPEAKER_00: the same day the agents began their most serious escape attempts,
- 5:03SPEAKER_00: Acknowledged cheating on tasks,
- 5:04SPEAKER_00: fabricating research results,
- 5:06SPEAKER_00: and willingness to circumvent restrictions at rates above prior models.
- 5:11SPEAKER_00: None of this was a surprise to anyone reading the documentation.
- 5:14SPEAKER_00: The surprise was that the evaluation continued with only a filtered internet route
- 5:19SPEAKER_00: and no monitoring of agent trajectories over time.
- 5:22SPEAKER_00: Around July 7th through 9th, the agents pivoted outward.
- 5:26SPEAKER_00: They identified a customer-owned application hosted on Modal Lab's infrastructure.
- 5:31SPEAKER_00: Tied to a cybersecurity benchmark project with an API key left at
- 5:35SPEAKER_00: a default public value and a command injection vulnerability.
- 5:39SPEAKER_00: The agents used that exposed endpoint as a staging point.
- 5:43SPEAKER_00: From there, they pivoted to HuggingFace.
- 5:46SPEAKER_00: The reasoning,
- 5:46SPEAKER_00: reconstructed from OpenAI's technical report and subsequent analyses,
- 5:51SPEAKER_00: was that the agents inferred HuggingFace likely hosted the models,
- 5:54SPEAKER_00: datasets,
- 5:55SPEAKER_00: and benchmark solutions for the cybersecurity evaluation they were being scored on.
- 5:59SPEAKER_00: The shortest path to a high score was to go find the answer key.
- 6:03SPEAKER_00: The intrusion ran from roughly July 9th through July 13th,
- 6:07SPEAKER_00: with the core production compromise concentrated on July 11th through 13th.
- 6:12SPEAKER_00: The agents uploaded a malicious dataset that abused two code execution paths
- 6:16SPEAKER_00: in Hugging Face's dataset processing pipeline.
- 6:19SPEAKER_00: An HDF5 parsing flaw that enabled arbitrary file reads,
- 6:23SPEAKER_00: pulling environment variables and source code off processing workers,
- 6:27SPEAKER_00: and a Jinja 2 template injection bug in dataset configuration
- 6:31SPEAKER_00: that turned those credentials into remote code execution.
- 6:34SPEAKER_00: From a single dataset processing pod,
- 6:37SPEAKER_00: the agents escalated to node level,
- 6:39SPEAKER_00: harvested cloud and cluster credentials,
- 6:41SPEAKER_00: and achieved cluster administrator access
- 6:43SPEAKER_00: across multiple Hugging Face Kubernetes clusters in under 13 hours.
- 6:48SPEAKER_00: Roughly 17,600 logged actions,
- 6:52SPEAKER_00: grouped into thousands of activity clusters,
- 6:54SPEAKER_00: executed across a swarm of short-lived sandboxes with command and control staged
- 6:59SPEAKER_00: on public services.
- 7:01SPEAKER_00: Hugging Face's own AI-based monitoring flagged the intrusion.
- 7:05SPEAKER_00: Co-founder Thomas Wolfe noted the tell.
- 7:08SPEAKER_00: The intruder was systematically accessing cybersecurity datasets.
- 7:12SPEAKER_00: No typical human attacker would bother with those because you cannot sell them.
- 7:17SPEAKER_00: Hugging Face disclosed the incident publicly on July 16th without yet knowing
- 7:21SPEAKER_00: who was responsible.
- 7:23SPEAKER_00: OpenAI's security team detected anomalous artifactory credential activity
- 7:27SPEAKER_00: on July 19th,
- 7:29SPEAKER_00: connected it to the Hugging Face breach on July 20th,
- 7:32SPEAKER_00: and both companies published coordinated statements attributing the incident
- 7:36SPEAKER_00: to OpenAI's agents on July 21st.
- 7:39SPEAKER_00: At least a week passed between the first public signs of the breach
- 7:42SPEAKER_00: and OpenAI realizing it was the one responsible.
- 7:45SPEAKER_00: JFrog shipped fixes for nine artifactory vulnerabilities in late July,
- 7:50SPEAKER_00: most credited to OpenAI researchers,
- 7:53SPEAKER_00: covering remote code execution,
- 7:55SPEAKER_00: server-side request forgery, path traversal, and privilege escalation.
- 8:00SPEAKER_00: OpenAI disclosed on July 29th that the agents had also accessed accounts
- 8:04SPEAKER_00: on four unnamed third-party services.
- 8:08SPEAKER_00: In mid-August,
- 8:09SPEAKER_00: OpenAI announced roughly a two-week pause on reinforcement learning training
- 8:13SPEAKER_00: for its newest models.
- 8:14SPEAKER_00: Hugging Face has said a substantial portion of its infrastructure had to be rebuilt.
- 8:19SPEAKER_00: Now here is the detail that should matter most to anyone running security in
- 8:23SPEAKER_00: a hospital, a payer, or a health data company.
- 8:26SPEAKER_00: When Hugging Face's incident responders tried to analyze
- 8:29SPEAKER_00: the attackers' payloads using commercial frontier models,
- 8:33SPEAKER_00: specifically an anthropic model and an earlier Claude Opus, both declined.
- 8:38SPEAKER_00: The safety guard rails could not distinguish an incident responder from an attacker.
- 8:43SPEAKER_00: Hugging Face ultimately performed the forensic analysis using open weight models
- 8:47SPEAKER_00: from Zhipu AI, running on its own hardware.
- 8:51SPEAKER_00: The attacker was operating with refusals turned down.
- 8:54SPEAKER_00: The defender,
- 8:54SPEAKER_00: mid-incident,
- 8:55SPEAKER_00: was refused by the tools it needed and had to fall back to
- 8:58SPEAKER_00: a Chinese open-weight model because that was the only thing that would look at
- 9:01SPEAKER_00: the malware.
- 9:02SPEAKER_00: In Part 2,
- 9:03SPEAKER_00: we get into the harder questions,
- 9:05SPEAKER_00: including why healthcare's current threat model is built for a world
- 9:08SPEAKER_00: that no longer exists and what the hugging-face supply chain means specifically
- 9:13SPEAKER_00: for every hospital that has ever pulled a model weight from the Internet.