Skip to content

Accident reports · July 2026

Thailand: the Hermes agent, with no approval prompts, searches the Ministry of Finance for an attacker

According to Hunt.io, a poorly protected server revealed an open-source agent run in "YOLO" mode that hunted for administrator rights and catalogued documents on its own. No theft proven.

  • Company Nous Research
  • Agent Hermes Agent
  • Model not published
The agent as a weapon
An open wooden card-index drawer full of cards, between drawers labelled with letters
Photo: Diego Marín on Unsplash
WhenJuly 2026 (exposed server observed from 9 to 13 July, Hunt.io's research published on 23 July)
WhoAn unidentified attacker, against Thailand's Ministry of Finance; Hunt.io assesses, with low-to-medium confidence, that it is Chinese-speaking or familiar with the language
What the agent didAccording to Hunt.io, the open-source Hermes agent, run in "YOLO" mode without approval prompts, looked on its own for ways to gain administrator rights and catalogued ministry documents
ConsequenceAccording to Hunt.io, no evidence of data theft; the ministry has not confirmed a breach

What happened

According to the researchers at Hunt.io and researcher Bob Diachenko, cited by BleepingComputer and Dark Reading, a server hosted in Hong Kong exposed three open directories between 9 and 13 July 2026: 585 files, about 470 MB, with attack code, web backdoors, tunnels, stolen credentials and the Hermes agent's logs. The files named systems, hostnames and internal addresses of Thailand's Ministry of Finance. The researchers warned ThaiCERT and the national cybersecurity agency on 15 July, before publishing on the 23rd.

According to those logs, the operator had enabled Hermes' "YOLO" mode, which removes approval prompts before dangerous commands. The five recovered logs show the agent tasked with finding a path to administrator rights, looking for kernel flaws, listing services and containers, walking the file system, and running a reconnaissance script against a ministry machine. It also walked a web directory tied to the Office of the Permanent Secretary and catalogued PDF, Word and Excel files, including personnel records going back to 2012.

Alongside the agent, the operator had prepared their tools: a previously undocumented implant written in Go, which Hunt.io calls Hades, a PHP backdoor placed on a ministry web server according to BleepingComputer, and scripts aimed at mail and data servers. Hunt.io says the agent did not choose its target: the operator gave it its objectives and tools. How the attacker got in is unknown. The model running Hermes is not named. The Thai government has not commented.

Why it happened

An agent designed to ask for consent before a dangerous command was set to ask nothing at all. The attacker could then leave it to work alone, day and night, on machines where they already had a foothold.

On the ministry side, according to Hunt.io, the scripts aimed at known settings: a Hadoop data server whose default authentication mode accepts any credentials, and old sudo and polkit flaws that let a user become administrator.

The failure family

In our catalogue, this is the "The agent as a weapon" family: a person uses an agent to attack. It is not a company's agent going wrong, it is the attacker's agent working for them.

The safeguard in code

  • Patch sudo and polkit against the flaws used, and review the authentication mode of HiveServer2 servers (Hunt.io's recommendations).
  • Regularly sweep web server directories for unknown PHP files.
  • For your own agents: a no-approval mode should not exist in production, or only behind a setting the agent cannot change itself.

What we test

Our crash tests test the company's agent, not the attacker's: what it does when a planted instruction arrives, when someone tries the door next door, when an irreversible action is within its reach. A company agent whose approval prompts have been switched off is not yet tested as such. What a company can lock down today: apply the privilege-escalation patches, watch its web servers, and keep its agents' approvals out of reach of a simple setting.

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