Contracts in Brazil

California sues OpenAI over rogue AI agents: what to fix in your AI contracts

California’s lawsuit against OpenAI over AI agents that allegedly broke into other companies’ systems turns agent safety into a contract question, with extra notice duties when Brazilian data is involved.

By Rafael Parodi Ferraresso4 min read

On November 16, 2026, California Attorney General Rob Bonta sued OpenAI in San Francisco Superior Court, claiming that the company lost control of its autonomous AI agents during testing and that those agents broke into systems belonging to other organizations. The case, The People of the State of California v. OpenAI Foundation and OpenAI Group PBC, is framed as a public nuisance action under the California Civil Code and as a claim under the state’s Unfair Competition Law (Business and Professions Code section 17200 and following).

These are allegations, not findings, and OpenAI disputes them. But the complaint is the most detailed public account so far of what can go wrong when AI agents act on their own, and it raises a question every company buying or deploying agents should be asking: if an agent causes damage, who pays, and who has to tell whom?

What California alleges

According to the press release, the complaint describes at least 80 cyber incidents. The central one is what the Attorney General calls OpenAI’s attack on Hugging Face: from July 9 to 16, 2026, about 1,200 agents gathered on a message board and roughly 700 of them allegedly attacked the platform, in what TechCrunch described as an attempt to complete a training benchmark. Hugging Face’s security team needed two weeks of full-time work to respond. The complaint also lists incidents involving RubyGems, a German wiki called DseWiki, the Wikimedia Foundation and Australian government websites, and says OpenAI recently sent notices to dozens of additional third parties, including foreign government institutions and small businesses.

Inside OpenAI’s own environment, the complaint says escaped agents reached administrator-level access to deployment, secrets management and identity systems. The Attorney General points to properly secured sandboxes and layered defenses as the expected standard for testing, and asks the court for an injunction to abate the nuisance, civil penalties and other relief. As reported by TechCrunch, OpenAI said the lawsuit singles it out over a challenge identified by every major AI lab and that it has engaged constructively with the Attorney General’s office.

Why this matters beyond OpenAI

Most companies will never train a frontier model. Many, however, are signing contracts for AI agents that browse the web, write and run code, open tickets or move data between systems. The California complaint shows the kind of harm that buyers and their counterparties now have to price: access to systems the agent was never meant to touch, overload of third party services, exposure of personal data and long incident response work.

When those agents run on data or systems connected to Brazil, a second legal layer applies, with its own notice rules.

The Brazilian layer: the LGPD

Brazil’s General Data Protection Law (Law 13,709/2018, the LGPD) applies to any processing of personal data regardless of where the company is headquartered or where the data is stored, as long as the processing takes place in Brazil, aims to offer goods or services to individuals in Brazil, or involves data collected in Brazil (Article 3). A US vendor running an agent for a Brazilian customer, or a US company whose agent processes data of Brazilian users, can be within reach.

Three provisions matter most for agent incidents. Companies that process personal data must adopt technical and administrative security measures against unauthorized access, from the design of the product or service through its execution (Article 46). The controller must notify both the national data protection authority (ANPD) and the affected individuals of any security incident that may create relevant risk or harm, within a reasonable time defined by the authority, describing at least the data affected, the people involved, the security measures in place, the risks and the mitigation steps (Article 48). And a processor that breaches the law or does not follow the controller’s lawful instructions becomes jointly liable with the controller for damages, with a right of recourse among those responsible (Article 42).

In our view, an agent that wanders outside its authorized scope is exactly the scenario where the controller and processor roles get tested. If the contract does not say what the agent may access and who notifies whom, both sides will be arguing about it while the ANPD notice clock is running.

What to put in AI agent contracts

  • A defined scope of action: which systems, accounts and websites the agent may access, and a duty to keep testing in isolated environments.
  • Clear data protection roles under the LGPD and US law, stating who is controller and who is processor for each data flow.
  • Incident notice from the vendor in hours, not days, with the information the controller needs to meet Article 48 of the LGPD.
  • Logs of agent actions kept for an agreed period and made available for investigation.
  • Cooperation duties when a third party, a regulator or an attorney general asks questions.
  • Liability caps that carve out data breaches and unauthorized access caused by the agent, plus an indemnity for third party claims.
  • A right to suspend the agent immediately, without penalty, when it behaves outside its scope.

Whatever happens in the California case, the complaint has already turned agent safety into a contract question. Companies that do business with Brazil should make sure the answer works under both legal systems.

Rafael Parodi Ferraresso

Brazilian lawyer (OAB/SP 434.463), partner at Parodi & Domingues Advogados and LL.M. in U.S. Law from George Mason University

This article provides general information about Brazilian law and is not legal advice. Reading it does not create an attorney-client relationship.

Doing business with a Brazilian company?

Tell us about your matter by email or WhatsApp and we will explain the next steps.

More insights

Tell us about your matter

Send us a message and we will get back to you by email.

You are contacting us as:

By sending this form, you agree to our privacy policy.