Hermes Agent
- Type
- Backdoor
- Capabilities
- Credential theftExfiltrationPersistencePost exploitationDefense evasion
- Platforms
- Linux
Hermes Agent is an MIT-licensed, open-source AI-agent framework developed by Nous Research that has been abused as an attacker-controlled backdoor. The legitimate framework supports Telegram-based tasking, terminal command execution, and connections to compatible language-model endpoints. Malicious deployments use these capabilities to interpret operator requests, generate and execute commands, examine command output, manipulate files, collect credentials, and return results through Telegram.
The Carbonato botnet installs Hermes Agent on compromised Linux Docker hosts after exploiting unauthenticated Docker daemon APIs. Operators leave the framework unchanged but replace its persona configuration with malicious instructions defining an agent named GH0ST. These instructions prioritize collecting and exfiltrating AI-service API keys, SSH credentials, access tokens, and other sensitive data while preserving access. This deployment uses an interactive operator-agent workflow rather than a fully autonomous intrusion process. Carbonato's network scanning, propagation, and underlying persistence mechanisms are implemented separately and are not intrinsic Hermes Agent capabilities. The operation has not been attributed to a known threat group.
A separate malicious npm campaign impersonated an official CRM integration client and silently installed Hermes Agent through a package installation hook. It connected the agent to an attacker-controlled Telegram bot and established systemd persistence under a misleading service identity. The deployed agent also exposed process management, code execution, web browsing, scheduled tasks, and sub-agent delegation. Campaign lures targeted CRM integration engineers in the forex and contracts-for-difference brokerage sector.
Techniques & procedures
40 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
7 techniques
Reconnaissance
FOFA scans confirmed the instinct: over 647,000 n8n instances existed worldwide, more than 25,000 of them in China.
the actor had customized Hermes Agent with three red-teaming skills: fofa-cyberspace-search: a custom procedure template instructing DeepSeek to use the actor’s fofoapi.py script for internet asset enumeration
DeepSeek ran FOFA queries targeting Chinese n8n instances and probed targets for version and form endpoints. Three instances were confirmed to be running vulnerable versions (v1.18.0, v1.117.3, v1.108.2).
It initially surveyed 10 product families, scanning GitHub for trending proofs of concept (PoCs) and prioritizing vulnerabilities by attack surface... then searched GitHub for trending 2026 CVE PoC repositories sorted by stars.
They targeted internet-exposed infrastructure by combining autonomous AI-driven enumeration and automated exploitation with the automated and manual exploitation of seven vulnerabilities.
"This actor attempted to exploit over 460 targets, leveraging a mix of autonomous and manual techniques," Palo Alto Networks Unit 42 said.
It initially surveyed 10 product families, scanning GitHub for trending proofs of concept (PoC) exploits and prioritizing vulnerabilities by attack surface.
Resource Development
4 techniques
Resource Development
After receiving instructions over Telegram, the agent worked autonomously.
“AI-built dashboard, custom scanners and exploit scripts”
DeepSeek a téléchargé un PoC public... Acquisition du PoC depuis le dépôt Chocapikk
T1588.006 — Obtain Capabilities: Vulnerabilities (Resource Development)
Initial Access
3 techniques
Initial Access
« ...la faille de sécurité de l’extension Chrome d’Adobe Acrobat, HermeticReader, expose des données sensibles de WhatsApp Web dès la simple visite d’une page malveillante. Ces pages web ressemblent à n’importe quelle autre page, mais lorsque vous en visitez une, le piège se déclenche... »
They targeted internet-exposed infrastructure by combining autonomous AI-driven enumeration and automated exploitation with the automated and manual exploitation of seven vulnerabilities.
Trois nouveaux packages publiés le 18 novembre ( @zmatdspcrm/trading-connector , @zmatdspcrm/brandnet-connect , brandnet-connect ) ne contiennent pas de code malveillant dans leur tarball mais déclarent une dépendance optionnelle hébergée sur zmaticco.dev , permettant à l’attaquant de modifier le payload sans republier sur npm.
Execution
6 techniques
Execution
“Python, Node.js, Rust, Playwright”
The model interprets the request, writes terminal commands, checks their output, and decides what to try next. The agent runs those commands on the victim server.
À l’installation, son script postinstall exécutait lead-provision.js
« L’attaque a été conçue par une IA combinant trois vulnérabilités différentes qui permettaient “une écriture non authentifiée, en une seule visite et sans clic, dans le stockage propre à l’extension depuis n’importe quelle page web”. »
When a user opens the malicious repository and sends any message, the agent triggers a git status index refresh which executes the injected command.
The PoC chains two CVEs into an attack sequence requiring an unauthenticated form with file upload: CVE-2026-21858 (arbitrary file read, CVSS 10.0) CVE-2025-68613 (sandbox bypass to remote code execution (RCE), CVSS 9.9)
Persistence
1 technique
Persistence
Enregistrait l’agent comme service systemd nommé leadstack-routing.service (renommé depuis le nom Hermes original pour masquer sa présence)
Privilege Escalation
1 technique
Privilege Escalation
Enregistrait l’agent comme service systemd nommé leadstack-routing.service (renommé depuis le nom Hermes original pour masquer sa présence)
Stealth
3 techniques
Stealth
Enregistrait l’agent comme service systemd nommé leadstack-routing.service (renommé depuis le nom Hermes original pour masquer sa présence)
A four-step script deletes the line 'Discernement conserve' from the agent’s memory and strips the same word from its identity file.
The PoC chains two CVEs into an attack sequence requiring an unauthenticated form with file upload: CVE-2026-21858 (arbitrary file read, CVSS 10.0) CVE-2025-68613 (sandbox bypass to remote code execution (RCE), CVSS 9.9)
Defense Impairment
1 technique
Defense Impairment
The operator turned approvals off, turned secret redaction off, and set HERMES_DISABLE_SAFETY=1.
Credential Access
3 techniques
Credential Access
Sensitive AI API keys top the agent’s list of targets, ahead of SSH credentials, access tokens, and databases.
La priorité déclarée dans SOUL.md est le vol de clés API d’IA... Les clés sont stockées en clair dans /root/.hermes/loot/.
Sensitive AI API keys top the agent’s list of targets, ahead of SSH credentials, access tokens, and databases.
Discovery
3 techniques
Discovery
Those logs showed Hermes running in unattended "YOLO" mode to automate post-exploitation activity, including searching for privilege-escalation opportunities, enumerating services, inspecting containers, traversing filesystems, and cataloging documents stored on Ministry of Finance systems.
Those logs showed Hermes running in unattended "YOLO" mode to automate post-exploitation activity, including searching for privilege-escalation opportunities, enumerating services, inspecting containers, traversing filesystems, and cataloging documents stored on Ministry of Finance systems.
DeepSeek chained two separate vulnerabilities together, worked out exactly which version range was exploitable
Lateral Movement
1 technique
Lateral Movement
Hermes Agent provided orchestration (terminal access, Telegram-based command and control, and the skills system)... They orchestrated this operator via Telegram.
Collection
1 technique
Collection
It searched internet-facing systems through the FOFA search engine, downloaded exploit code from GitHub... The AI agent then analyzed public exploit repositories...
Command and Control
6 techniques
Command and Control
Hermes Agent provided orchestration (terminal access, Telegram-based command and control, and the skills system)
It places an AI agent inside compromised systems, letting operators send tasks through Telegram and receive results... The agent runs those commands on the victim server and reports back through Telegram.
Hermes ги обработува командите за задачи добиени преку Telegram ... и испраќање на резултатите назад
Connectait l’agent au bot Telegram de l’attaquant
Contactait le serveur attaquant 72.62.1.108:3000 pour récupérer un fichier .env (contenant un token Telegram et une clé API Kimi) et un fichier SOUL.md (instructions de personnalité de l’agent)
Hermes supplied terminal access, a skills system, and Telegram-based command control...
Exfiltration
2 techniques
Exfiltration
... lui ordonnant de maintenir la persistance, d’exécuter des tâches Telegram et de prioriser le vol de clés API d’IA.
Unit 42 confirmed data exfiltration from three Citrix NetScaler targets (CVE-2026-3055)
Observables
12 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.