Hermes AI Agent Runs Unattended in Cyberattack on Thai Finance Ministry

2 Sources

Share

A threat actor used the open-source Hermes AI agent in YOLO mode to automate post-exploitation during an alleged breach of Thailand's Ministry of Finance. Hunt.io and Bob Diachenko discovered 585 files and 470 MB of attack tooling on exposed servers, revealing how the AI agent scanned for privilege escalation paths, crawled personnel records dating to 2012, and executed commands without human approval—marking a shift in how AI tools enable cyberattacks.

Hermes AI Agent Deployed in Autonomous Cyberattack

A threat actor has used the Hermes AI agent to automate post-exploitation activities during an alleged breach of the Thai Finance Ministry, marking a significant evolution in how attackers leverage artificial intelligence for network intrusion. The open-source AI assistant, developed by Nous Research for legitimate tasks like managing email and running automated chores, was configured in unattended YOLO mode to execute dangerous commands without human approval at each step

1

.

Source: BleepingComputer

Source: BleepingComputer

Threat intelligence firm Hunt.io and security researcher Bob Diachenko discovered the operation after finding exposed web directories on a Hong Kong-hosted server between July 9 and July 13. The directories contained 585 files totaling approximately 470 MB, including exploit code, web shells, HTTP tunneling tools, custom scripts, stolen credentials, compiled payloads, and logs generated by the Hermes AI agent

2

. The operator left the agent's own logs sitting on a web server with directory listing enabled, providing a rare window into AI-assisted intrusion techniques

1

.

Unattended YOLO Mode Removes Human Oversight

What separates this cyberattack from previous AI-assisted intrusions is that the attacker ran Hermes on their own infrastructure without vendor oversight. When Anthropic disclosed a Chinese group using Claude Code for espionage in November, attackers had to trick the model into cooperating, and Anthropic banned their accounts once detected. The Hermes AI agent, however, runs on the operator's own machine with no vendor watching and no account to ban

1

.

The operator activated YOLO mode—a documented feature available through a --yolo flag at launch, a /yolo command mid-session, or a HERMES_YOLO_MODE=1 environment variable. This setting removes prompts requiring human approval for dangerous commands, allowing the AI agent to execute tasks autonomously. The project's configuration guide explicitly warns users to "only use this in trusted, sandboxed environments"

1

. One layer of AI agent safeguards survived: a hardline blocklist that refuses commands which would wipe the machine the agent is running on

1

.

Post-Exploitation Activities Targeting Ministry Systems

The operator was already inside the Thai Finance Ministry network before the Hermes AI agent started working. Hunt.io recovered a hidden web shell planted on a ministry web server, scripts written against named internal Hadoop systems, and stolen credentials hardcoded into a mail-testing script

1

. Five files named call_00_*.txt hold the agent's operational turns: Linux kernel vulnerability scanning against a ministry host, a second LinPEAS run, a sweep for elevated-permission binaries, a filesystem listing, and a recursive crawl of the web root belonging to the Office of the Permanent Secretary

1

.

Source: Hacker News

Source: Hacker News

The AI agent executed system enumeration tasks and searched for privilege escalation paths without exotic commands—LinPEAS, a standard script that hunts for privilege escalation paths on Linux, searches for files carrying elevated permissions, and directory crawls. A person would type the same things, but what changed is that nobody had to approve each one

1

. The agent cataloged personnel records dating back to 2012, including PDF, DOC, and XLS files with performance assessments. However, the logs show the agent reading the directory, with no evidence showing the files leaving the network

1

2

.

Misconfigured Hadoop Database and Custom Exploits

Most of the custom code targeted the ministry's misconfigured Hadoop database cluster, where the organization stores and queries large volumes of data. A script called hive_rce_py2.py connects to HiveServer2, the SQL front end for Hadoop

1

. The human operator handled parts requiring target-specific knowledge—Hunt.io's threat intelligence investigation shows a password list built from the ministry's own department abbreviations rather than a dictionary, and shellcode carrying hardcoded paths into the ministry intranet

1

.

The scan script was not stock software. A customized linpeas.sh checked for four 2026 Linux kernel vulnerabilities across three families: Copy Fail (CVE-2026-31431), Dirty Frag (CVE-2026-43284 and CVE-2026-43500), and DirtyClone (CVE-2026-43503). Each vulnerability hands a local user root access where prerequisites hold, which for Dirty Frag and DirtyClone means CAP_NET_ADMIN capability

1

.

Chinese Infrastructure and Attribution Indicators

The operator's SSH session into the staging server originated from 103.97.0[.]57 in Hong Kong. The agent's web interface password contains the Chinese word Leishen, meaning thunder god, and a key for FOFA, a Chinese asset-search service, sits alongside it

1

. Hunt.io linked the initial server to additional attacker-controlled infrastructure through shared TLS certificates, discovering servers in Malaysia and Hong Kong connected to the operation

2

.

The same server previously hosted a ShadowPad controller and now runs a VShell command-and-control listener. Hunt.io assesses with low-to-medium confidence that the operator is Chinese-speaking or fluent in the language, though the firm names no specific group

1

. The directories also contained Windows and Linux builds of a previously undocumented Go-based implant that the operator called Hades

2

.

Thailand's national CERT and cybersecurity agency were notified on July 15, though neither had published anything by July 24

1

. The Ministry of Finance has not confirmed that its systems were breached, and some recovered artifacts only show that particular systems were targeted rather than successfully compromised

2

. The findings indicate that the Hermes AI agent did not independently decide to target the ministry—instead, an operator supplied objectives and tooling while YOLO mode allowed it to carry out routine commands without constant supervision

2

.

Today's Top Stories

© 2026 TheOutpost.AI All rights reserved