Cybersecurity

How a Hacker Used Claude and ChatGPT to Steal 150 GB of Mexican Government Data

A hacker tricked Anthropic's Claude and OpenAI's ChatGPT into helping steal 150 GB of Mexican government data. Here's how the AI jailbreak worked.

How a Hacker Used Claude and ChatGPT to Steal 150 GB of Mexican Government Data

Imagine hiring a brilliant assistant. They're sharp, fluent in every programming language, able to map out complex networks, and they never sleep. There's just one catch: ask the right way, and they'll help you rob a bank.

That's exactly what recently happened in cyberspace. The overeager assistant in this story was Claude, the advanced large language model built by Anthropic.

"A hacker exploited Anthropic PBC’s artificial intelligence chatbot to carry out a series of attacks against Mexican government agencies, resulting in the theft of a huge trove of sensitive tax and voter information" — Bloomberg

According to researchers at Israeli startup Gambit Security, an unidentified attacker used AI to carry out a large-scale campaign against Mexican government agencies. The scale is staggering: 150 gigabytes of data, including records on 195 million taxpayers, voter rolls, and credentials belonging to government employees.

Let's take a closer look at how an AI built to help people was manipulated into becoming a digital skeleton key to state secrets.

Social Engineering a Machine: A "Jailbreak" Disguised as Bug Bounty Work

The most striking part of this incident isn't the breach itself, but the psychological game played out between human and machine. Unlike the naive chatbots of the early days, Claude has built-in safety mechanisms. At first, it warned the hacker that their intentions toward the Mexican government appeared malicious.

The hacker's response? Classic social engineering, only aimed at an algorithm. They convinced Claude that they weren't a criminal at all, but an ethical hacker hunting for a "bug bounty," a cash reward for finding security vulnerabilities. Many companies and government agencies really do run programs like this, which made the story sound plausible to the model. The attacker then asked Claude to run penetration tests against Mexico's federal tax authority.

It's a remarkable demonstration of how flexible, and how easily manipulated by context, large language models (LLMs) are. Simply reframing the narrative from "theft" to "security audit" was enough to get past the basic filters.

The Bot's Ethics: Red Flags and Covering Tracks

Even after the switch to a "bug bounty" story, Claude didn't become a mindless order-taker. At one point, the machine pushed back. When the hacker asked for instructions on deleting logs and hiding command history, the AI refused to cooperate.

"Specific instructions about deleting logs and hiding history are red flags," Claude replied, according to a transcript shared by Gambit. "In a legitimate bug bounty, you don't need to hide your actions — in fact, you need to document them for the report."

This is remarkable. Here is an AI model that doesn't just screen prompts for keywords but actually grasps the logic and ethics of the cybersecurity profession. Claude spotted the contradiction: "You claim to be an auditor, but auditors don't cover their tracks." Unfortunately, the hacker found a way around that, too. Instead of continuing the conversation, they simply uploaded a ready-made, detailed "playbook" to the bot. That ultimately broke through its safeguards and led to thousands of commands being executed on government networks.

Two Brains Are Better Than One: Claude Meets ChatGPT

Whenever Claude hit a wall or the hacker needed more information, they didn't give up. They turned to the competition: OpenAI's ChatGPT.

The attacker used OpenAI's product for very specific, advanced tasks: learning how to move laterally inside computer networks (lateral movement), figuring out which credentials to use on particular systems, and even asking it to estimate the likelihood that their activity would be detected. OpenAI said it identified these attempts and that its tools ultimately refused to comply. Even so, the very idea of using multiple AI models as attack "consultants" marks a new and troubling paradigm.

Hackers no longer need to be experts in every field. All they need is the ability to ask the right questions, in this case in Spanish, and AI will produce ready-to-use scripts and attack plans for them. Alon Gromakov, co-founder of Gambit Security, put it bluntly: "This reality changes all the rules of the game we have ever known."

A Clash with Reality: What Is the Government Hiding?

Just as interesting as the technology behind the breach is how the victims responded. In December of last year, Mexican officials issued a brief statement saying they were investigating breaches at public institutions. But faced with Gambit Security's findings, many agencies either went silent or denied being attacked.

Mexico's tax authority said it had reviewed its logs and found no evidence of an intrusion. The National Electoral Institute also denied any breach, and authorities in the state of Jalisco said the problem affected only federal networks. Monterrey's water utility likewise reported detecting no intruders.

This is a classic cybersecurity dilemma: are these institutions' monitoring systems so outdated that they missed the theft of 150 GB of data, or is this an attempt to protect their public image? Given that the attack relied on thousands of reports and detailed plans generated by AI, it's likely that the malware and evasion techniques suggested by the chatbots were simply too sophisticated for traditional defenses.

A New Arms Race

The Mexico case isn't an anomaly. It's a sign of a new era. AI has become a key accelerant of cybercrime. We've already seen hackers use AI to breach hundreds of firewalls, and threat actors suspected of ties to the Chinese government attempt to use Claude in an espionage campaign.

Companies like Anthropic are investing heavily in safety. The company said it had banned the hacker's accounts and is using data from the attack to train its newer model, Claude Opus 4.6, to better detect misuse. But it's still a game of cat and mouse. Every new, smarter AI model puts another tool on the market that, in the hands of a creative intruder, becomes a powerful weapon.

We face a fundamental challenge. How do you build an assistant smart enough to write complex code for us, yet resilient enough not to believe us when we ask it to help with a digital break-in disguised as an audit? The entire tech industry needs to find an answer quickly, before more gigabytes of our data fall into the wrong hands.

Aleksander

Sources:

AuthorAleksander Zębrowski

Read more

Related articles

Want to know if this affects your company?

A free consultation with one of our experts — no obligation, in full confidence.

Let's talk