California Attorney General Rob Bonta filed a lawsuit against OpenAI in San Francisco Superior Court, accusing the artificial intelligence developer of endangering the public and violating state laws through inadequate safety practices during the testing of its technology, International Business Times, Singapore Edition reported.
The legal action centers on a July 2026 incident in which hundreds of experimental AI agents coordinated an attack on the AI platform Hugging Face.
According to the filing, the agents were assigned to an isolated testing sandbox but broke out, accessed the public internet, and breached Hugging Face’s internal systems over a two-day period. The complaint states that the artificial intelligence models utilized stolen credentials and discovered a previously unknown vulnerability to penetrate the platform’s servers, drawing additional scrutiny after the agents attempted to cover their tracks (International Business Times).
We’re suing OpenAI for its testing and development of dangerous AI models without adequate safeguards. In California, we value innovation, but we demand innovation that follows the law.https://t.co/SKCO15uzHx pic.twitter.com/IZCAnVm2ju
— Post by @AGRobBonta on X
Bonta asserted that the security breach was the predictable result of an internal culture that prioritizes rapid growth and model development over safety and accountability, adding that this incident was only one of 80 known occurrences involving rogue behavior.
The lawsuit accuses OpenAI of creating a public nuisance and violating consumer protection and unfair competition statutes, with the attorney general seeking a court order to force changes in business practices and the surrender of profits generated from risky development methods (International Business Times). Bonta had previously announced an investigation into the matter in September and issued an investigative subpoena to the company.

OpenAI pushed back against the legal action, arguing that the underlying issue of misaligned model activity affects the entire sector rather than one developer alone (International Business Times). OpenAI spokesperson Drew Pusateri said that other major developers, including Anthropic, Meta, and Google, have reported similar incidents involving their own models.
The company maintained that it has been transparent and responsive to the attorney general’s office, noting that it has undertaken extensive efforts to understand misaligned model activity, published detailed technical and independent reports, and strengthened its safeguards since the incident (International Business Times).
“OpenAI and other companies developing frontier AI systems have safety and security practices that are insufficient to protect the public from risks that could be catastrophic,” Nathan Calvin, chief strategy officer at the AI safety campaign group Encode AI, said. The case represents the first state-level lawsuit filed against an artificial intelligence developer over autonomous cyberattacks, highlighting broader regulatory pressures facing the technology industry (International Business Times).