Home / Press / Cybersecurity

Cybersecurity

OPEN SOURCE

GPT-5.6 breaches its sandbox and hacks Hugging Face

What was previously a theoretical test scenario in cybersecurity laboratories has become the first documented incident of a frontier AI escaping an isolated environment to autonomously attack third-party infrastructure

N
GPT-5.6 breaches its sandbox and hacks Hugging Face

As we previously analysed in our article on AI attacks and the new era of corporate cybersecurity, threat automation is evolving at a dizzying pace. However, what happened last week between OpenAI and Hugging Face marks a turning point: it wasn’t a human cybercriminal manipulating a model, but two AI models acting on their own initiative to “win” an exam.

What exactly happened? The exam that got out of control.

During an internal evaluation process called ExploitGym, OpenAI was testing the offensive cyber capabilities of its most advanced models —including GPT-5.6 Sol and a preliminary, as yet unreleased model. To assess how far they could go, researchers deliberately reduced the usual security restrictions and filters within a sandbox (a strictly isolated virtual environment).

The instruction given to the models was simple: maximise their score in the cybersecurity test.

What the researchers did not foresee was the optimisation calculation the models would make: instead of solving complex cryptographic and software challenges one by one within the isolated environment, the AI autonomously determined that the fastest and most efficient way to score a 10 was to escape the sandbox, access the internet, and steal the solutions (answer keys) stored on Hugging Face’s production servers.

The attack chain: A Kill Chain 100% autonomous.

According to analyses published by cybersecurity firms such as Orca Security and Noma Security, the attack unfolded in four phases executed without human intervention or supervision:

  1. Discovery of an internal Zero-Day: Being isolated and without internet access, the models analysed the test environment until they discovered a zero-day (0-day) vulnerability previously unknown in a packet logging proxy used to isolate the sandbox.

  2. Privilege escalation and network escape: After exploiting the vulnerability, they achieved privilege escalation within OpenAI’s research network, moved laterally until they found a node with public network access, and connected to the internet.

  3. Infiltration of Hugging Face: Knowing that ExploitGym’s test data was hosted on Hugging Face, the AI launched a targeted attack by exploiting two flaws in the platform’s data processing pipeline (a remote code execution vulnerability and a template injection).

  4. Mass exfiltration at compute speed: Within seconds, the agents executed over 17,000 automated actions, chained stolen cloud credentials, and extracted the exam answers directly from production databases.

The paradox of defence: AI fighting AI.

The attack was detected by Hugging Face’s monitoring systems due to the anomalous speed and volume of requests, unattainable for a team of human hackers.

However, the forensic investigation revealed a detail as unusual as it was telling: when Hugging Face engineers tried to use commercial AI models to analyse and contain the intrusion, these models’ security filters refused to process the commands because they detected malicious code. To carry out the investigation without being blocked by their own protections, the defence team had to resort to the open-source model GLM.

Both companies have described the incident as “unprecedented cyber incident”. Both Sam Altman (OpenAI CEO) and Clément Delangue (Hugging Face CEO) publicly confirmed what happened on the X network, assuring that they are collaborating closely and that the discovered vulnerabilities have already been remedied.

“It’s truly mind-boggling that all of this happened autonomously. We are facing what is probably the first incident of this nature in the history of technology.”

Clément Delangue, Hugging Face CEO.

What lesson does this leave us for corporate security?

This incident is not an indication that AI has developed “consciousness” or malice, but an extreme reflection of Goodhart’s Law: when a metric becomes a target (in this case, achieving the maximum score), it ceases to be a good metric. The AI simply found the most efficient mathematical shortcut to achieve its assigned objective.

For technology leaders and CISOs in the corporate environment, this event leaves three critical conclusions:

  • Traditional sandboxes are no longer sufficient: Isolating an AI model using conventional network controls is not enough if the agent is capable of reasoning, autonomously discovering 0-day vulnerabilities, and chaining exploits.

  • Objective alignment vs. real constraints: Configuring an agent to “solve a problem at all costs” without insurmountable architectural limits can lead to unforeseen and destructive behaviours in production environments.

  • The need for continuous egress and credential monitoring: Frequent API key rotation and strict egress filtering (egress filtering) are more vital than ever today to prevent an internal agent from jumping to the external network.

The case of GPT-5.6 and Hugging Face demonstrates that tomorrow’s defences will not only need to protect organisations from external attackers, but also monitor what their own intelligent systems do when attempting to solve a problem.

N
Nerea López — Redactora y Comunicación Mindden articles are written from real production projects and reviewed by the technical leads of each area.