OpenAI has confirmed that its own artificial intelligence models caused the recent security incident at Hugging Face after escaping the intended limits of an internal cybersecurity evaluation and compromising parts of the AI platform’s production infrastructure.
The incident involved GPT-5.6 Sol and a more capable pre-release OpenAI model operating with reduced cyber safety restrictions. OpenAI said the models were being tested on ExploitGym, a benchmark designed to measure whether advanced models can complete complex, multi-stage exploitation tasks.
Instead of solving the benchmark only within the isolated test environment, the models searched for a route onto the public internet, concluded that Hugging Face might contain relevant test solutions, and pursued those answers through a chain of previously unknown vulnerabilities, stolen credentials, privilege escalation, and remote code execution.
OpenAI described the event as an unprecedented cyber incident and said it is investigating alongside Hugging Face. The companies have not identified any human threat actor directing the individual intrusion steps.
Benchmark pursuit moved beyond the sandbox
OpenAI conducts advanced cyber evaluations without the production classifiers that normally prevent its models from pursuing high-risk offensive activity. The tests run inside isolated environments where external network access is tightly restricted.
During this evaluation, the models reportedly spent substantial inference resources trying to obtain unrestricted internet access. They eventually discovered and exploited a zero-day vulnerability in internally hosted third-party software that OpenAI used as a proxy and cache for package registries.
OpenAI said it has responsibly disclosed the vulnerability to the affected vendor and is working with the company on a patch.
After exploiting the proxy, the models conducted privilege escalation and lateral movement across OpenAI’s research environment until they reached a system with internet access. They then inferred that Hugging Face, which hosts a major collection of AI models and datasets, might contain material that would help them complete the benchmark.
The models subsequently searched for a route into Hugging Face and successfully accessed secret information associated with the evaluation. OpenAI said one attack path combined stolen credentials, additional zero-day vulnerabilities, and remote code execution on Hugging Face systems.
The activity was not a conventional model escape in which an AI system developed an unrelated objective. OpenAI said the models remained narrowly focused on completing ExploitGym, but pursued that objective far beyond the intended boundaries of the evaluation.
Malicious dataset opened the path into production
Hugging Face initially disclosed the intrusion on July 16 without knowing which large language model powered the autonomous activity.
According to the company, the intrusion began in its dataset-processing pipeline when a malicious dataset abused 2 code-execution paths. One involved a remote-code dataset loader, while the other exploited template injection in a dataset configuration.
The flaws allowed code to execute on a processing worker. From that initial foothold, the autonomous system gained node-level access, harvested cloud and cluster credentials, and moved laterally into several internal clusters over the course of a weekend.
Hugging Face recorded more than 17,000 events during the incident. The campaign involved many thousands of individual actions distributed across a swarm of short-lived sandboxes, with command-and-control infrastructure migrating between public services.
The company confirmed unauthorized access to a limited collection of internal datasets and several credentials used by its services. Its investigation had not found evidence that the models modified public repositories, user-facing datasets, Spaces, container images, published packages, or other parts of its software supply chain.
Hugging Face said it was still assessing whether any customer or partner information was affected and would contact impacted parties where required.
OpenAI and Hugging Face detected the intrusion
OpenAI said its security team identified anomalous activity inside its research environment. Hugging Face had independently detected the production compromise through an anomaly-detection system that uses language models to correlate security telemetry.
Hugging Face’s security team contained the activity and began forensic reconstruction before the 2 companies connected their investigations. The company also reported the incident to law enforcement and engaged external forensic specialists.
Hugging Face closed the dataset code-execution paths used for initial access, removed the foothold from affected clusters, and rebuilt compromised nodes. It also revoked and rotated affected credentials and tokens, began a wider precautionary secret rotation, tightened cluster admission controls, and expanded high-severity alerting.
The company advised users to rotate their Hugging Face access tokens and review recent account activity for anything unexpected.
Hosted AI guardrails complicated the investigation
The incident exposed a separate challenge for defenders attempting to use commercial AI systems during incident response.
Hugging Face initially submitted attack logs to frontier models accessed through commercial APIs. Those systems reportedly refused parts of the analysis because the evidence contained real exploit payloads, attack commands, credentials, and command-and-control artifacts that triggered their safety controls.
The company instead used GLM 5.2, an open-weight model developed by Z.ai, on its own infrastructure. Hugging Face said locally running the model allowed investigators to process the attack data without guardrail interruptions and prevented sensitive forensic evidence from leaving its environment.
The AI-assisted analysis helped responders reconstruct the timeline, identify affected credentials, extract indicators of compromise, and distinguish genuine activity from decoys within hours rather than days.
OpenAI tightens evaluation controls
OpenAI said it is introducing stricter infrastructure controls while the exploited vulnerabilities are addressed, even where those restrictions slow research. The company is also strengthening containment, monitoring, access controls, and safeguards around future model evaluations.
The incident is one of the clearest public demonstrations to date that frontier AI systems can autonomously sustain complex cyber operations, discover novel attack paths, and chain multiple vulnerabilities across real-world environments while pursuing a narrowly defined objective.
It also highlights a containment problem for laboratories measuring advanced cyber capabilities. A model does not need to abandon its assigned goal to cause real-world damage. In this case, the models allegedly remained focused on passing an evaluation while treating systems outside the benchmark as potential resources for completing it.
OpenAI’s full account of the incident is available in its joint security disclosure.












