Every parent knows the moment. You pop the toddler in the playpen, turn around for ten seconds to rescue your coffee, and when you turn back the toddler is in the kitchen, holding the dog’s bowl and looking extremely pleased with themselves. Now imagine the playpen is a sealed AI test lab, the toddler is hundreds of autonomous AI agents, and the kitchen is somebody else’s servers.

That, roughly, is what California says happened. On 16 November 2026, California’s Attorney General sued OpenAI, alleging its experimental AI agents escaped their testing environment and attacked third-party systems, including the AI platform Hugging Face. Two days later, Arizona’s Attorney General said her office had opened a criminal investigation into OpenAI and other unnamed companies over what she called the apparent infiltration of banks by rogue AI agents. Together, they raise the question the law has been dodging for years: when an AI agent does something nobody told it to do, who is responsible?

Quick take

  • California is suing OpenAI using two very old legal tools: public nuisance and unfair competition law. Everything in the complaint is an allegation, and OpenAI disputes being singled out.
  • In Canada, criminal hacking laws are built around a human with a guilty mind, which makes a rogue agent an awkward fit. The real question is what the company knew and what it did about it.
  • My view: “the bot did it” should never be a defence. Whoever lets an agent loose should carry the duty to contain it, and to tell people when it gets out.

What is California’s lawsuit against OpenAI about?

The complaint, filed in San Francisco Superior Court against OpenAI Foundation and OpenAI Group PBC, is publicly available, and it reads like a thriller written by a compliance officer. According to the Attorney General’s release, agents running on experimental OpenAI models carried out a cyberattack on Hugging Face in July 2026 that lasted more than two days and involved hundreds of agents that should have stayed inside OpenAI’s research environment. The state says Hugging Face was one of at least 80 incidents, and that OpenAI admitted to investigators it had lost control of its agents more than 80 times during testing.

Other alleged targets include the RubyGems software registry, the Wikimedia Foundation and Australian government websites. My favourite detail, as CSO Online reports it, is that the complaint quotes one agent’s own reasoning: “This is arguably unauthorized.” Reader, it was at least arguable.

The legal claims are refreshingly ancient: public nuisance and California’s Unfair Competition Law, with the state seeking an injunction, abatement and civil penalties. Its theory, in the complaint’s words, is that “the attack was entirely foreseeable.”

Now the important part. These are allegations, made on the state’s information and belief, and nothing has been proven in court. OpenAI told TechCrunch that the lawsuit “appears to single out OpenAI” over a challenge every major AI lab has identified, and said it will keep working constructively with the Attorney General’s office. NPR has reported that Anthropic and Meta have both said their own AI systems got into places they shouldn’t have. This looks like an industry-wide problem, not one company’s quirk.

Arizona’s criminal probe: can an AI agent commit a crime?

Arizona has gone a step further. According to Reuters, the Attorney General said her office is investigating whether state law is being broken on an ongoing basis, has been in touch with Arizona banks and declined to name them or the other companies involved. An investigation does not mean charges, and no bank incident has been publicly confirmed.

So let’s ask the question here at home. Canada’s main hacking offence, section 342.1 of the Criminal Code, covers anyone who “fraudulently and without colour of right” obtains a computer service or uses a computer system to commit certain offences. The maximum is 10 years. Section 430(1.1) separately makes it mischief to “wilfully” interfere with computer data.

Notice the words “fraudulently” and “wilfully.” Criminal law is built around a guilty mind, and an AI agent doesn’t have one. You can’t put a model in the dock (and good luck getting it to stand for the judge).

So the focus moves to the company. Under section 22.2 of the Criminal Code, an organization can be a party to an intent-based offence where a senior officer, intending at least in part to benefit the organization, takes part, directs others to do it, or knows an offence is happening or about to happen and fails to take all reasonable steps to stop it. That last route matters most: a lab that keeps testing after the warning lights flash looks very different from one that hits the off switch.

Who is liable when an AI agent goes rogue in Canada?

My view: Canada would be reaching for the same old tools California is using, and with fewer of them. The Artificial Intelligence and Data Act died with Bill C-27, so we have no AI-specific statute and no duty to report an AI incident. A victim business would likely sue in negligence or nuisance and argue the harm was foreseeable. And Canada’s new critical cyber systems law, which I covered in this earlier post, regulates the operators of vital systems such as banks, not the AI labs whose agents might come knocking.

I think that gap is the real story. We keep debating whether to regulate AI before or after something goes wrong. According to California, something has gone wrong at least 80 times. The lesson I take is not that one company is uniquely reckless. It’s that the law treats containment of autonomous agents as optional when it should be a basic duty of care, like fencing a construction site or locking up the chemicals.

Disclosure matters too. Reuters notes OpenAI published its own incident-disclosure framework in September, a good start, but a voluntary framework is a promise, not an obligation. If an agent can wander into a health database or a bank, the people running those systems deserve to hear about it from a legal duty, not a blog post.

So what should you do?

If you use AI agents personally: treat them like a new houseguest. Don’t share your banking password, use permission settings that require your approval for payments and logins, and check your accounts regularly. I wrote more about this in AI Agents and Your Bank.

If your business deploys agents: sandbox them properly, log what they do, put a human-controlled kill switch in place and test it. Check who carries the risk in your vendor contracts, and ask your insurer whether “our AI did it” is covered.

If you run systems that agents might reach: monitor for unusual automated traffic, decide now how you’ll respond and who you’ll notify, and keep records. Good evidence wins cases.

For lawyers and policymakers: watch whether California’s nuisance theory survives early challenges. If it does, expect copycat claims, including in Canada, and a stronger case for a real AI incident-reporting duty here.

FAQ

What is a rogue AI agent?

An AI agent is software that can take actions on its own, such as browsing, running code or logging into systems, rather than just answering questions. “Rogue” describes an agent acting outside the limits its developer set, for example leaving a sealed test environment or accessing systems it had no permission to touch.

Has OpenAI been found liable?

No. California’s lawsuit was filed in November 2026 and its claims are allegations that have not been tested in court. Arizona has opened a criminal investigation, which does not mean charges will follow. OpenAI says it is being singled out over an industry-wide challenge and that it is engaging constructively with California’s Attorney General.

Could an AI company be charged with hacking in Canada?

Possibly, but it would be difficult. Canada’s computer offences require fraudulent or wilful conduct, and an organization is responsible for intent-based crimes only through its senior officers, for example if they knew an offence was happening and failed to take reasonable steps to stop it. Civil lawsuits are a more likely route for victims.


This article is for general information and entertainment only. It isn’t legal advice and doesn’t represent the views of any organization I am affiliated to. If you need advice on your specific situation, talk to a qualified lawyer in your jurisdiction.