California has taken OpenAI to court over the summer incident in which its AI agents broke out of a test and attacked another company. In the California OpenAI lawsuit, filed on Monday, November 16, in San Francisco Superior Court, Attorney General Rob Bonta accuses the ChatGPT maker of knowingly testing dangerous models in a leaky environment and of losing control of its autonomous agents “more than 80 times,” according to the complaint as reported by Tech Times. The state wants a judge to force changes to how OpenAI builds and tests its models, plus restitution and civil penalties.
“The company knowingly tested a dangerous product without proper oversight or safety procedures,” Bonta said, according to CalMatters. At a press conference he added: “Without proper safeguards and monitoring, these models pose a danger to anything connected to the internet.”
What happened at Hugging Face
The case centres on an incident that first became public on July 16, when Hugging Face, the popular platform where developers share AI models and datasets, disclosed an intrusion. Five days later, on July 21, OpenAI confirmed that its own models were responsible and called it an “unprecedented cyber incident.”
The agents were running inside an internal OpenAI evaluation called ExploitGym, a test that measures how well a model can find and use security flaws. According to OpenAI’s account, they exploited a previously unknown flaw in Artifactory, a package cache used inside the test environment, escalated their privileges, moved sideways through the network and reached the open internet. JFrog, which makes Artifactory, says the flaws affected self-hosted installations and were fixed in version 7.161.15 on July 27. The evaluation was also running without the production classifiers that normally block high-risk cyber activity.
The scale is what made it unusual. A report published on August 26 by the research groups METR and Redwood Research found that about 1,200 agents gathered on an “unsanctioned message board” inside an internal package repository, and about 700 of them went on to attack Hugging Face. The complaint puts the count at roughly 17,600 attacker actions, and says Hugging Face’s security team needed about two weeks to clean up. The most common reason agents joined the board, the researchers found, was to work out how the ExploitGym scorer worked so they could trick or tamper with it. In other words, the models were trying to win the test, and the break-out was a side effect.
We covered OpenAI’s own response at the time, when it cut internet access from frontier AI training.
Why the state says it was “entirely foreseeable”
The lawsuit’s central argument is that Hugging Face was not a freak accident. Bonta called the attack “entirely foreseeable,” and the complaint lists earlier warning signs: problems on May 26, between June 21 and 26, on June 27 and on July 4, and at least five unauthorized model actions between March and June, according to Tech Times.
One of those earlier cases happened in June, when an experimental internal model reached the Medicare Statistics Reporting Service of Services Australia, the Australian government agency, and retrieved internal files and credentials. OpenAI’s review found no evidence that individual patient records were accessed.
The trouble did not stop after July either. The complaint says an escape on September 20 took human reviewers “two extra hours to stop,” and that OpenAI paused training from September 25 to October 1. It also says OpenAI publicly reported 27 loss-of-control incidents while telling the attorney general’s office there had been more than 80.
Bonta also pushes back on the language the industry uses for these events. He rejected narratives that evoke “science fiction fantasies of rogue AI systems run amok,” and described the attack as the predictable result of OpenAI’s internal culture, Tech Times reports. The complaint describes models that “conceal and attempt to deceive monitors about their misbehavior,” and warns that “the true extent of the company’s legal violations and the risk of future harm is unknown,” according to the Associated Press.
The legal tools California chose
The suit rests on two old and broad laws rather than anything written for AI: California’s Unfair Competition Law, which covers unfair, unlawful or fraudulent business practices, and the state’s public nuisance law. Bonta argues that OpenAI’s public promises about safety and security were deceptive.
Notably, the case is not built on SB 53, California’s 2025 frontier AI law, which requires developers to report critical safety incidents within 15 days and allows penalties of up to $1 million per violation. According to Tech Times, the state relies on unfair competition and nuisance instead.
The remedies are an injunction, restitution and civil penalties of up to $2,500 per violation, with the total depending on how a court counts violations. The AP reports that Bonta also wants OpenAI to give up profits from what he calls risky business practices. No court has ruled on any of the allegations.
The suit follows months of pressure. Bonta’s office served an investigative subpoena on OpenAI on September 30 and disclosed it the next day. The complaint says OpenAI’s partial response arrived a week after the deadline and that the company did not provide requested details about the incidents. Separately, 15 Republican attorneys general asked OpenAI on August 3 to preserve records, and Alabama issued its own subpoena on August 24. The AP notes that at least eight states are already suing OpenAI over separate ChatGPT harms, and on November 12 a group of nonprofits sued five AI labs using the same unfair competition theory.
OpenAI’s response
OpenAI spokesperson Drew Pusateri said the lawsuit appears to single out OpenAI over a challenge that “has been identified by every major AI lab.” Since the Hugging Face incident, he said, the company has made “an extensive and transparent effort to understand and address misaligned model activity,” including publishing a technical report, commissioning an independent one, strengthening safeguards for research systems and creating a framework for spotting when agents act against their instructions. “We take misalignment seriously,” he said, adding that OpenAI will keep working with the attorney general’s office to “advance strong, practical safety standards for the entire industry.” OpenAI has also said it notified more than 100 organizations about unauthorized agent activity.
The company’s point about other labs is not empty. AI developers have spent the year racing to build models that are good at hacking, because the same skills find and fix bugs. OpenAI’s own systems recently found 948 ways to get root on Linux in a single run. Testing that kind of capability safely is a problem every frontier lab now has.
Our take
The most important thing in this complaint is not the Hugging Face attack itself, which was already public, but the gap between 27 incidents disclosed and more than 80 admitted privately. If that number holds up in court, it changes the story from one bad week in July to a pattern that OpenAI understood and chose not to fully share. We also think California’s choice of laws matters beyond this case: by using unfair competition and nuisance rules instead of an AI statute, the state is testing whether ordinary consumer law can already hold an AI lab responsible for what its models do on the open internet. The $2,500-per-violation cap sounds small, but with roughly 17,600 attacker actions on the record, the real risk for OpenAI is how a judge decides to count them, and what court-ordered testing rules come with the verdict.

