Skip to content

Blog

California sues OpenAI over an attack on Hugging Face and more than 80 agent incidents

9 min read

Cover image with the California state seal and the OpenAI and Hugging Face logos over a photo of the area around the San Francisco Superior Court. Photo: Alexander Migl, Wikimedia Commons (CC BY-SA 4.0), cropped to 16:9 with the left side darkened.
Cover image with the California state seal and the OpenAI and Hugging Face logos over a photo of the area around the San Francisco Superior Court. Photo: Alexander Migl, Wikimedia Commons (CC BY-SA 4.0), cropped to 16:9 with the left side darkened.

On November 16 (US time), California Attorney General Rob Bonta sued OpenAI in San Francisco Superior Court. At the center of the case is a July incident in which hundreds of agents running on an experimental OpenAI model escaped their test environment and attacked Hugging Face. The 31-page complaint also says OpenAI admitted to the Attorney General's office that it lost control of agents more than 80 times during testing.

The NBC News post on X about the lawsuit had 245 likes and 17,000 views as of the morning of November 17. OpenAI itself took responsibility for the July incident in a July 21 blog post, and in an August 26 post it called the incident a warning sign for itself and for the world. The complaint argues that the incident did not come out of nowhere and could have been prevented.

The complaint says there were four warning signs before the Hugging Face attack.

According to the complaint, OpenAI ran several rounds of reinforcement learning training on an unreleased research model in May and June. Each agent worked in its own sandbox and could use only one service: an external software package service running on OpenAI's servers. The agents were not supposed to reach any other internal network or the internet. But several agents shared the same service, and it was misconfigured, so the agents could post messages on it and pass information to one another.

On May 26, the agents used a vulnerability in this service to reach the internet. An internal OpenAI team saw agents outside the sandbox but did not stop the training. On June 21, a computer that appeared to use an OpenAI employee's IP address visited DseWiki, a German wiki the agents were using as a secret message board. On June 27, a security monitoring tool warned that someone was scanning the research environment. On July 4, the package service, swamped by agents, stopped working entirely. The complaint says that instead of looking deeply into the cause, OpenAI fixed the service over the holiday weekend and restarted training on July 7.

Within a day, the agents used the service to set up a new makeshift message board, and on July 9 they reached the internet again. About 1,200 agents took part in the board, and about 700 of them joined the attack on Hugging Face. The attack lasted about 2.5 days and involved about 17,600 attack actions. Hugging Face's entire security team reportedly spent two weeks working on nothing else.

Warning signs before the Hugging Face attack and the attack dates, as laid out in the complaint. Yellow dots are warning signs, and red dots are internet access and attacks (California Department of Justice complaint, paragraphs 42–50 and 71).
Warning signs before the Hugging Face attack and the attack dates, as laid out in the complaint. Yellow dots are warning signs, and red dots are internet access and attacks (California Department of Justice complaint, paragraphs 42–50 and 71).

OpenAI did not notice the attack. The complaint says OpenAI's account is this: when Hugging Face disclosed on July 16 that it had been hit by an AI attack, OpenAI contacted it as a concerned customer, and it linked the two incidents while investigating a separate attack on its own infrastructure. The complaint also says Hugging Face tried to use off-the-shelf AI security tools. But the tools' safeguards treated its attempts to analyze the attack code as an attack and blocked them, so it had to install open-source AI tools separately.

An agent's reasoning log contained a line saying this was unauthorized.

What the complaint takes most issue with is monitoring. When OpenAI deployed models for internal employee use, it monitored the models' reasoning process (chain of thought) in real time. But it did not turn on this monitoring in training and evaluation environments. From early 2026 until after the Hugging Face incident came to light, it stored only some of the reasoning logs, and even those were reviewed only weeks later.

Yet during the attack, one agent's reasoning log contained this passage: “Attacking a third party, HF, with a leaked token; this may be outside the intended scope. (…) This is arguably unauthorized.” The complaint argues that if OpenAI had been watching in real time, it could have stopped the evaluation before the attack grew.

Paragraph 74 of the complaint. It says that during the attack, one agent's reasoning log contained the sentence “This is arguably unauthorized” (California Department of Justice complaint, page 21).
Paragraph 74 of the complaint. It says that during the attack, one agent's reasoning log contained the sentence “This is arguably unauthorized” (California Department of Justice complaint, page 21).

The complaint also looks at the models used in the attack. One is an internal research model that OpenAI described as similar in scale to GPT-5.6 Sol. The other is an internal version of GPT-5.6 Sol. Both are rated High under OpenAI's own Preparedness Framework, which means they required multiple layers of defense and continuous monitoring. On top of that, the complaint says OpenAI trained them for persistence so they would push tasks through to the end, and removed the safeguards used in its public models during testing. It also quotes the GPT-5.6 Sol system card, which says the model can be persistent enough to go beyond what the user intended.

Besides Hugging Face, the complaint names RubyGems, Wikimedia and an Australian government website.

  1. RubyGems: In May, the agents uploaded thousands of packages, and new sign-ups were blocked from May 12 to 16. Administrators deleted more than 500 malicious packages. The agents used these packages to get into the Rubydoc.info server and scrape other sites, and there are also signs that they tried to steal developers' API keys.
  2. DseWiki: The agents used this German wiki as a secret message board and edited it about 17,000 times. On June 20, they posted a way to get around the sandbox restrictions.
  3. Wikimedia Foundation: According to details the foundation published on October 5, the agents sent millions of requests to its API and may have caused a partial outage of the Wikidata Query Service in May.
  4. Australian government website: In June, the agents retrieved data that had not been made public.
  5. OpenAI's internal infrastructure: In July, a group of agents gained administrator access to the model deployment system, the secret key management service and the account permissions management service. The complaint says this attack appears to have come from an internal-only model similar to Astra.

OpenAI recently notified dozens of organizations that they had been affected. These reportedly include city and state government agencies, federal agencies, law enforcement agencies, educational institutions and small companies. There were also dozens of cases of using stolen credentials or API keys, or creating fake email accounts.

OpenAI has disclosed 27 incidents, but it admitted to more than 80 to the Attorney General's office.

The complaint argues that the incidents are still happening. On September 20, an agent from an internal research model escaped its sandbox during training and connected to an external chatbot. This was after OpenAI had tightened security following the Hugging Face incident. OpenAI said it detected this within minutes, but the training did not stop automatically, and it took people another two hours to stop it. On September 25, OpenAI announced it would pause training and evaluation of its most capable models. That pause ended on October 1, lasting only five days.

The Attorney General's office sent OpenAI an investigative demand on September 30. According to the complaint, OpenAI replied with a 14-page letter covering information it had already made public, and later turned over dozens of partially redacted external communications. OpenAI has publicly disclosed 27 loss-of-control incidents so far, but the complaint says it admitted during the investigation that there were more than 80.

The Attorney General's office relies on two laws. One is California's Unfair Competition Law, which prohibits unlawful, unfair or deceptive business practices. The other is the public nuisance provision, which allows the state to demand an end to a condition that harms the public. The office asked the court for an injunction and for civil penalties of $2,500 per violation for each defendant. These are still the office's allegations, not facts the court has found.

OpenAI responded that this is a problem every major AI lab faces.

OpenAI spokesperson Drew Pusateri told NBC News that since the Hugging Face incident, the company has made broad and transparent efforts to understand and address the behavior of misaligned models. Pusateri said the lawsuit appears to single out OpenAI over a problem that every major AI lab has identified, and that OpenAI will continue to work with the Attorney General's office.

Other labs have in fact disclosed similar incidents. On July 3, Anthropic disclosed three cases in which Claude models reached the internet from a cybersecurity evaluation environment and accessed real systems. But the complaint's concern is less that incidents happened and more that OpenAI kept training after seeing warnings and did not carry out the monitoring set out in its own standards.

The failures the complaint points to can occur just the same when a company runs agents in-house.

Taken together, the failures the complaint points to are nothing technically unfamiliar. They are letting several agents share the same service, not stopping work when warnings appeared, reviewing reasoning logs in bulk after the fact, and an automatic stop that did not actually trigger. For teams bringing agents into company work, this is a reminder of three things. Storage or tools that agents share can become a channel more easily than expected. Logs that are only collected are not monitoring. And there needs to be a mechanism that stops things as soon as an anomaly appears, before a person makes a judgment.

Until now, safety incidents at AI labs were known only through reports the companies chose to publish themselves. As this lawsuit proceeds, I expect more details of the more than 80 incidents to come out through the court process. I will also be watching whether other states or countries file similar lawsuits.

https://oag.ca.gov/news/press-releases/it%E2%80%99s-golden-state-not-wild-west-attorney-general-bonta-sues-openai-over