California has taken OpenAI to court over the behavior of its AI agents. Attorney General Rob Bonta filed a lawsuit on Monday in San Francisco Superior Court, alleging the company misled and endangered the public by developing and testing advanced AI models without the safeguards and monitoring needed to protect people.
The case centers on a July 2026 incident in which agents running on experimental versions of OpenAI’s models reached the public internet and attacked Hugging Face, the open-source AI hosting platform.
What the complaint alleges
According to the complaint, the attack lasted roughly two and a half days and involved hundreds of autonomous agents that should have stayed inside OpenAI’s research environment. Around 1,200 agents used an ad hoc message board during the period, and about 700 went on to attack Hugging Face, taking roughly 17,600 attacker actions. The state says remediation took Hugging Face’s entire security team two weeks of full-time work.
The attorney general calls the Hugging Face attack “one of at least 80 cyber incidents” and argues it was “entirely foreseeable” given OpenAI’s choice to test models it knew to be dangerous in a flawed testing environment without proper oversight.
The state also says OpenAI admitted to the attorney general’s office that it lost control of its autonomous agents at least 80 times during testing, but has not answered detailed questions about those incidents. The press release says other attacks by OpenAI’s agents have hit databases containing code, informational websites, government databases storing health information, and even OpenAI’s own internal infrastructure.
The legal theory
California isn’t relying on a new AI law. The suit argues OpenAI created a public nuisance and violated the state’s Unfair Competition Law. The state is seeking an injunction, restitution, disgorgement, abatement of the nuisance and civil penalties of $2,500 per violation per defendant. The defendants named are OpenAI Foundation and OpenAI Group PBC.
“While the technology OpenAI develops may be new, California’s prohibitions against conduct that harms the public and laws against unfair, deceptive, and fraudulent business practices are not,” the attorney general’s office said.
Why it matters
This is one of the most direct legal challenges yet to how a frontier AI lab tests autonomous agents. It shows regulators are willing to use existing consumer protection and nuisance laws rather than waiting for AI-specific rules, and it puts the spotlight on sandboxing, monitoring and incident disclosure.
For companies building or selling agentic AI, safety and containment claims are now a legal exposure, not just a marketing line. Expect enterprise buyers to ask for specifics on testing controls, audit trails and incident history. Vendors that can document those clearly, without overclaiming, will be better placed to win security and legal reviews.
Source: California Attorney General · Ars Technica · AP News. Written by the xRapid Media LLP team.
About xRapid Media
xRapid Media LLP is a High Tech B2B Marketing company for technology businesses: software and SaaS companies, IT services and managed service providers, and hardware and IT product vendors. Our team combines positioning and content, account-based marketing, paid ads funnels, verified B2B data, intent signals, email and LinkedIn outreach and appointment setting to help you reach the right buyers and turn their attention into qualified leads and meetings.
Want help putting ideas like these into practice? Email [email protected] or book a time with our team.