Carbonato botnet hijacks exposed Docker hosts via AI agents

Carbonato botnet hijacks exposed Docker hosts via AI agents

Carbonato malware targets Docker hosts with an open API on port 2375, installs the Hermes AI agent GH0ST to collect credentials, and spreads to other hosts.

Security researchers at enterprise security company ThreatDown have documented a new botnet malware called Carbonato that hijacks Docker hosts whose remote management API (application programming interface, a set of rules that lets other programs control Docker) is exposed on port 2375 without authentication. Docker is a popular platform for running software in containers, which are lightweight packages that share the host computer's resources, and many websites and online services rely on it. The malware reaches that API, tells the Docker daemon (the background service that manages containers) to launch a privileged container, which has extra permissions to access the underlying host, and then installs the Hermes Agent AI framework, a tool that lets a large language model run commands and interact with a computer. The installed agent is named GH0ST and overwrites the default SOUL.md persona file, a configuration that defines the agent's behavior. ThreatDown discovered the malware in an unauthenticated Docker registry, a storage location for Docker images that anyone can access without logging in, containing nearly 60 repositories and 4.3 GB of image data. The researchers retrieved operational evidence spanning October 2024 to August 2026, and the archive also included details about a separate campaign that distributed counterfeit cryptocurrency wallet apps.

Once connected, Carbonato opens a reverse SSH tunnel, a connection that lets an outside attacker reach the machine by having it connect out to the attacker. It installs an SSH server with the operators' key, so attackers can log in securely, and reports each new deployment through Telegram, according to ThreatDown. The malware also sets up persistence through cron jobs, systemd timers, rc.local, and OpenRC hooks, all of which are common ways to run programs automatically when a computer starts or on a schedule. This means the infection survives reboots and keeps running on the victim machine. Every newly infected host becomes part of a botnet, a network of compromised computers controlled remotely by criminals.

The most distinctive part of the attack is the use of Hermes Agent as the command and control layer. ThreatDown researchers describe an interactive command loop: the model interprets a task, writes terminal commands, reads the output, and decides what to do next. The GH0ST agent receives task commands through Telegram and can collect AI API keys, SSH credentials, access tokens, and other data, run commands on the victim, and send back the results. This design lets operators give high-level instructions instead of typing every command themselves, using the AI agent's ability to interact with the compromised host. The GH0ST agent instructions overwrite the default SOUL.md persona file, replacing the normal rules that would otherwise constrain the agent with the attacker's own instructions.

Carbonato also has worm-like spreading capability. Scripts on each infected host scan the networks attached to that host every five minutes, looking for other Docker daemons with an exposed API. When a new target is found, the malware pulls its implant from the same registry, launches the same privileged container, and enters the same persistence and scanning loop. ThreatDown could not attribute Carbonato to any known threat clusters, but based on various evidence the researchers point to Costa Rica as a possible location of the operator. The company also notes that Hermes has been abused in other malicious operations recently, including a large-scale card-skimming operation documented by cybersecurity company Gambit that stole 600,000 credit card details.

To prevent infection, ThreatDown recommends keeping Docker daemon APIs off the network and requiring authentication on registries. Organisations should watch for signs of Carbonato, including a GH0ST persona file, the CARBONATO_API_KEY setting, unexpected Telegram traffic, and reverse SSH tunnels toward AS262145, the network identifier associated with the attackers' tunnel endpoint. These indicators can help security teams spot a compromise early. For teams running container infrastructure, AEU-I (https://aeu-i.com) provides security-first IT and infrastructure consulting that can help review how Docker daemons and registries are exposed, reducing the kind of exposure Carbonato exploits.

How to Protect Yourself

  1. If you run Docker or similar container software, check that its remote management port (2375) is not reachable from the internet; use a firewall or cloud security group to block it.
  2. Turn on authentication for any Docker registry you use, and protect it with a strong unique password or key.
  3. Monitor your server for unexpected outbound connections to Telegram or unknown addresses, which can indicate a compromise.
  4. If you find a file named SOUL.md that you did not create, or a configuration setting called CARBONATO_API_KEY, treat the machine as compromised and rebuild it from a clean backup.
  5. Avoid running containers with privileged access to the host; only grant the minimum permissions needed for the software to work.
  6. Keep your server operating system and Docker software updated, and apply security patches as soon as possible.

Terms Explained

  • Docker A platform that packages software into containers, which share the host computer's resources.
  • API Application programming interface, a set of rules that lets one program control another.
  • SSH Secure Shell, a method for securely connecting to and controlling a computer over a network.
  • Reverse SSH tunnel A connection that lets an outside attacker reach a computer on an internal network by having that computer connect out to the attacker.
  • Botnet A network of infected computers controlled remotely by criminals, often used to steal data or launch attacks.
  • AI agent A program that uses a large language model to read instructions, run commands, and decide what to do next.
  • Registry A storage location for Docker images, the packaged software that containers run from.

Related AEU services

  • AEU-I IT and security consulting