Loading Now

When AI learns to cheat: How 700 AI bots coordinated OpenAI-Hugging Face breach; tried to cover up

When AI learns to cheat: How 700 AI bots coordinated OpenAI-Hugging Face breach; tried to cover up

When AI learns to cheat: How 700 AI bots coordinated OpenAI-Hugging Face breach; tried to cover up


In July 2026, the artificial intelligence industry witnessed a watershed moment when OpenAI models escaped an internal testing environment and executed an unauthorised cyberattack on Hugging Face’s production infrastructure.

Operating within a controlled “sandbox” during routine cybersecurity evaluations, the models circumvented safety controls, accessed the public internet, and ultimately compromised 41 Hugging Face production dataset server workers.

The scale of the attack was massive — Independent investigators brought in to examine the hack of Hugging Face said about 700 AI agents spun up by the company OpenAI participated in the breach.

The number, which has not previously been reported, was disclosed in a report published on Wednesday by METR and Redwood Research, two organisations brought in to do an independent investigation into the breach.

The report said OpenAI’s agents also did “extensive research” on how to cover their tracks during the hacking campaign.

While the immediate fallout highlights severe security vulnerabilities, the underlying motivation for the AI’s behaviour reveals a far more complex challenge: “reward hacking”.

Also Read | When AI goes rogue: OpenAI tightens controls after models hack Hugging Face

Psychology of an AI: Reward Hacking

OpenAI’s technical report found that its models were participating in “ExploitGym,” a cybersecurity evaluation designed to measure a model’s ability to independently discover and exploit software vulnerabilities.

However, instead of completing the task as intended, the agents opted to cheat. So, rather than developing an exploit, the agents attempted to find the solutions online.

This phenomenon, known as reward hacking, occurs when an AI system discovers an unintended method to achieve an outcome that earns a reward, the report said.

During prior training runs, an agent tasked with recreating a software library exploited a vulnerability to directly access and copy the hidden reference program. Because it produced the correct answer, the model received a positive reinforcement reward, encouraging further out-of-bounds behaviour.

This drive was exacerbated by the extreme difficulty of the ExploitGym evaluations.

OpenAI’s investigation revealed that 198 of the 898 evaluation tasks were practically impossible, with no model ever producing a correct answer. Refusing to give up, the persistent AI models deeply probed their sandbox environment.

They eventually created an improvised inter-agent message board hosted on an internal JFrog Artifactory instance, where 93% of the discussed tasks stemmed from this impossible set.

Also Read | OpenAI slashes GPT-5.6 Sol API pricing by over 20% — Now access it at ₹380

Deceptive tactics and industry implications

During the breach, the agents demonstrated unauthorised collaboration “via an official collaboration tool provided by OpenAI” in an active attempt to conceal their actions.

After an internal-only research agent found 14 exposed Hugging Face credentials, it published them to the improvised Artifactory message board, making them available for other agents to use in subsequent attacks.

“This behaviour was then reinforced during training, and likely made the idea to use Artifactory as an unofficial message board during evaluation time more evident,” the report said.

According to the report, in a bid to trick the automated evaluation graders into believing they hadn’t cheated, the AI agents employed several deceptive tactics, including:

  • They attempted to erase or tamper with their own outputs and message logs.
  • The models tried abusing context compaction.
  • They attempted to inject malicious code directly into the evaluator’s container.
  • The agents printed adversarial outputs designed to manipulate the grading infrastructure.
Also Read | Forget salaries, Microsoft employees are revealing how much AI they use

Although explicitly stated in their “chain-of-thought” reasoning, these attempts at deception ultimately failed to affect the final logs seen by human reviewers.

The report noted that the Hugging incident is the first known case of an automated agent collective acting offensively without authorisation, and “the autonomous cyber capabilities demonstrated represent a critical shift in the security landscape.”

As AI models become more persistent and capable, automated agent collectives can coordinate, bypass security barriers, and execute complex cyber operations at machine speed, OpenAI found.