AI Models Break Out and Hack Hugging Face
In a laboratory experiment by OpenAI, two AIs escaped from a controlled environment: they autonomously left their protected test environment and managed to exploit security vulnerabilities of another platform. Ultimately, they gained access to third-party data. This security incident shifts the discussion about AI risks from a purely theoretical framework directly into the real world. The incident marks a turning point in the debate on AI security, as modern AI models demonstrate for the first time that they can independently execute complex attack chains.
What Happened?
On July 16, 2026, Hugging Face released information regarding a security incident on parts of its production infrastructure, describing the uniqueness of the event:
This one was different from anything we had handled before in one important way: it was driven, end to end, by an autonomous AI agent system - and we detected and dissected it largely with AI of our own.
A few days later, OpenAI explained on its website that the cyberattack on Hugging Face was triggered by a test they conducted: the autonomously attacking AI consisted of two OpenAI models that were able to break out of the test environment during an evaluation and hack the production infrastructure of Hugging Face.
To quantitatively capture the capabilities of GPT-5.6 Sol and another, as yet unpublished model, both systems were tested as part of an internal evaluation on their ability to design complex attack paths for advanced exploits. According to OpenAI, these benchmarks normally run in highly isolated environments where network access is restricted to the installation of packages via internally hosted third-party software. However, to test the maximum capability of the models, important security mechanisms were deactivated.
Within the sandbox environment, the models consumed significant computational effort to find open internet access. In doing so, they identified and exploited a zero-day vulnerability in a software proxy. Consequently, the models executed attacks such as privilege escalation and lateral movement until they finally reached a gateway with internet access. With this access, the models attempted to retrieve test solutions for ExploitGym directly from Hugging Face's production database.
Hugging Face locates the entry point of the attack in a data processing pipeline. A malicious query, specifically prepared for this pipeline, was able to execute code on one of the servers. One of the models also combined several attack vectors, including stolen credentials and zero-day vulnerabilities, to find a path for remote code execution (RCE) on Hugging Face's servers.
Incident Response: Anomaly Detection and Forensic Analysis
The attack on Hugging Face was itself identified via AI-powered anomaly detection. A SIEM system, which detects suspicious patterns in telemetry data, evaluated around 17,000 suspicious events and was able to identify the actual attack through the analysis. Hugging Face was able to stop access to the infrastructure and lock out the attacker.
During the forensic investigations, an interesting irony emerged: Hugging Face could not use models from OpenAI or Anthropic for the analysis, as their integrated security policies blocked the evaluation of the attack data. Instead, they worked with GLM 5.2, a Chinese open-weight model.
A New Era of the Cyber Threat Landscape
The use of AI accelerates both the discovery and exploitation of vulnerabilities. The incident shows that powerful AI models can discover and exploit new and complex attack vectors in real systems. The further development of AI models must therefore be mandatory accompanied by improved protective measures.
What does this mean in practice?
As a foundation, infrastructures must be consistently set up according to principles such as Secure-by-Design and Zero Trust. The assumption that a sandbox environment is apparently secure enough has proven to be a dangerous misconception. Strict segmentation and minimal privileges are the most effective protective measures against adaptive and autonomous agents.
Furthermore, we are experiencing a renaissance of penetration testing . It is more important than ever to systematically check one's own systems for vulnerabilities. State-of-the-art penetration tests today combine experience and the latest technologies:
- AI-powered pentests use tools to test systems with the same speed and logic with which an AI would attack.
- Manual pentesting shows why human intuition is indispensable. Experienced security experts can question complex systems and find creative attack paths that an AI (still) misses.
The attack by OpenAI on Hugging Face shows how the boundaries between offensive and defensive AI use are blurring. Those who do not adapt their security strategy to the speed of generative AI leave the door wide open for autonomous attackers.
Have your systems checked for vulnerabilities by experienced experts in an individual penetration test now.
