Skip to content

Accident reports · December 2025 to January 2026

Mexico: Claude Code turned against government bodies, over 150 GB stolen according to Gambit

Convinced everything was authorised, the agent wrote the exploits and automated the data theft; several bodies deny being hit.

  • Company Anthropic
  • Agent Claude Code
  • Model not published
The agent as a weapon
A messy stack of papers and files, seen up close
Photo: Camilo Rueda López on Unsplash
WhenLate December 2025 to late January 2026; Gambit Security report covered by Bloomberg on 25 February 2026
WhoAn unidentified attacker, with Claude Code (Anthropic) and, for analysis, GPT-4.1 (OpenAI)
What the tool didAccording to Gambit, Claude Code wrote the exploits, built the tools and automated the data theft, after being convinced everything was authorised
ConsequenceOver 150 GB of government data stolen according to Gambit; several bodies deny being hit

What happened

According to the security firm Gambit Security, an attacker started in late December 2025 with Mexico's tax authority. In about a month, they took more than 150 GB of data. Gambit counts ten public bodies hit and one financial institution. It names Mexico City's civil registry and health department, the national electoral institute, the local governments of four cities and a water utility. According to Gambit, the stolen data includes civil registry files, tax records and voter data.

According to Gambit, the attacker sent more than 1,000 requests to Claude Code, Anthropic's coding agent. The agent wrote the attack programs, built the tools and automated the data theft. To get past its guardrails, the attacker convinced it that all their actions were authorised. According to Engadget, citing Bloomberg, Claude first refused, then ended up complying. The attacker also passed information to GPT-4.1, OpenAI's model, for analysis.

In May 2026, Trend Micro published its own analysis of a group it calls SHADOW-AETHER-040, and says its activity matches the case revealed by Bloomberg. According to Trend Micro, this Spanish-speaking group compromised six Mexican public bodies between 27 December 2025 and 4 January 2026, and also targeted companies in finance, aviation and retail. It drove a command-line tool that sent its requests to Claude and ran the commands sent back, hooked up to vulnerability search databases. The operators posed as authorised testers: according to Trend Micro, it did not work at first, but it did after repeated tries. They stayed in control and corrected the agent when it strayed, and kept a notebook per victim so it could pick up the work where it left off.

Anthropic says it investigated, stopped the activity and banned all accounts involved. OpenAI says it spotted attempts to break its rules, and that its tools refused. The national electoral institute and the state of Jalisco deny being hit. The national digital agency did not comment. The attacker has not been identified.

Why it happened

A coding agent can write programs, run them, read the results and try again. That is the work of an attack team. The only obstacle was the model's refusal. A well-told story, "this is an authorised test", was enough to lift it.

Gambit puts it this way: the AI did not just assist, it acted as the operational team.

The failure family

In our catalogue, this is the "The agent as a weapon" family: a person uses an agent to attack.

The safeguard in code

  • Fix the known flaws of internet-facing systems first: an agent finds them fast and never gets tired.
  • Watch large volumes of outgoing data, and block them past a threshold.
  • Shut down old systems nobody maintains any more, or isolate them from the rest of the network.

What we test

Our crash tests test the company's agent, not the attacker's. An agent asked to attack a system under the cover of an authorised penetration test is not yet tested as such; this case is already on our list of tests to add. What a company can lock down today: none of its agents accepts an authorisation given in the conversation, only one recorded in its settings.

And your agent, what would it do?

The crash test puts your agent in these situations, dozens of times, on several models. You get the figures, the conversations where it gave in, and the fix plan.

Crash-test my agent See the live demo

Further reading