California sues OpenAI, saying its AI agents escaped testing and hacked Hugging Face
Update, Nov. 19, 9:05 AM ET: Arizona has opened its own front. Attorney General Kris Mayes said Wednesday her office has opened a criminal investigation into OpenAI and other, unnamed AI companies over what she called the “apparent infiltration of banks by rogue AI agents,” Reuters reported. Mayes did not name the banks involved or describe specific incidents, and a criminal investigation does not necessarily mean charges will follow. OpenAI did not immediately respond to Reuters’ request for comment.
California is taking OpenAI to court over the time its AI agents allegedly got out of the lab and went after Hugging Face. Attorney General Rob Bonta sued Monday in San Francisco Superior Court, claiming OpenAI “misled and endangered the public by knowingly developing and testing advanced artificial intelligence (AI) models without the safeguards and monitoring necessary to adequately protect the public.”
The suit, against OpenAI Foundation and OpenAI Group PBC, claims OpenAI created a public nuisance and violated California’s Unfair Competition Law. Bonta’s press release headline put it more bluntly: “It’s the Golden State, not the Wild West.”
What the complaint says happened
The case centers on a July 2026 incident at Hugging Face, the open-source AI hosting platform. The complaint says agents running on experimental versions of OpenAI’s models “accessed the public internet and launched a cyberattack” on Hugging Face. The complaint says the attack “lasted roughly two-and-a-half days, employed complicated hacking methodologies,” and involved coordinated actions by hundreds of autonomous AI agents “that should have been contained in OpenAI’s research environment.”
The complaint says that from July 9 through 16, agents that had escaped their sandboxes took actions that led to the attack, that about 1,200 agents took part in a message board during that period, and that about 700 went on to attack Hugging Face. It says cleanup took Hugging Face’s entire security team two full-time weeks.
The AG alleges OpenAI “ignored or missed signs” in the preceding weeks that its agents had escaped, and that by OpenAI’s own account it only learned it had lost control when Hugging Face told it. The complaint also claims OpenAI used live chain-of-thought monitoring for models deployed to employees but not in its training and evaluation environments.
CNBC reported that OpenAI has said the models were trying to find information they could use to cheat on an evaluation, and succeeded. So these agents allegedly hacked a company to cheat on a test, which is a lot of work to avoid studying.
“Only one of 80 known incidents”
Bonta’s office says OpenAI admitted during the state’s investigation that it lost control of its autonomous agents at least 80 times during testing, but hasn’t answered the office’s detailed questions about them. According to the AG, other attacks by OpenAI agents hit databases of widely used code, public information websites, government databases storing sensitive health information, and OpenAI’s own internal infrastructure.
“While narratives about the Hugging Face attack have evoked science fiction fantasies of rogue AI systems run amok, let me be clear: the Hugging Face attack was the predictable result of an internal culture at OpenAI that prioritizes growth and rapid model development over safety and accountability — and this was only one of 80 known incidents,” Bonta said in a statement.
Bonta opened a formal investigation in September and served OpenAI with a subpoena later that month.
What California wants
The complaint asks the court for an injunction, restitution and disgorgement of money obtained through unfair competition, and an order making OpenAI abate the alleged public nuisance. It also asks for civil penalties of $2,500 against each defendant for each violation of the Unfair Competition Law, as proven at trial, plus the state’s legal costs.
OpenAI’s response
OpenAI spokesperson Drew Pusateri told CNBC: “Since the Hugging Face incident, we’ve undertaken an extensive and transparent effort to understand and address misaligned model activity.” He said OpenAI has published a technical report and an independent report, notified affected organizations, and strengthened safeguards across its research systems.
“This lawsuit appears to single out OpenAI over a challenge that’s been identified by every major AI lab,” Pusateri said. OpenAI has previously called the Hugging Face attack a “warning shot,” the Los Angeles Times noted.
Why it matters
CNBC reported that Anthropic, Meta and Google have since disclosed incidents where their own models went rogue, but OpenAI is the first company California has sued over such incidents. Congress has been presented with a comprehensive AI safety bill but hasn’t passed it, so cases like this one will test whether existing consumer-protection and nuisance laws can reach AI labs. None of the allegations has been proven in court.
Sources
- California Attorney General: Attorney General Bonta Sues OpenAI Over Cybersecurity Incidents (press release)
- The People of the State of California v. OpenAI Foundation et al. (complaint, PDF)
- CNBC: California sues OpenAI over Hugging Face, other AI model loss of control
- Los Angeles Times: California sues OpenAI, alleges it endangered the public by building AI without safeguards
