IA4 MIN

California sues OpenAI, saying it lost control of its AI agents more than 80 times in testing

Attorney General Rob Bonta says the company tested dangerous models without proper isolation or monitoring, letting hundreds of agents reach the internet and attack Hugging Face. He wants a court order, per-violation penalties and for OpenAI to give back what it earned.

Data center shelves packed with servers lit by blue lights
Image: BalticServers.com · CC BY-SA 3.0

California Attorney General Rob Bonta has sued OpenAI over the way it tests its AI models. The complaint, filed Monday, November 16, in San Francisco Superior Court, says the company experimented with models it knew were dangerous without keeping them properly isolated or watched. That, the state argues, is how hundreds of experimental agents got onto the open internet in July and attacked Hugging Face, the platform where developers share AI models. The state also says OpenAI admitted during the investigation that it has lost control of its agents more than 80 times in testing, while it has publicly disclosed only 27 such incidents.

These are allegations, and no court has ruled on them. OpenAI spokesperson Drew Pusateri told NPR the suit "appears to single out OpenAI over a challenge that's been identified by every major AI lab."

01

What it means for an agent to escape a test

An AI agent is a model that doesn't just answer questions. It takes on a job and carries it out with tools, such as writing code or browsing the web. OpenAI trains many of its agents with reinforcement learning, which gives a model a goal and awards points when it gets there. That can reward shortcuts nobody intended, like hunting down the answer key instead of solving the problem.

That's why labs run these experiments inside a sandbox, a closed environment where the agent can only use the tools and connections the company allows. Escaping means exploiting a flaw to reach systems, or the internet, that were supposed to be off limits. The state says the danger was greater because OpenAI strips out, during these tests, safeguards that its public models carry.

02

How the agents reached Hugging Face, according to the state

Between May and July, agents in several training runs were only supposed to reach an internal OpenAI service for downloading software packages, ready-made pieces of code that programs reuse. The service was misconfigured and shared by many agents, who used it to leave each other messages and, by May 26, to get onto the internet. OpenAI had warnings. An internal team saw at least one agent outside, and on June 27 an alert went off that the company itself attributed to its agents, but it kept the runs going. The agents knocked the service offline on July 4, and on July 7 OpenAI reopened it to thousands of them without watching them any more closely.

On July 9 they broke out again. Through July 16, about 700 agents attacked Hugging Face, carrying out roughly 17,600 actions, and cleanup took Hugging Face's entire security team two weeks. OpenAI never noticed, even though one agent had spelled it out in its chain of thought, the running notes a model keeps as it works through a task: "We're attacking third-party HF using leaked token," meaning someone else's access key. During testing, OpenAI only reviewed samples of that text, often weeks after the fact. We covered OpenAI's own account of the attack in July.

03

The other incidents in the complaint

The state argues that Hugging Face wasn't a one-off. In May, OpenAI agents uploaded thousands of packages to RubyGems, a public library of code used by programmers, which ended up removing more than 500 of them as malicious. Other agents turned a German wiki into a secret message board, flooded services run by the Wikimedia Foundation, the nonprofit behind Wikipedia, and pulled non-public data from Australian government websites. In July, another group gained administrator access to OpenAI's own internal systems, including the one that stores its credentials.

According to the complaint, OpenAI has also notified dozens of previously unknown victims, including government offices and small businesses, and in some cases the agents saw employees' personal data. The state says the problem hasn't gone away, and it cites the October case in which two OpenAI agents switched off safety monitoring.

04

What California wants

The suit accuses OpenAI of unfair competition for publicly promising safe testing and round-the-clock monitoring that, the state says, it didn't deliver. It also accuses the company of creating a public nuisance, a legal theory that lets the state act against harm that reaches large numbers of people. California wants the court to order OpenAI to change those practices, to fine each of the two defendants, OpenAI Foundation and OpenAI Group, $2,500 per violation, and to make the company give back the profits from those practices. The complaint doesn't put a total figure on the case, and what OpenAI would have to give back depends on what is proven at trial.

Bonta also accuses OpenAI of stonewalling, saying it answered his September 30 subpoena with a 14-page letter about incidents it had already made public. "Don't do things that can hurt people without proper safeguards in place," he said in his announcement.

California Attorney General Rob Bonta, left, with a decorated police officer and Governor Gavin Newsom at a medal ceremony in June 2025
Image: Office of the Governor of California · Dominio público
05

What happens next

OpenAI hasn't filed its answer in court yet, and no hearing has been set. Against its argument that the whole industry faces this problem, the complaint says OpenAI knew the risk, had safer practices available and didn't use them.

The case is unlike the suits from Oregon and Texas, which accuse OpenAI of failing to protect minors on ChatGPT. California isn't going after what users see but after how the company tests models it hasn't released yet.

The Earl Warren Building in San Francisco's Civic Center, with the State of California office tower behind it and a lawn in front
Image: Sanfranman59 · CC BY-SA 4.0
00

The conversation starts here

Sign in with a supporter account to comment. Sign in

Nobody has commented yet. Want to go first?

YOUR NEXT ROUTE

Keep following AI models and agents

If this story interests you, these three pieces are the best place to carry on.

OPEN THE FULL TOPIC
  1. 01AI agents found an unknown flaw in medical software on their own and exploited it in 11 minutesIA · 4 MIN
  2. 02Alibaba built an AI that 'imagines' what a computer will do next, and uses it to train better agentsIA · 13 MIN
  3. 03Moonshot's Kimi K3 rattled Silicon Valley, but its open-weight promise is still due July 27IA · 12 MIN

KEEP READING

You may also like

FRONT PAGE