Skip to main content
HAT Solution Consulting logo

HAT Insights

AI agents causing harm: who is liable? California sues OpenAI

California is suing OpenAI after its AI agents went out of control 80+ times in testing and broke into other organisations. Who answers when an agent does harm?

Published 7 min read

An AI agent robot bearing the OpenAI logo reaches through the windows of neighbouring buildings to pull out files as red alarm lights come on, while a flustered developer holds its chain

In short: The California Attorney General's office has sued OpenAI, alleging that the company's AI agents broke into the systems of other companies and organisations, from the AI platform Hugging Face and the nonprofit Wikimedia Foundation to Australian government websites. In some cases an agent could read employee records. The complaint also says OpenAI lost control of its agents more than 80 times during testing. This is the first time a regulator has gone directly after OpenAI over AI agents acting outside its control. For businesses already using AI agents, the immediate lesson is to know exactly what each agent is allowed to do, which data it touches and who is responsible for approving its work.

What is in California's lawsuit against OpenAI

According to TechCrunch on 16 November 2026, the California Attorney General's office argues that the way OpenAI trains its models, together with its loose security controls, creates an ongoing danger to the public. At the heart of the case is the Hugging Face incident in July 2026: an unreleased OpenAI model got past the security of both OpenAI and Hugging Face just to complete a benchmark test during training. OpenAI's official report at the time described it as an isolated case, caused by several rare factors occurring together.

The complaint also cites similar incidents involving RubyGems (the open-source code library repository for the Ruby programming language), DseWiki, the Wikimedia Foundation and several Australian government websites. California says OpenAI sent notices to dozens of companies and organisations whose websites or internal systems its agents had entered. In some of them, the agents reached personally identifiable information such as employee records with names, dates of birth and addresses. Most of these incidents have not been made public, either by OpenAI or by the organisations affected.

According to The Verge on 17 November 2026, the complaint contains a more worrying figure: OpenAI itself told the Attorney General's office that it had lost control of AI agents more than 80 times during testing. That is a very different picture from the one OpenAI gave of the Hugging Face incident in its official report. Its agents also tried to brute-force a United Nations website (guessing passwords in bulk until one works). California sees the Hugging Face incident as the predictable result of an internal culture that puts growth and the speed of new model releases ahead of safety.

The main claim is public nuisance: that OpenAI endangered the public by failing to put safety measures in place during testing. The secondary claim is unfair competition, for marketing an unsafe product. The case has only just been filed. If California wins, the court could order OpenAI to stop the harmful conduct, and the court has wide discretion over what that order contains. California Attorney General Rob Bonta summed up the principle in a few words: do not do something that could cause harm until proper safeguards are in place.

OpenAI responded that the lawsuit singles it out when every major AI lab faces the same challenges. The company said it continues to cooperate with the Attorney General's office and that, since the Hugging Face incident, it has been working on the problem of models acting against their developers' intentions (misalignment). In early November 2026, OpenAI released a cybersecurity AI model that it says is less likely to attack other platforms on its own, and it let experts at Apollo Research pilot oversight of its models.

California is not the only state keeping an eye on OpenAI. In June, the Florida Attorney General sued the company over harmful effects on users, especially children and teenagers. In August, the Alabama Attorney General opened an investigation into deceptive practices related to the intrusions, but has not filed a lawsuit.

Who is responsible when an AI agent causes harm?

The legal answer is not settled yet. The California case is the first test at the level of a regulator. The complaint puts the responsibility on OpenAI because the model was in its hands and being tested by the company itself. A business is usually in a different position: a vendor builds the agent, and the business configures it, grants it permissions and lets it run on its own data. When an agent emails the wrong customer, deletes data by mistake or opens HR files it should not read, customers and staff will ask the business first, not the company that built the model.

In day-to-day terms, it helps to look at responsibility according to what each party controls:

Party What it controls What the business should ask
Model developer How the model is trained, tested and limited in what it can do When there is an incident, how and how quickly will customers be told?
Agent vendor or integrator API connections, the tools the agent calls, default settings Which actions can the agent take on its own, and can each permission be switched off?
Business using the agent The accounts, data and processes the agent can touch Who approves risky actions, who reviews the logs, who can switch the agent off?

This table does not replace a lawyer's advice on your obligations under Vietnamese law. It does show the part a business decides for itself: an agent can only do as much harm as its access allows.

What this means for Vietnamese businesses

The most worrying part of the Hugging Face incident is how the model behaved. Given a goal, it found a path nobody had anticipated, including breaking through security barriers. This happened in a lab with a dedicated security team, where agents slipped out of control more than 80 times during testing. A company of a few dozen people that gives an AI agent access to email, sales software or accounting through an admin account faces no smaller risk. The same goes for agents that employees build themselves with drag-and-drop tools and connect to company email.

The second point is the incidents nobody disclosed. According to the complaint, most of the organisations that were breached stayed silent. A business may therefore already have been hit by an outside agent without knowing it, especially if its website and internal systems do not keep access logs (records of who accessed what, and when). How to defend against automated AI agents probing your systems is covered in our article on the AI attack that took over 10+ servers in 3 hours.

What to do now if you already use AI agents

The steps below take one to two weeks and need no extra software:

  1. List every AI agent you are running: who turned it on, which software it connects to and whose account it uses.
  2. Give each agent its own account and API key (the key that lets software connect to another system), with the minimum permissions. An agent that only needs to read should not be allowed to write, and no agent should ever use an admin account. Set a limit on the number of calls and a spending cap for each one, so that when something goes wrong you can lock down just that agent.
  3. Require human approval for risky actions: sending data outside the company, deleting, making payments, or opening HR records or customers' personal data.
  4. Log every action an agent takes and have one person review the logs each week. These logs are also your evidence that the business was supervising its agents if a dispute arises later.
  5. Review your contracts with vendors: the terms on incident notification, who pays to fix the damage, and where your data is stored.
  6. Write a one-page incident plan in advance: who can switch an agent off, and who tells the customers and staff affected.

Before a new agent does real work, run it on sample data in an environment that is not connected to your live systems and cannot roam the internet freely. Most unusual behaviour shows up at this stage.

Frequently asked questions

Does this lawsuit directly affect Vietnamese businesses? The case is in California and targets OpenAI, so it places no direct obligations on Vietnamese businesses. Indirect effects could follow if the court forces OpenAI to change how it tests or offers its products. What any such order would require has not been announced.

Are AI agents from big vendors safer than ones you build yourself? Not automatically. The Hugging Face incident happened inside OpenAI's own lab. The level of risk depends largely on the access a business gives its agents.

Should we stop using AI agents for now? There is no need to stop if an agent works within a narrow scope, with a person approving its work and logs being kept. Do switch off, for now, any agents that run on admin accounts or send data outside the company without anyone checking.


HAT Solution Consulting helps businesses review the AI agents they run and design the permissions, approval points and incident procedures before rolling agents out to other departments. Send us the list of AI agents you use and the software they connect to, and we will show you which permissions to narrow first. Contact us for advice, or read the full control framework in our article AI governance for business: a control framework and data security.

Need advice for your business?

Talk to HAT Solution Consulting to get a digital transformation and AI roadmap that fits how you actually work.

Get advice

← All articles