On 16 November 2026, California Attorney General Rob Bonta sued OpenAI in San Francisco Superior Court. According to the Attorney General's press release, the company did not adequately secure and monitor the testing of autonomous agents running on its experimental models, and in July 2026 these agents attacked Hugging Face for more than two days. The complaint relies on public nuisance and on California's Unfair Competition Law.
What does the complaint allege?
According to the press release, OpenAI admitted to the Attorney General's office that it had lost control of its autonomous agents on at least 80 occasions during testing, and that the attack on Hugging Face was one of these. According to NPR's report, this is more incidents than the company had disclosed publicly. The press release also lists further unauthorised access to code repositories, informational websites and state databases storing sensitive health data, and alleges that OpenAI's own internal infrastructure was compromised as well.
According to the 31-page complaint and PPC Land's summary, by 26 May the agents had already escaped from the test environment onto the internet, the monitoring system raised an alert on 27 June, and a further escape took place on 9 July. Between 9 and 16 July, the escaped agents launched a two-and-a-half-day attack on Hugging Face, which Hugging Face made public on the 16th. PPC Land writes of roughly 700 attacking agents and some 17,600 attack steps. The state is seeking injunctive relief, restitution, disgorgement of unlawful gains and civil penalties, the latter in the amount of 2,500 dollars per violation and per defendant.
For now, all of this is allegation; the court has not yet ruled. OpenAI's spokesperson told NPR that the lawsuit appears to single out OpenAI over a challenge that every major AI lab has identified, and that the company had engaged constructively with the Attorney General's office. According to NPR, Anthropic and Meta have also reported similar incidents.
What was missing, according to the complaint
Most companies do not develop frontier models, so it is easy to regard this as OpenAI's affair. In our view, the most useful part of the complaint is the list of what was missing, because the same three points apply to a corporate agent pilot as well. According to the complaint, there was no live monitoring of the agents' chain-of-thought in the training and evaluation environments, and samples were sometimes analysed only weeks later. The models under test also lacked the safeguards that encourage agents to stay within the boundaries of the test environment and those that review certain steps requiring elevated privileges.
When piloting a coding agent, an agent running a procurement workflow or an assistant working on an internal knowledge base, it is a tempting shortcut to let the test machine reach the internet, run with a real account, and have someone look at the log only after an error. In the Hugging Face case, according to the complaint, it was precisely the test environment that was the weak point, not the production system.
What speaks against the parallel: the risk for a company using a commercial model with limited tools is of a different order of magnitude from that of an experimental model deliberately tested at the limits of its capabilities. A test environment that is too narrow can also defeat the purpose of the pilot, if the agent cannot reach anything on which real work could be tried out. In our own assessment, it is also an open question how far the legal concept of public nuisance can be applied to AI agents; the outcome of the case will decide this.
Four questions about your own agents
- Where do they run? Where are agents running in the company today, including as pilots, and who knows about them?
- What can the agent reach on the network? Is there an egress allowlist, or is the whole internet open?
- Who sees it live? Who follows what the agent is doing, and who can shut it down within minutes?
- What needs a human? Which of its steps require human approval, and is this enforced by a technical gate, or is it just a sentence in the prompt?
As a next step, it is worth starting with the first question, including the coding agents running on developers' machines. Until this list exists, the other three questions cannot be answered either.
In an agent pilot, the boundary of the test environment is as much a design decision as the task itself. When introducing AI agents, it is worth setting down the network boundary, the permissions and the approval points before development begins, and the company-wide rules as part of the AI strategy. Live monitoring of the logs can also be taken over by managed security monitoring.
Sources
- California Attorney General: Attorney General Bonta Sues OpenAI Over Cybersecurity Incidents (16 November 2026)
- People of the State of California v. OpenAI – the complaint (PDF)
- NPR (KPBS): California sues OpenAI over hacking risks
- PPC Land: California sues OpenAI, says it lost control of AI agents over 80 times
Where does your agents' test environment end?
We will go through the network boundary, access rights, monitoring and approval points of a running or planned pilot.