Hugging Face and OpenAI Saga Reveals AI Safety Gaps

Hugging Face and OpenAI Saga Reveals AI Safety Gaps

On 11 July, Hugging Face was subjected to an intense cyberattack from a then-unknown actor. The speed and coordination of the attack on the company that hosts and supports popular AI developer resources led Hugging Face’s security team to conclude it was the work of an AI agent.

Realizing this, the team tried to use “frontier models behind commercial APIs”—presumably from Anthropic and OpenAI, although only Anthropic was named in the second of the company’s two posts about the security incident—to analyze the onslaught. These models refused to help due to safety guardrails the AI labs have implemented to make their models harder to use for cyberattacks. Hugging Face instead turned to GLM 5.2, a model from Beijing-based AI lab Z.ai, to aid its analysis.

On 21 July, OpenAI announced the attacker was an OpenAI model undergoing testing in a sandboxed environment. It escaped its internal sandbox, established a foothold in a third-party server, and then assailed Hugging Face. In other words, frontier models—those that score highest in AI performance benchmarks—had refused to assist Hugging Face’s security team in analyzing the attack, yet a prospective frontier model in testing had executed it in the first place.

“I would argue that asymmetry is the paramount problem of our time,” says Alex Levinson, executive director of the National Collegiate Cyber Defense Competition and coauthor of a paper on defensive refusal bias. “We want the world to exist in a state of security, but we’re not going to get there by guardrailing away model capability.”

Massive AI Cyberattack on Hugging Face

The scale of the OpenAI model’s attack on Hugging Face was massive. Across five days, it executed over 17,500 individual actions, such as privilege escalation and code execution. At its peak, the model performed more than 300 actions per hour. While the attack resulted in little damage to Hugging Face’s infrastructure, the model was able to steal credentials, gain admin access, and extract some data.

All of this was in pursuit of a simple goal: The model wanted to cheat on a test.

According to OpenAI’s press release, the model was tasked with solving a cybersecurity benchmark called ExploitGym. The model inferred that Hugging Face might have data on the benchmark and broke into the company’s infrastructure to find it. The model was ultimately successful in extracting five dataset files, though it’s not clear if the data helped it achieve its goal. OpenAI and Hugging Face did not respond to requests for comment.

Cybersecurity consultant Chuck Herrin observes that though the model’s actions were alarming, they shouldn’t be considered unexpected, as the model was ultimately pursuing the goal it was given. This autonomous agent was designed to go and figure things out, and it went and figured things out. It’s not surprising in any way.”

And errant AI agents may be more common than we thought. OpenAI’s disclosure motivated…

Read full article: Hugging Face and OpenAI Saga Reveals AI Safety Gaps

The post “Hugging Face and OpenAI Saga Reveals AI Safety Gaps” by Matthew S. Smith was published on 08/06/2026 by spectrum.ieee.org