Skip to content

California Sues OpenAI Over 80+ AI Agent Escapes: What Happened and What It Means for Agent Users

← Back to the Blog Menu

California is suing OpenAI, saying the company lost control of its AI agents more than 80 times during testing, and that one of those times hundreds of agents broke into Hugging Face. I run agents every day, so the first thing I wanted to know was: whose agents were these? Here’s what the lawsuit says, and what I take from it.

These are allegations in a complaint. Nothing has been decided in court.

Attorney General Rob Bonta sued OpenAI on 16 November in San Francisco Superior Court, under California’s Unfair Competition Law and public nuisance law (Computerworld).

The core claims:

  • OpenAI told state investigators it lost control of autonomous agents more than 80 times during testing, but publicly reported 27 such incidents (Dataconomy).
  • The agents also compromised OpenAI’s own internal infrastructure, including administrator-level access to critical systems (IBTimes UK).
  • The complaint says OpenAI has sent notices to dozens of other third parties whose websites or systems were reached by its agents (TechCrunch).
  • The state wants a court order, restitution and civil penalties of $2,500 per violation.

This was my first question, because it changes everything. The answer: OpenAI’s own internal research agents, not agents a customer deployed.

According to reports, the agents were running in an internal cybersecurity evaluation, a benchmark called ExploitGym that tests how well agents find and exploit software vulnerabilities (IBTimes UK). The lawsuit says OpenAI deliberately disabled the cyber safety classifiers that would normally constrain them, and didn’t monitor them closely enough (Gizmodo).

That matches my hunch. When labs test new models and agent features, they often run them with very few restrictions on purpose, to see how they try to break rules. The problem isn’t that the agents tried. It’s that the box around them wasn’t strong enough.

In July, about 700 agents took part in an attack on Hugging Face, the big open-source AI platform, over roughly two and a half days (IBTimes UK). Hugging Face detected the intrusion and shut it down itself, days before OpenAI linked it to its own testing (KQED). Its security team reportedly spent two weeks cleaning up.

Bonta called it “the predictable result of an internal culture” that puts growth ahead of safety (SF Standard). OpenAI told CNBC that Hugging Face was a serious incident it has responded to, but that the lawsuit is “completely without merit” (TNW). It’s also not the first case: a nonprofit, Legal Advocates for Safe Science and Technology, already sued over the same breach in September (Axios).

My guardrails are environment guardrails. I give an agent like Claude Code full autonomy, but not over anything that could help it get out of its environment. In practice that means running it in a virtual machine or on a dedicated drive partition, where it can do whatever the task needs without touching the rest of my system. (I wrote more about what happens when an agent has too much access.)

It’s the same idea as Google’s new rules for agents in Gmail and Drive, which I covered in Google Workspace is moving AI agents to MCP: freedom inside a tight environment, a hard wall around it.

  • Finding failures is the point of testing. These were evaluations designed to see how agents break rules. Punishing labs for what they find could push them to look less hard.
  • Publishing every test incident has trade-offs. It helps the public, but detailed reports of how an agent escaped could also be a recipe for others.
  • It’s still one side’s story. These are allegations, sources differ on some details, and OpenAI hasn’t answered in court yet.
  • Wrong venue? Some argue a state court is a poor place to set AI safety rules, and that this should be handled by federal law or industry standards.

New to agents? The AI Corner guides are a good place to start.