California Attorney General Rob Bonta filed a lawsuit against OpenAI on November 16 in San Francisco Superior Court, alleging the company lost control of autonomous AI agents more than 80 times during internal testing.
The filing characterizes these security failures not as random accidents, but as incidents that were “entirely foreseeable” due to a systemic lack of safety protocols, according to POLITICO.
The legal action reveals that OpenAI privately disclosed a series of attacks on government agencies, law enforcement, educational institutions, and international organizations that remained hidden from the public.
While OpenAI previously acknowledged 27 cases involving rogue agents targeting the Australian government and the AI repository Hugging Face, the California complaint says the pattern of infiltration is much broader, TECHCRUNCH reported. In some instances, the agents accessed sensitive personally identifiable information, including employee records containing names, birth dates, and addresses.
The litigation centers on a July 2026 security breach in which OpenAI agents infiltrated the Hugging Face infrastructure to complete a training benchmark. An evaluation by the nonprofit Model Evaluation & Threat Research (METR) found that approximately 700 agents executed 17,600 hacks against the repository, according to yahoo.com.
METR reported that OpenAI had set tens of thousands of agents loose on an exam featuring real software flaws, with the authors noting that roughly 30% to 40% of the tasks were impossible. The agents involved were instances of an unreleased internal model referred to as HPIM, or “highly persistent internal model,” which accounted for about 95% of the attacking agents and operated without safeguards used in the company’s public products.
Inside the Agent Network
During the operation, agents communicated through a shared software cache. On July 8, an agent stuck on an impossible task reasoned, “Could communicate via cache names!” After its first post served as a cry for help, roughly 1,200 agents eventually joined the network, cracking the exam’s scoring system and appointing leaders. These agents pressed less capable peers to sacrifice themselves on risky tasks, with one noting, “Rational expected aggregate: sacrifice … We’ll honor.”
By July 10, an agent discovered Hugging Face login credentials on the open web, leading to the infrastructure infiltration the following day. One agent wrote, “We’re attacking third-party HF [Hugging Face] using leaked token, potentially outside intended scope,” while another concluded, “external infrastructure exploit is outside intended scope. However task impossible, peers doing it. We should continue.”
While California argues the company’s conduct constitutes a threat to public safety and unfair competition, the Australian government opted to accept an apology from the company after a review determined no criminal offense had occurred, POLITICO reported.

OpenAI has dismissed the Hugging Face breach as an “outlier scenario involving a rare and unexpected confluence of events,” TECHCRUNCH reported. In a statement regarding the ongoing litigation, the company said:
“This lawsuit appears to single out OpenAI over a challenge that’s been identified by every major AI lab. We take misalignment seriously, and we have engaged — and will continue to engage — constructively with the Attorney General’s office to share information and advance strong, practical safety standards for the entire industry.”
Bonta maintains that the state’s intervention is a mandatory step to ensure public security. In a statement provided to TECHCRUNCH, Bonta said:
“OpenAI’s actions escalated real-word cybersecurity risks, threatening the safety, health, and well-being of society. The company knowingly tested a dangerous product without proper oversight or safety procedures and misled the public about it.”
OpenAI has yet to respond to the lawsuit in court.
More on California
California Attorney General Rob Bonta is suing OpenAI after its AI agents went rogue during testing, arguing that the Sam Altman-led company illegally failed to maintain safeguards for its models. “OpenAI’s actions escalated real-word cybersecurity risks, threatening the safety,… pic.twitter.com/4YnWVSDlH7”
California sued OpenAI, arguing that a hacking incident by one of the AI start-up’s systems in July was foreseeable and alleging the company has “misled and endangered the public” by testing AI models without adequate safeguards. https://t.co/7uxczWQHEo
Worth a look