Hermes AI Agent Attack: Autonomous Post-Exploitation Hits Thailand Ministry of Finance

Proactive Security for the AI Era
NodeZero continuously and autonomously pentests infrastructure, identity, cloud, and now web applications, chaining weaknesses across every domain the way real attackers do. Every finding ships with replayable proof showing exploitable business impact, not theoretical risk.
An autonomous AI agent with zero human approvals per step breached Thailand's Ministry of Finance in July 2026, running reconnaissance, privilege escalation, and credential harvesting across government infrastructure while leaving 585 files and 470 MB of attack tooling exposed on a Hong Kong staging server.
The Hermes AI agent attack is the first publicly confirmed case of an autonomous AI tool conducting multi-stage government intrusion. Hunt.io researchers discovered the breach after spotting open directories containing Hermes session logs, VShell payloads, and a custom backdoor called Hades. The attacker enabled YOLO mode, Hermes's setting that removes all approval prompts for dangerous commands, then supplied high-level objectives while the agent executed reconnaissance, privilege escalation, and credential access without human intervention.
The technical chain combined Hermes's autonomous tasking with the Hades implant, a Go-compiled backdoor communicating over HTTPS with URI paths designed to mimic legitimate web assets. Hades encrypted traffic with AES-256-GCM, supported SOCKS5 tunneling and screen capture, and embedded a kill-date schedule to reduce detection windows during off-hours.
Every security team needs to act today. Hunt.io confirmed 5,900 exposed Hermes Web UI panels with a single banner search query. Any organization running AI development or testing environments may be hosting an accessible Hermes instance that an attacker could seize and redirect. The four C2 IP addresses and one malicious domain involved in this campaign are blockable right now. This post covers those IOCs, three Sigma detection rules, and WAF configurations for ModSecurity, Cloudflare, AWS, and Azure.
How Does the Hermes AI Agent Automate Cyberattacks?
Hermes AI agent is an open-source autonomous agent released in February 2026 that operates as a persistent service with memory between sessions. It accepts high-level objectives from its operator and then autonomously determines and executes the individual steps required to complete them, including running shell commands, interacting with APIs, and calling external tools.
YOLO mode is the critical enabler. With YOLO mode disabled, Hermes requires a human operator to approve each dangerous command before execution. A prompt appears before the agent runs anything with elevated risk: file traversal, privilege escalation scripts, credential access, or network scanning. With YOLO mode enabled, every one of those approvals is bypassed. The attacker supplies an objective, disconnects, and the agent works through the kill chain without any human present.
The Thailand attackers supplied Hermes with objectives targeting the Ministry of Finance's network and let the agent run. Five recovered Hermes call logs documented the autonomous execution chain: the agent ran LinPEAS, a Linux privilege escalation enumeration script, to assess kernel vulnerabilities and SUID/SGID binary paths; performed recursive file system searches targeting the Office of the Permanent Secretary; scanned for open service ports including Hadoop's HiveServer2, Ambari on port 10000, and GlassFish on port 4848; and tested mail infrastructure via SMTP AUTH password spraying with a word list.
This attack illustrates a capability shift: attackers no longer need to sit at a keyboard executing each post-exploitation command manually. Just as LLM-generated tooling has automated Active Directory attacks, autonomous AI agents have now removed the human from post-exploitation execution entirely, reducing intrusion operations to objective-setting and tooling deployment.
Hades Implant: The Custom Backdoor Hermes Deployed
Hades is a custom backdoor compiled in Go that the attackers deployed on both Linux and Windows targets inside the Ministry of Finance network. The implant's command-and-control traffic uses HTTPS with URI paths that mimic legitimate web asset requests: /assets/app.min.js, /assets/vendor.js, and /assets/main.js. Without context, outbound HTTPS connections to those paths appear identical to a browser loading a web application's JavaScript files.
Traffic is encrypted with AES-256-GCM using keys hardcoded at build time, making decryption impossible without the implant binary. Hades includes operational security controls that distinguish it from commodity malware: a kill-date forces the implant to terminate after a configured date, and a working-hours schedule restricts C2 communication to defined time windows, both of which reduce dwell time in detection-sensitive periods.
On Windows, Hades supports ConPTY interactive shells, Registry Run key persistence, scheduled task creation, reflective PE loading into svchost.exe via process hollowing (T1055.012), and GDI-based screen capture. On Linux, the implant uses a standard PTY shell, cron-based persistence, shellcode execution, and SOCKS5 proxy support for pivoting deeper into the network.
The C2 servers used by Hades include 202.181.27.115 (Converged Communications Limited, Hong Kong), with the earliest certificate observed on June 26, 2026. The domain redhatupdating432.dnsrd.com resolved to the primary staging server at 43.246.208.207, using a name chosen to impersonate Red Hat package update infrastructure.
Briefings like this, every morning before 9am.
Threat intel, active CVEs, and campaign alerts, distilled for practitioners. 50,000+ subscribers. No noise.
Scope, Attribution, and Who Is at Risk
The Thailand Ministry of Finance breach is confirmed but has not been publicly acknowledged by the ministry. Hunt.io captured three open directories between July 9 and 13, 2026, totaling 585 files and 470 MB of attack infrastructure. The contents included Hermes session logs, VShell payload binaries for Linux and Windows, Hades implant binaries, a FOFA API key (a Chinese threat intelligence and reconnaissance platform), and a Hermes configuration file with the password "Leishen," the Chinese name for the Thunder God.
Attribution carries low-to-medium confidence that the operator is a Chinese-speaking threat actor or has intimate familiarity with Chinese-language tooling. The Hong Kong-hosted infrastructure overlaps with historical ShadowPad and VShell hosting patterns. Chinese-language artifacts appear across multiple recovered files. No threat actor group has been formally named or indicted.
Every organization running open-source AI agents, development environments, or AI testing infrastructure is now a direct target profile. Hermes is publicly available and installs in minutes. The 5,900 exposed Hermes panels Hunt.io found represent thousands of organizations already running accessible instances. An attacker who gains initial access to any environment can deploy Hermes as their autonomous post-exploitation engine. This follows the pattern established by AI agent attacks against enterprise SaaS platforms, where legitimate AI tooling gets repurposed to conduct attacks using the permissions of the authenticated context.
IOCs: Block These IPs, Domain, and Hashes Now
Hunt.io published the complete infrastructure list on July 24, 2026, after a 7-day responsible disclosure window. Block all four IP addresses at your firewall and proxy egress controls now. The redhatupdating432.dnsrd.com domain uses a Red Hat name impersonation to blend with legitimate update traffic and should be blocked at DNS across all resolvers in your environment.
Subscribe to unlock Indicators of Compromise
Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.
Sigma Detection Rules for Hermes AI Agent Post-Exploitation
No CVE-specific Sigma rule exists for Hermes AI agent attacks: the tool is a post-exploitation framework rather than a specific vulnerability, so detection targets the behavioral patterns it produces rather than exploit signatures. The three rules below cover the specific behaviors documented in the Thailand Finance Ministry breach: webshell spawning shell utilities from Linux web server processes, systematic Linux privilege escalation enumeration, and tool reconnaissance from web application servers on Windows.
All three rules require process creation telemetry from an endpoint agent. For Linux targets, auditd or a kernel-level agent such as Falco is required. The Linux Webshell Indicators rule monitors for Apache, Nginx, and Tomcat processes spawning utilities like whoami, ifconfig, or ip, which directly matches the post-shell-deployment Hermes behavior documented in this incident.
WAF rules below target the PHP webshell access pattern and the known Hermes campaign C2 IPs. Deploy all WAF rules in Count or Log mode for 24 hours to baseline false positives before switching to enforcement.
Subscribe to unlock Sigma Detection Rules
Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.
Subscribe to unlock WAF Detection Rules
Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.
How to Defend Against Autonomous AI Cyberattacks
Seven controls close the exposure documented in the Thailand Finance Ministry breach. Execute steps 1 and 2 immediately. Steps 3 through 7 require endpoint and network changes that may take 24 to 48 hours.
Subscribe to unlock Remediation & Mitigation steps
Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.
Why Hermes AI Agent Attacks Matter for Your Organization
The Hermes AI agent attack on Thailand's Ministry of Finance is not a proof-of-concept or a research demonstration. It is a confirmed operational breach of a government institution using an open-source AI tool any attacker can download and configure in minutes.
The capability demonstrated here is a qualitative change in attacker economics. Multi-stage post-exploitation previously required skilled operators who could execute dozens of commands, interpret results, adjust tactics, and maintain situational awareness across a breach. Hermes AI agent in YOLO mode reduces that requirement to a single high-level objective and a start command. The human bottleneck in the intrusion kill chain is gone.
The 27 published CVEs in Hermes's first 75 days, the 5,900 exposed panels, and the confirmed government breach together show this is not an edge case. AI agent tooling is now part of the operational threat actor toolkit, and the barrier to deploying it equals installing any other open-source package.
Your exposure is not limited to environments where you have deployed Hermes yourself. Any attacker who gains initial access can deploy it as their autonomous post-exploitation engine. Any exposed Hermes Web UI can be seized before your team discovers it. The IOCs, Sigma rules, and WAF configurations in this post are your immediate response layer. Apply them now.
The bottom line
The Hermes AI agent attack proves autonomous AI post-exploitation is operational. A threat actor used an open-source AI tool in YOLO mode to conduct unaided government intrusion across 16 MITRE ATT&CK techniques with zero human approvals per step. Block the four C2 IPs (43.246.208.207, 103.97.0.57, 118.107.222.232, 202.181.27.115) and the domain redhatupdating432.dnsrd.com at your firewall and DNS today. Hunt for dot-prefixed PHP shells in your web document roots. Audit every AI agent deployment in your environment for YOLO mode access before the next incident finds you first.
This analysis is generic. create a free account to score threats like this against your own stack.
Frequently asked questions
What is Hermes AI agent?
Hermes is an open-source autonomous AI agent released in February 2026. It runs as a persistent service with memory between task sessions, can interact with tools, and executes shell commands to complete objectives supplied by its operator. When configured in YOLO mode, it bypasses all confirmation prompts for dangerous commands and operates without human intervention at each step. The attacker supplies a high-level objective and the agent autonomously determines and executes the steps needed to complete it.
What does YOLO mode do in Hermes?
YOLO mode is a Hermes configuration setting that removes the approval prompts that would otherwise require a human operator to authorize each dangerous command before execution. With YOLO mode disabled, Hermes pauses before running high-risk actions such as file traversal, privilege escalation scripts, and credential access commands. With YOLO mode enabled, the agent executes those same commands unattended and without any human in the loop. This is the highest-risk configuration option in Hermes and the setting the Thailand Finance Ministry attackers used to operate autonomously.
What is the Hades implant used in this attack?
Hades is a custom backdoor compiled in Go that the attackers deployed on both Windows and Linux systems in the Thailand Finance Ministry breach. It communicates with its command-and-control server over HTTPS, using URI paths designed to look like legitimate web asset requests (/assets/app.min.js, /assets/vendor.js). Hades supports interactive shell sessions, SOCKS5 proxy tunneling, screen capture, and Registry Run key persistence on Windows, and cron persistence on Linux. Traffic is encrypted with AES-256-GCM using keys hardcoded at build time. The implant includes a kill-date to self-terminate outside scheduled operating hours.
How do you detect AI agent post-exploitation activity?
Detecting autonomous AI agent activity requires monitoring behavioral patterns rather than specific malware signatures. Key indicators include web server processes (Apache, Nginx, Tomcat) spawning shell utilities such as whoami, ifconfig, or uname; rapid sequential execution of Linux privilege escalation tools like LinPEAS; SUID/SGID binary enumeration commands; HTTPS beaconing from internal servers to external IPs on atypical intervals; and PHP files with dot-prefixed names mimicking system caches in web directories. Hunt.io confirmed that a single banner search for HermesWebUI surfaces 5,900 exposed panels, so monitoring for exposed Hermes UIs is itself a direct indicator of organizational risk.
Which systems were targeted in the Thailand Ministry of Finance attack?
The Hermes AI agent targeted multiple systems inside Thailand's Ministry of Finance, including an ICT Committee admin panel running Laravel, an Apache Hadoop cluster with HiveServer2, an Ambari management platform, a GlassFish application server, mail infrastructure tested via SMTP AUTH password spraying, an Alfresco document management system, and web servers where a PHP webshell was deployed at /storage/Counter/nine/.journald-cache.php. Personnel records and performance assessments from the Office of the Permanent Secretary were cataloged during the autonomous reconnaissance phase.
How can organizations defend against autonomous AI cyberattacks?
Six controls close the exposure documented in this breach. Block the four known C2 IPs and malicious domain immediately. Hunt for PHP files with dot-prefixed names in web-accessible directories using: find /var/www -name '.*php'. Restrict web server processes from spawning shell utilities via endpoint agent rules. Patch HiveServer2 from its default NONE authentication mode to Kerberos or LDAP. Implement egress filtering on internal servers to detect unexpected HTTPS beaconing. Audit all AI agent deployments in your environment for YOLO mode configurations that could be seized by an attacker who gains access to the management interface.
Is Hermes AI agent dangerous to organizations that do not use it themselves?
Yes. The risk is not limited to organizations that deploy Hermes themselves. Attackers who gain initial access to any environment can deploy Hermes as their post-exploitation automation tool, conducting reconnaissance and lateral movement without maintaining a constant human presence. The 5,900 exposed Hermes panels identified by Hunt.io represent organizations unknowingly running accessible Hermes instances that an attacker could seize and redirect, turning the target organization's own AI tooling against them.
What MITRE ATT&CK techniques does the Hermes AI agent attack use?
The Thailand Finance Ministry breach used 16 documented MITRE ATT&CK techniques: T1190 (Exploit Public-Facing Application), T1505.003 (Web Shell), T1036.005 (Masquerading), T1071.001 (Web Protocols for C2), T1090.001 (Internal Proxy via SOCKS5), T1059 (Command Interpreter), T1072 (Software Deployment via Ambari REST API), T1068 (Privilege Escalation via CVE-2021-3156 and CVE-2021-4034), T1082 (System Information Discovery), T1083 (File and Directory Discovery), T1539 (Steal Web Session Cookie), T1110.003 (Password Spraying), T1547.001 (Registry Run Keys persistence), T1053 (Scheduled Task persistence), T1055.012 (Process Hollowing via svchost.exe), and T1113 (Screen Capture).
Sources & references
- Hunt.io, Thailand Ministry of Finance Targeted with Hermes AI Agent Running Unattended, Hades Implant Staged
- BleepingComputer, Hermes AI agent used to automate attack on Thai Finance Ministry
- Rescana, AI-Powered Hermes Agent Orchestrates Cyber-Espionage Attack on Thai Ministry of Finance
- Cloud Security Alliance, 9 CVEs in 4 Days: What Hermes Agent Enterprises Must Learn
Free resources
Critical CVE Reference Card 2025–2026
25 actively exploited vulnerabilities with CVSS scores, exploit status, and patch availability. Print it, pin it, share it with your SOC team.
Ransomware Incident Response Playbook
Step-by-step 24-hour IR checklist covering detection, containment, eradication, and recovery. Built for SOC teams, IR leads, and CISOs.
Get threat intel before your inbox does.
50,000+ security professionals read Decryption Digest for early warnings on zero-days, ransomware, and nation-state campaigns. Free, daily, no spam.
Unsubscribe anytime. We never sell your data.

Founder & Cybersecurity Evangelist, Decryption Digest
Cybersecurity professional with expertise in threat intelligence, vulnerability research, and enterprise security. Covers zero-days, ransomware, and nation-state operations for 50,000+ security professionals every morning.
