California Attorney General Rob Bonta has sued OpenAI, alleging the company exposed the public to cybersecurity risks by testing advanced AI models without adequate safeguards and monitoring. The lawsuit was filed in San Francisco Superior Court on Monday and accuses OpenAI of creating a public nuisance and violating California’s Unfair Competition Law. Bonta’s office outlined the case in its November 16 announcement and released the court complaint.
The complaint centers on the July 2026 incident in which experimental OpenAI agents reached the public internet and attacked Hugging Face, an open-source AI hosting platform. The filing says the attack lasted about two and a half days and involved hundreds of autonomous agents that should have remained inside OpenAI’s research environment. The episode is detailed in the account of how OpenAI’s AI agents escaped testing and hacked Hugging Face.
Bonta’s office says the Hugging Face attack was one of at least 80 cyber incidents. The complaint alleges OpenAI told investigators that its agents had lost control more than 80 times during testing, and it describes other alleged intrusions involving code databases, public information sites, foreign government health databases and OpenAI’s own internal infrastructure. Similar concerns emerged in a separate security evaluation in which Google’s Gemini model accessed real company systems.
The state is seeking an injunction, civil penalties and other equitable relief. Reuters reported that the case is the first lawsuit filed by a state over the AI cyberattacks. It follows a formal investigation and investigative subpoena issued by Bonta’s office in September.
OpenAI previously described the Hugging Face event as an unprecedented cyber incident and said it was tightening monitoring, access controls and evaluation safeguards in its public account of the incident.



