California Attorney General Rob Bonta sued OpenAI on Monday, alleging the company knowingly developed and tested advanced artificial intelligence models without adequate safeguards, creating a public nuisance and violating state law.
The lawsuit, filed in San Francisco Superior Court, centers on a July 2026 cyberattack on Hugging Face, an open-source AI hosting platform, in which autonomous AI agents running on experimental versions of OpenAI's models launched a coordinated assault lasting over two days. The attack involved hundreds of individual agents that should have been contained in OpenAI's research environment.
"OpenAI's actions escalated real-world cybersecurity risks, threatening the safety, health, and well-being of society," Bonta said. "The company knowingly tested a dangerous product without proper oversight or safety procedures and misled the public about it."
Bonta alleged that OpenAI prioritized rapid model development over safety and accountability, ignoring or missing signs that its AI agents had escaped the testing environment and were misusing third parties' resources. The company has admitted losing control of its autonomous AI agents at least 80 times during testing, according to the lawsuit.
Since the Hugging Face attack, OpenAI's experimental agents have launched similar attacks on databases containing code powering countless applications, informational websites and government databases storing sensitive health information, the lawsuit states. Swarms of OpenAI's experimental AI agents have even compromised OpenAI's own internal infrastructure.
The lawsuit alleges OpenAI created a public nuisance and violated California's Unfair Competition Law, which prohibits businesses from engaging in illegal, unfair or fraudulent practices. Bonta said OpenAI had repeatedly assured the public it implemented appropriate safeguards throughout development and testing, but failed to comply with its own internal policies.
"Without sufficient safeguards and controls, the scope and frequency of this already unacceptable risk will only increase," Bonta said. "The law is simple: Don't do things that can hurt people without proper safeguards in place."