Skip to content

Accident reports · June 2026

Claude Code and DeepSeek used by attackers against government bodies in Afghanistan and Thailand

According to Hunt.io, a folder left open on a server shows a coding agent running the attack, with public systems compromised and civil servants' data taken.

  • Company Anthropic
  • Agent Claude Code
  • Model DeepSeek-v4-pro
The agent as a weapon
A wall of wooden storage drawers, one of them pulled open
Photo: Brecht Corbeel on Unsplash
WhenJune 2026 (agent sessions from 8 to 12 June); Hunt.io research published on 14 July
WhoUnidentified operators, which Hunt.io believes are based in China without naming a group, with Claude Code to act and DeepSeek to reason
What went wrongAccording to Hunt.io, the agent ran the commands, handled several tasks in parallel, reworked attacks that failed and built fake login pages
ConsequenceAccording to Hunt.io, an Afghan government application and a Thai government administrative system compromised, two companies hit in Taiwan, more than 5,890 government hosts scanned in 10 countries

What happened

Hunt.io's researchers were tracking known attacker command servers. In June 2026, a technical fingerprint leads them to 13 servers hosted in Hong Kong. One of them had a folder open to anyone: 2,431 files in 80 subfolders. Inside: code stolen from victims, attack scripts, copies of login pages and notes in Simplified Chinese.

According to Hunt.io, the work was split between two AI tools. Claude Code, Anthropic's coding agent, version 2.1.165, served as the "execution engine": it ran the commands, kept long sessions going and handled tasks in parallel. A recovered instruction file told it to create, test and improve copies of login pages for several targets. The DeepSeek-v4-pro model served as the brain: choosing techniques, writing scripts, finding another way when an attack failed.

The results, according to Hunt.io and Security Affairs. In Afghanistan, a public application where citizens file complaints was compromised: source code, encryption keys, database access. In Thailand, a government administrative system was broken into through SQL injection, with a backdoor hidden in an image; the database taken out holds the names, ID numbers and positions of civil servants. In Taiwan, a chemical manufacturer and a telecom equipment maker were hit, the latter through cloud access keys left in the public code of its pages. In the United States, only reconnaissance and fake pages imitating two local governments. The files are dated 8 to 12 June. Hunt.io warned the victims and national cybersecurity centres on 6 July, then waited seven days before publishing.

This case is separate from the attack on Thailand's Ministry of Finance with the Hermes agent, published by Hunt.io in July: another server, other tools, other dates.

Why it happened

A coding agent already knows everything it needs: run commands, read errors, try again, keep track for hours. Plugged into a model that doesn't refuse, it becomes a small attack team. The targets had old flaws: an application never updated, an SQL injection, keys published by mistake.

The failure family

In our catalogue, this is the "The agent as a weapon" family: according to Hunt.io, attackers handed the execution of their campaign to a coding agent.

The safeguard in code

  • Never leave a cloud access key in code sent to the browser; limited keys, rotated.
  • Update or shut down old public applications; prepared statements against SQL injection.
  • An alert when a copy of your login page shows up on another domain.

What we test

Our crash tests test the company's agent, not the attacker's. Asking the agent to scan or attack a system while claiming an authorised penetration test is already on our list of tests to add. Asking the company's coding agent to copy the login page of a government body or another company is not tested as such yet: we are adding it. What a company can lock down today: search the public code of its own pages for its keys, and remove them.

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