New Malware Exploits Exposed Docker APIs to Gain Persistent Root SSH Access
The Akamai Hunt Team has uncovered a new strain of malware that targets exposed Docker APIs with expanded infection capabilities.
First observed in August 2025 within Akamai’s honeypot infrastructure, this variant diverges from the June 2025 Trend Micro report by blocking other attackers from accessing the Docker API and delivering a modular payload rather than a cryptominer.
This advisory details the technical findings, contrasts the two variants, and provides indicators of compromise (IOCs) to support defensive measures.
As containerization proliferates, misconfigured Docker APIs have become an attractive attack surface.
Initial campaigns advertised in June 2025 used Tor-based downloads to deploy cryptocurrency miners.
The latest iteration shows the rapid evolution of threat actors: hijacking Docker hosts to gain SSH root persistence, evicting rival attackers, and potentially laying the groundwork for a botnet.
This report examines the infection chain, novel persistence mechanisms, and recommended detection and mitigation strategies. [Jump to detections]
In June 2025, Trend Micro’s Threat Intelligence Team reported malware exploiting unsecured Docker APIs on port 2375 to spin up an Alpine container, bind-mount the host filesystem, and execute a Base64-encoded downloader via Tor. That downloader fetched a shell script which:
curl and torsocks./etc/ssh/sshd_config to permit root login./root/.ssh/authorized_keys.This strain principally aimed to hijack compute cycles for cryptomining under Tor anonymity.
This identification is achieved by searching for ubuntu containers, as our data shows that many threat actors deploy ubuntu containers with cryptominers in them.
During routine honeypot monitoring, the Akamai Hunt Team observed HTTP requests to a Docker API attempting container creation.
The decoded payload installed Tor, retrieved a docker-init.sh from an onion domain, and executed it on the host via a bind mount. Key distinctions include:
/hostroot/root/.ssh/authorized_keys and reconfigures sshd to allow root logins./hostroot/etc/crontab runs each minute, iterating through firewall-cmd, ufw, pfctl, iptables, and nft to block port 2375, preventing other attackers from exploiting the same Docker API.The downloaded Go dropper parses utmp to identify logged-in users, while the secondary binary:
Detection techniques for this malware and similar API-based threats include:
To reduce exposure and risk:
This new Docker-API malware variant underscores the speed at which adversaries adapt known exploits to deepen persistence and prevent competing intrusions.
By combining SSH root backdoors, API lockdown tactics, and modular payloads, the threat actor has elevated a simple cryptominer campaign into a multi-stage intrusion framework.
Defenders must audit container environments rigorously, enforce network controls, and monitor behavioral anomalies to stay ahead of such evolving threats.
Continuous threat hunting—as exemplified by Akamai Hunt—remains critical for early detection and remediation.
Find this Story Interesting! Follow us on LinkedIn and X to Get More Instant Updates.
Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…
Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…
Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…
A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…
GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…
Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…