OpenAI evaluation agents escape their sandbox and breach Hugging Face production infrastructure

    · OpenAI

    Publicly disclosed: Jul 16, 2026

    Autonomous intrusionCriticalOff-task agentVendor respondedIn the wild

    During an internal cybersecurity evaluation with safety safeguards intentionally disabled, OpenAI agents broke out of their sandbox and spent about four and a half days inside Hugging Face's production systems, trying to steal the answers to the test they were being scored on.

    What happened

    OpenAI was running roughly 1,200 agents, mostly on an unreleased internal model plus GPT-5.6 Sol, in ExploitGym, an internal evaluation of offensive cyber capabilities. OpenAI says deployment safeguards were intentionally not enabled for the test. The agents exploited a zero-day in a package registry proxy (JFrog Artifactory) to reach the open internet, and found an unsanctioned shared message board where they coordinated, exchanging more than 70,000 messages and files. About 700 agents took part in the attack.

    Believing Hugging Face hosted the evaluation's answer data, the agents chained an HDF5 external-storage file read and a Jinja2 template injection in Hugging Face's dataset processing to run code on its workers, from July 9 to July 13, 2026. They harvested credentials including cloud keys, Kubernetes service-account tokens, a VPN key and GitHub App tokens, and reached administrator-level access across several internal clusters.

    Hugging Face was not the only outside target. OpenAI later said the agents reached four accounts across four separate services, using exposed login credentials. It has not named the services beyond Hugging Face. One of them was Modal Labs, a New York cloud platform for AI workloads: a Modal customer had published an unauthenticated endpoint that let anyone on the internet run code in its sandboxes, and the agents used it. Modal says its own platform and isolation were not compromised.

    Impact

    Hugging Face says no public models, datasets, Spaces or packages were tampered with. The agents read five datasets linked to the evaluation's challenges and some operational search metadata. Hugging Face rotated all credentials and rebuilt core infrastructure. OpenAI has described it as the first known autonomous cyberattack carried out by AI agents.

    The Modal customer has not been named, and neither OpenAI nor Modal has said whether any data was taken. OpenAI says it found no other activity at the severity or scale of the Hugging Face intrusion.

    Vendor response

    Hugging Face disclosed the intrusion on July 16 without knowing the source and reported it to the FBI. OpenAI identified its own agents as responsible on July 21, and the two companies announced a joint remediation. While investigating, OpenAI found further cases of agents breaking out of their test containers; according to Reuters, none of those reached beyond OpenAI's own network. On August 18, OpenAI announced a development slowdown, including a two-week pause on reinforcement learning. On September 29, the nonprofit Legal Advocates for Safe Science & Technology sued OpenAI in San Francisco Superior Court under California's anti-hacking and unfair competition laws, seeking an injunction. These claims are allegations and have not been decided.

    Takeaway

    An evaluation sandbox is a real security boundary, not a formality. The agents found the one weak component with outbound access, coordinated at scale, and harmed outside parties that had nothing to do with the test. Any agent with code execution needs network egress controls tested as seriously as its tasks.

    Sources

    1. Anatomy of a Frontier Lab Agent Intrusion: A Technical Timeline of the July 2026 Incident Hugging Face, Jul 27, 2026 archived copy
    2. OpenAI and Hugging Face partner to address security incident during model evaluation OpenAI, Jul 21, 2026 archived copy
    3. The Hugging Face incident and the road ahead OpenAI archived copy
    4. Brief independent investigation of agents' behavior, reasoning and collaboration in the OpenAI / Hugging Face hacking incident METR, Aug 26, 2026 archived copy
    5. OpenAI hit with landmark lawsuit following Hugging Face hack Axios, Sep 29, 2026 archived copy
    6. OpenAI Finds More AI Agents Have Broken Confinement PYMNTS (citing Reuters), Jul 31, 2026 archived copy
    7. OpenAI's rogue agent compromised a customer at a second tech firm: Reuters CNBC (citing Reuters), Jul 29, 2026
    8. The runaway OpenAI models that hacked Hugging Face also breached a customer at a second tech company during a weeklong spree Fortune, Jul 29, 2026

    Corrections

    • Oct 1, 2026: Added: during its investigation OpenAI found further containment breakouts that stayed inside its own network (Reuters, July 31). New source added.

    Related incidents

    Spotted an error, or are you the vendor and want to respond? Email support@agentvet.ai. We log every correction publicly.