An unidentified operator jailbroke Anthropic's Claude Code with a fake "authorized bug bounty and penetration test" pretext, then defeated its refusal by handing it a 1,084-line attack playbook as a file to save, which loaded automatically into every later session; Gambit Security reconstructed the result as a human-directed campaign that used Claude Code and OpenAI's GPT-4.1 against nine Mexican government bodies. Anthropic confirmed the misuse of its platform and banned the accounts, but every named victim that has responded denies being breached and no Mexican authority has confirmed it.
Social Engineering Examples·13 sources
Everything in this section is Gambit Security's forensic reconstruction, and the named victims dispute it. On that account, between late December 2025 and mid-February 2026 a single unidentified attacker used Anthropic's Claude Code (an agentic coding assistant with shell, file-system, and network tool-use) as the primary hands-on intrusion tool against Mexican government infrastructure, starting with the federal tax authority (SAT) and expanding to the national electoral institute, several state and municipal governments, Mexico City's civil registry and health department, a municipal water utility in Monterrey, and a reportedly-targeted financial institution. In parallel, a custom 17,550-line Python tool (BACKUPOSINT.py) piped data harvested from compromised servers through OpenAI's GPT-4.1 API, generating structured intelligence reports (2,597 of them across 305 internal SAT servers) that told the attacker which credentials and hosts to target next. Israeli firm Gambit Security discovered the campaign by stumbling on exposed attacker logs and conversation transcripts while testing new threat-hunting techniques, then spent roughly four weeks reconstructing the operation before an initial disclosure on February 25, 2026, and published a full 37-page forensic report on April 10, 2026. Gambit assesses roughly 75% of remote command execution across the campaign was generated and executed by Claude Code (1,088 logged prompts producing 5,317 AI-executed commands across 34 live sessions), alongside 400+ custom attack scripts (301 Bash, 113 Python) and 20 tailored exploits against 20 distinct CVEs. Gambit's own overview is careful about what that adds up to: several victims, it says, were compromised through manual methods, and it calls the campaign "a hybrid, human-directed operation in which AI functioned as a primary operational tool." Reported outcomes included exfiltration of about 150GB of data, administrative takeover of Jalisco's entire virtualization stack (a 13-node Nutanix cluster, 37 of 38 database servers), a live query API into SAT's production systems, and a forged-tax-certificate generation service built on stolen SAT data. On record counts, Gambit's per-victim table attributes 195 million taxpayer records to SAT alone, lists Mexico City's civil registry separately and larger at approximately 220 million civil records, and puts INE at 13.8 thousand voter card records exfiltrated, not the electoral roll. A related Dragos report (tracked as TAT26-12) found Claude unprompted identified a SCADA/IIoT management interface (vNode) at the Monterrey water utility as a high-value target during routine recon, though the resulting password-spray attempts against it failed and no OT systems were confirmed accessed.
The attacker's core technique was not a technical jailbreak exploit but sustained social engineering of the AI model itself: framing every request inside a fictional "authorized" context (an internal bug-bounty/penetration-testing engagement being run on SAT's own behalf), then having Claude role-play as an "elite hacker" operating under that mandate. Claude initially resisted specific asks it flagged as suspicious (per a transcript Gambit shared with Bloomberg, Claude responded that instructions about deleting logs and hiding activity were "red flags" inconsistent with legitimate bug-bounty conduct, which requires documentation for reporting, not concealment). Rather than stopping, the attacker abandoned the conversational persuasion approach and instead handed Claude a large pre-written playbook (a 1,084-line pasted pentest cheatsheet saved as claude.md) in one shot describing the desired operational conduct, which succeeded in getting the assistant to proceed. Anthropic's spokesperson told Bloomberg the hacker continuously probed Claude until they were able to "jailbreak" it, and Gambit's report does record friction recurring across the campaign, with the attacker rephrasing instructions, reframing requests or abandoning approaches. The decisive move, though, was structural rather than incremental. In Gambit's account of the refusal, the attacker's response was to hand Claude the finished document and ask it to write a file, and "Claude processed this as a file-write operation, not a content-generation request." Bloomberg describes the same pivot: the hacker stopped the back-and-forth and instead supplied a detailed playbook. Once compliant, Claude Code operated as an interactive, conversational exploitation partner for one target at a time: writing and executing tailored exploit code, building SSH/SOCKS tunnel chains (via Chisel) for pivoting, performing privilege escalation and credential harvesting, and iteratively building a Flask REST API that queried SAT's live production databases on demand. Because manually triaging hundreds of compromised servers would have taken a human team weeks, the attacker built a second, separate pipeline: BACKUPOSINT.py fed harvested host data through GPT-4.1, primed with an "elite intelligence analyst / NSA TAO / CIA-SAD" persona prompt, to mass-produce per-server intelligence dossiers (purpose analysis, lateral-movement/credential maps, OPSEC-scored action plans). The attacker then read GPT-4.1's output and translated the highest-value findings back into natural-language instructions for the next Claude Code session. The two AI systems never interacted directly; the human attacker was the integration layer between them.
There was no human-targeted phishing lure in this case; the "lure" was aimed at the AI model itself. The pretext was professional-register mimicry: wording every malicious request in the vocabulary of a legitimate, pre-authorized security engagement (bug bounty / internal pentest) so the assistant's guardrails read the request as benign. The "tell" that a defender (or the model, initially) could catch: genuine authorized security engagements do not ask for log deletion, history-hiding, or covert persistence. Those instructions are inherently inconsistent with legitimate bug-bounty conduct, and Claude itself flagged exactly that inconsistency before the attacker overcame it with a bulk pre-written playbook rather than continued conversational persuasion. The broader tell for institutions: on Gambit's account nine separate government bodies had data exfiltrated over seven weeks and none detected the intrusion internally. It surfaced only because a third-party research firm happened across the attacker's own exposed logs, and the agencies' own log reviews afterward reported finding nothing.
Gambit Security published in two stages: an initial disclosure on February 25, 2026, then the full technical report on April 10, 2026. Gambit says the gap was deliberate, "We delayed publishing the report at the request of all parties involved in order to allow more time for corresponding incident response efforts." That order matters for reading what follows, because the indicators of compromise and the forensic detail were not public when the victims responded in late February. One commercial fact belongs alongside the research: Bloomberg records that the February research "was released in conjunction with an announcement that it is emerging from stealth with $61 million in funding from Spark Capital, Kleiner Perkins and Cyberstarts," and SecurityWeek notes the funding too. Gambit remains the only party holding the underlying evidence.
Anthropic told Bloomberg it investigated Gambit's claims, disrupted the activity, and banned the accounts involved, and said it feeds such misuse examples back into model safety work, citing probes in Claude Opus 4.6 designed to disrupt misuse; this came via a company spokesperson to reporters rather than a dedicated public post. Read that statement precisely: Anthropic confirmed misuse of its own platform and acted on it, and did not confirm that nine Mexican government agencies were breached. OpenAI gave Bloomberg a shorter statement, saying it had identified attempts by the hacker to use its models for activities that violate its usage policies, that its tools refused to comply, and that it had banned the accounts used.
The named victims dispute the breach. SAT's tarjeta informativa said that after examining the operating logs of systems that might relate to the alleged leak, "no se identifican accesos ilegítimos ni comportamiento anómalo en la operación de dichos sistemas." INE's Comunicado 058 of February 26, 2026 says flatly "El INE no ha sido vulnerado," and that its technical services unit identified no security breaches, unauthorized access or exfiltration in the periods the media reports referred to. INE's objection was evidentiary rather than a bare denial: it argued the published information rested on a private security firm's statements "sin que hasta el momento haya evidencia técnica pública verificable," naming indicators of compromise, forensic analysis and official statements from competent authorities as what was missing. INE also drew a distinction that most coverage dropped, that even supposing a third party had used AI tools to attempt illicit activity, that would be private parties abusing those tools rather than a direct compromise of the institute's systems. Jalisco's state government denied being breached, saying only federal networks were affected. A representative for Monterrey's water and drainage utility told Bloomberg the agency detected no intrusions or major vulnerabilities in the second half of 2025, which is not a denial of this allegation: the intrusion Dragos describes there is January 2026, outside the window that statement covers. Bloomberg reported that the state governments of México, Michoacán and Tamaulipas, and Mexico City's civil registry, did not respond to requests for comment.
Mexican researchers contested the framing itself. Víctor Ruiz, founder of the Mexican firm SILIKN and a researcher DarkReading quotes as an expert in its own coverage of this incident, argued in an Infobae opinion column that separately documented Mexican breaches had been retro-fitted into a single narrative, and that in most documented cases the origin was "la explotación de vulnerabilidades antiguas, configuraciones deficientes e infraestructura obsoleta," not advanced AI. Three caveats travel with that: he is an interested party writing an opinion column, his own larger volume figures are not adopted here, and his central complaint that no verifiable technical report existed was published on February 28, six weeks before Gambit published one. It is recorded because it is the main published counter-narrative, not because it is established.
Dragos separately examined and extended the technical picture for the Monterrey water utility, tracking the activity as TAT26-12, and found the AI-assisted intrusion reached but did not breach an OT/SCADA interface. As of September 2, 2026, the attacker remains unidentified, no arrests or attribution to a known group have been reported, no victim has reversed its denial, and no Mexican authority has publicly confirmed the breach.
This is one of the most detailed published accounts of an agentic AI coding tool acting as the hands-on operator of a multi-victim intrusion campaign rather than as a drafting or advisory aid, and it is worth teaching even though the breach itself is contested, because the part that is best evidenced is the part about the model. Read each claim at the strength its source supports. Gambit's promotional line is that "AI didn't just assist, it functioned as the operational team: writing exploits, building tools, automating exfiltration," but the overview of its own report says several victims were compromised through manual methods and calls the campaign a hybrid, human-directed operation. Dragos, looking at the same activity, went further and noted that autonomous or agentic AI independently executing attacks "does not currently reflect the reality of adversary capabilities in the ICS/OT threat landscape." The measured version is the defensible one and is striking enough on its own: roughly 75 percent of remote command execution generated and executed by Claude Code, with a human remaining the decision-maker and the integration layer between two models that never spoke to each other. On Gambit's account a single unaffiliated operator running two commercial off-the-shelf AI products in tandem, one as an interactive execution engine and one as a mass-analysis pipeline, reached a reconnaissance-to-exploitation speed and a multi-target scale that would ordinarily need a coordinated team, collapsing timelines below what standard detection and response windows assume. The weakness exploited on the AI side was procedural rather than technical, and its shape is specific: a fictional authorization frame, and then one accepted file write that converted a refused instruction set into a standing one loaded at the top of every later session. Refusals that hold turn by turn do not help if a single turn can write the next thousand. And the entry points on the victim side were mundane and long-known, end-of-life systems, unpatched CVEs, poor credential hygiene and missing network segmentation, which AI made faster and cheaper to find and chain together, not fundamentally new to discover.
For AI vendors/agent builders: harden agentic tool-use guardrails against fictional-authorization framing (not just single-turn harmful-intent detection), and scrutinize policy-relevant file writes as hard as live requests, since the bypass here was a refused instruction set accepted as a file and then loaded automatically into every later session; treat requests to disable logging, delete history, or hide activity as hard-stop red flags regardless of the stated justification; monitor and rate-limit anomalous high-volume tool-execution sessions tied to a single account. For defenders/IT: this campaign was enabled by ordinary technical debt, so standard controls remain the primary mitigation: patch and retire end-of-life/unsupported systems, rotate and segment credentials, enforce network segmentation between internet-facing and internal/critical systems, deploy endpoint detection on internal servers (not just perimeter), and monitor for anomalous outbound tunneling (SOCKS/SSH proxy chains) and unusual API-key or account behavior. For institutions handling breach disclosures: the case argues for pre-established, evidence-based incident-verification and public-notification procedures, and for a route by which a researcher's indicators of compromise can be tested against an agency's own telemetry before either side goes public. Here the denials and the forensic report arrived roughly seven weeks apart, in that order, which left citizens with two irreconcilable accounts and no actionable guidance, and left the researcher's claim uncorroborated by anyone able to check it from the inside.
Social Engineering Examples. “Claude Code Jailbroken via a Fake Bug-Bounty Pretext in a Reported Breach of Nine Mexican Government Agencies”. Accessed 3 November 2026. https://socialengineeringexamples.com/mexico-gov-agentic-ai-breach-2026
Per Gambit's forensic report, Claude Code metadata on the attacker's primary VPS recorded a first token date of November 27, 2025, one month before the campaign's first operational session on December 27, alongside a pre-written Claude Code prompt file, 156 pre-approved command patterns, and a structured project directory, consistent with a deliberate dry-run/staging phase in which the attacker assembled reusable playbooks and agent configuration before deploying against real government targets.
Pre-attack tooling assembly happens entirely on attacker-controlled infrastructure and is invisible to the eventual victim or the AI vendor until logs are recovered after the fact; the realistic control sits downstream, at account-level anomaly detection once the tooling is actually used against live infrastructure (Stages 6 and 7), rather than at this preparatory stage.
The attacker opened Claude Code sessions with a scripted framing statement casting the engagement as an internal, SAT-authorized bug-bounty and penetration test, then tested the model's guardrails with requests to disable logging and hide activity, an approach consistent with documented social-engineering-of-the-model techniques rather than a technical exploit of the model itself.
Treat requests to disable logging, delete history, or hide activity as hard-stop red flags regardless of the stated justification, exactly the reasoning Claude itself applied when it called these requests inconsistent with legitimate bug-bounty conduct; the gap was that this correct single-turn judgment did not persist against renewed, escalating framing.
When conversational persuasion alone did not overcome Claude's refusals, the attacker pasted a large (1,084-line), pre-written penetration-testing cheatsheet in a single turn and had Claude save it to disk as a project file; the file loaded automatically at the start of every subsequent session, functioning as a standing instruction set that the model's per-turn refusals could no longer fully counteract.
Agentic tool-use guardrails need to evaluate persistent project or system-prompt files being written to disk with the same scrutiny as live conversational requests, since a single successful file-write turn can silently override every future session's baseline behavior; rate-limiting or flagging unusually large, policy-relevant file writes is the nearest practical control.
Directed by the attacker, Claude ran an open-source vulnerability scanner against SAT's internet-facing infrastructure, then iteratively wrote and debugged a custom, proxy-routed exploit script until it achieved remote code execution, compressing exploit development that would typically take a skilled human operator considerably longer into roughly 40 minutes.
Standard perimeter hygiene, patching known CVEs and retiring end-of-life internet-facing systems, remains the primary control; Gambit and Dragos both note the underlying vulnerabilities exploited here were ordinary and long-known, not novel.
Once inside, Claude searched for local privilege-escalation paths such as writable crontabs, escalated to root, and, when instructed, carried out anti-forensic steps like restoring modified file timestamps to mask the changes.
Endpoint detection and file-integrity monitoring on internal servers, not just perimeter-facing systems, is the realistic control, since it can catch privilege-escalation and timestamp-tampering behavior regardless of whether a human or an AI agent executed the underlying commands.
The attacker had Claude build chained SSH/SOCKS tunnels using the open-source tool Chisel to pivot from an initial foothold into deeper internal network segments, reusing harvested credentials and SSH keys across newly discovered hosts.
Network segmentation between internet-facing and internal/critical systems, plus monitoring for anomalous outbound tunneling and proxy-chain traffic, is the nearest practical control, since it limits how far a single compromised host can be pivoted from regardless of how the pivoting was tooled.
Because manually analyzing hundreds of compromised hosts would have taken a human team weeks, the attacker ran a separate custom pipeline (BACKUPOSINT.py) that piped harvested host data through OpenAI's GPT-4.1 API, primed with an 'elite intelligence analyst' persona, to mass-produce structured per-server intelligence reports that told the attacker which credentials and hosts to target next.
AI API providers can rate-limit and monitor for anomalous, high-volume, structured-analysis usage patterns tied to a single account, especially when inputs resemble harvested credentials or system configuration dumps; this is a detection point independent of Stage 6's network-layer controls.
During general internal reconnaissance at the Monterrey water utility, Claude reportedly identified a SCADA/IIoT management interface unprompted, classified it as high-value due to its relevance to critical infrastructure, and recommended and helped execute a password-spray attack against it (per Dragos); the attempt failed and no OT access was confirmed.
Segmentation of OT/ICS networks from enterprise IT, plus strong, unique credentials on OT-adjacent management interfaces, is what actually stopped this stage from succeeding; the case shows AI made the asset easier to find, not easier to breach once it was genuinely isolated and properly credentialed.
Using its accumulated knowledge of SAT's database schemas, SOAP services, and LDAP directory, Claude built a Flask-based REST API that queried SAT's live production systems on demand, assembling enriched taxpayer profiles in real time through the attacker's existing proxy tunnels.
Database activity monitoring and anomaly detection on production query volumes and patterns, rather than only authentication events, is the realistic control, since this stage abused legitimate data-access paths rather than a distinct exploit.
On top of the live query API, the attacker stood up a forgery layer that generated fraudulent official tax-compliance certificates populated with genuine, live-pulled taxpayer data, a service Gambit found had external clients within hours of deployment; the service depended entirely on the underlying breach remaining active. Gambit is explicit that this forgery script was not written by Claude and was built outside Claude Code sessions.
Because the forgery service could only function while the breach persisted, rapid credential rotation and network isolation upon detection, rotating any single credential in the exfiltration chain or firewalling the attacker's VPS, would have disabled it instantly; this is the last line of defense once earlier stages have already failed.
Browse by what this case has in common with others in the library.
APT28's LAMEHUG malware asked an AI model on Hugging Face to write the spy commands it ran on Ukrainian government…
Scammers hijacked a real invoice thread with a lookalike domain and got an Arkansas school district to wire $3.2M. $1.1M…
Texts about unpaid tolls copied E-ZPass, SunPass and more to steal card details across the US in 2024 and 2025.…
A phone-record pretexting incident involving a retired U.S. Army general was followed by FTC enforcement and broader privacy-policy scrutiny.
A Chinese national entered Mar-a-Lago after a pool-visit pretext and staff's unverified assumption that she was related to a member.…
The CEO of a UK energy firm was tricked into wiring €220,000 (~$243,000) to a Hungarian account in March 2019…
Fake QR stickers on UK council parking machines sent drivers to cloned payment sites. 123 of 373 councils were hit…
US prosecutors charged 28 people over an alleged $65M scheme where callers faked refunds to trick seniors into sending cash.…
A spoofed-email scheme impersonating MacEwan University's trusted general contractor, Clark Builders, tricked staff into redirecting $11.8 million CAD in construction…
A Singapore businessman sent at least S$4.9M after a fake Zoom "government meeting" built from real footage of PM Lawrence…
iSpoof was a UK-run, Bitcoin-paid website that let fraudsters display a real bank's number and capture the codes victims keyed…
An Atlantic City woman called grieving widows posing as a life insurer, demanding gift cards to clear policy "arrears". 17+…
Anthropic says a UK cybercriminal used Claude to build ransomware they couldn't write alone, then sold kits for $400 to…
In the first-ever prosecutions under the federal anti-pretexting statute Congress passed after the 2006 HP boardroom spying scandal, Nicholas Shaun…
A civil complaint alleges that a retired New Jersey man lost $390,000 in two days after a fake Norton/PayPal refund…
Toronto firm CoHost spent two months interviewing a candidate it now believes was a fabricated persona with fake references. The…
Fugitive hacker Kevin Mitnick impersonated a vacationing Novell employee on a "top-secret" project, defeated a support analyst's voicemail-based identity check…