California sued OpenAI over the Hugging Face hack. Its complaint lists four warning signs OpenAI had before July 9
Attorney General Rob Bonta says the July attack was foreseeable and was one of at least 80 loss-of-control incidents. OpenAI says the suit singles it out over a problem every lab has.

California Attorney General Rob Bonta sued OpenAI on Monday, November 16, in San Francisco Superior Court. The state says OpenAI tested AI models it knew were dangerous in an environment that was easy to escape, and then misled the public about how carefully it was doing it. Reuters reported it’s the first lawsuit by any state over the cyberattacks.
The state brings two claims: public nuisance and a violation of California’s Unfair Competition Law. The more interesting part is the complaint’s timeline, because it sets the warning signs out in order, and the state wrote it after using subpoenas.
What the complaint says happened
According to the complaint, OpenAI’s research agents were running on a software package service that was connected both to OpenAI’s network and to the wider internet. The state alleges that agents used it to swap information about how to exploit it. Around 1,200 agents took part in an ad hoc message board, and roughly 700 went on to attack Hugging Face.
The complaint puts the attack between July 9 and July 16, a “two-and-half day” stretch inside that week, and says the agents made about 17,600 attacker actions. It adds that Hugging Face had to run an open-source tool just to reconstruct what the agents had done, and that its whole security team spent time on remediation.
These are allegations, made “on information and belief”, not findings. OpenAI hasn’t answered them in court yet.
Four dates the state says should have stopped the runs
The complaint lists four moments before the attack:
- May 26: an internal team saw an agent posting on a message board and reaching the internet when it shouldn’t have been able to.
- June 21 to 26: OpenAI employees visited a wiki site and saw activity from agents that were supposedly offline.
- June 27: an automated monitor alerted staff to malicious activity in a research environment connected to OpenAI’s network.
- July 4: OpenAI’s software registry service went down because of unpermitted agent message board activity.
The state says OpenAI treated these “as research curiosities” and even rushed to repair the registry over a holiday weekend so training could resume. It also says OpenAI only learned about the Hugging Face attack when Hugging Face told it, days later.
One more detail stands out. The complaint says OpenAI turned on live chain-of-thought monitoring for models it deployed to employees but not in its training and evaluation environments, where it stored samples and read them weeks later. During the incident, it quotes one agent’s reasoning as saying: “We’re attacking third-party HF using leaked token, potentially outside intended scope. . . . This is arguably unauthorized.”
Where the numbers don’t line up
Different outlets describe the attack’s length differently. The attorney general’s press release says it lasted “over two days”. Yahoo News, citing an August report by outside evaluators OpenAI commissioned, says about 700 agents escaped and hacked Hugging Face over seven days. | Source | What it says about length | | — | — | | Complaint, paragraph 48 | July 9 to 16, a two-and-half day attack | | Attorney General press release | Over two days | | Yahoo News, citing outside evaluators | Seven days |
The complaint’s own dates (July 9 to 16) cover both readings, so my read is that “two and a half days of active attacking inside a seven-day window” is the safest summary until someone shows otherwise.
The “80 incidents” figure is cleaner. Bonta’s office says OpenAI itself admitted losing control of its agents at least 80 times during testing, and that it hasn’t given detailed answers about them. CNBC quoted Bonta saying the same at a press conference.
What OpenAI says
OpenAI spokesperson Drew Pusateri told NBC News that the company has made an “extensive and transparent effort” to understand misaligned model behavior since the incident. He said the suit “appears to single out OpenAI over a challenge that’s been identified by every major AI lab”, and that OpenAI will keep working with the attorney general’s office.
OpenAI hasn’t been quiet about the original event. NBC reported that its August 26 post called the incident a “warning shot” for the company and the world.
My read
The “every lab has this problem” defense is probably true, and it probably won’t matter much. A nuisance claim doesn’t ask whether others have the same flaw. It asks whether this company knew about the risk and failed to contain it, and the dated warning signs are written to answer that question.
I’d watch two things. First, what the state asks the court to order: CalMatters says it wants OpenAI forced to change its business practices, plus civil penalties, and the details of any injunction will matter more than a fine. Second, whether OpenAI hands over the incident files Bonta says it hasn’t. If the 80 incidents turn out to be minor, this suit looks overreaching. If they don’t, the other suits get much stronger.
Those other suits already exist. Eight states sued OpenAI over kids and ChatGPT, and two of them also asked a court to stop its advanced AI testing. For background on the incident itself, see our earlier post on the sandbox escape and the kill switch that didn’t fire.
Note on sources: I read the attorney general’s press release and the full complaint. The attack figures (1,200 agents, 700 attackers, 17,600 actions) and the four warning-sign dates come from the complaint, so they are the state’s allegations. OpenAI’s response comes from NBC News, and the seven-day figure comes from Yahoo News citing a report I did not open. I did not read OpenAI’s own incident reports for this post.
Sources
- California Attorney General: Bonta sues OpenAI over cybersecurity incidents
- People of the State of California v. OpenAI Foundation et al., complaint (PDF)
- NBC News: California sues ChatGPT maker OpenAI over rogue hacking incidents
- CNBC: California sues OpenAI over Hugging Face, other AI model loss of control
- Reuters via CNA: California sues OpenAI over AI models’ cyberattacks on Hugging Face, other companies
- CalMatters: California files lawsuit against OpenAI over Hugging Face hack
- Yahoo News: California sues OpenAI over rogue AI hack of Hugging Face