Trend Micro researchers have uncovered a stealthy new attack method that fuses misconfigured Docker remote APIs with the anonymity of the Tor network, allowing cybercriminals to deploy cryptocurrency miners and establish persistent accessβall while flying under the radar of security controls.
βCybercriminals have developed a clever new attack that combines Docker’s remote API with the Tor anonymity network to secretly mine cryptocurrency on victim systems,β Trend Micro reported.
This technique exemplifies the growing intersection of cloud-native exploitation and anonymized infrastructure abuse, with specific focus on Docker deployments vulnerable to public exposure.

The attack initiates when adversaries scan for exposed Docker Remote APIsβservices that, when misconfigured, allow unauthenticated access to containerized environments. Upon finding a vulnerable instance, the attacker sends a POST request to create a new container based on the βalpineβ image, but with a twist:
βThe attacker creates a containerβ¦ and mounts the host root β/β into the container using (/:/hostroot:rw), a common tactic to access or manipulate the host system.β
This container then executes a base64-encoded script that sets up Tor and fetches a second-stage payload hosted on a hidden .onion domain.
Once inside, the attacker modifies the hostβs SSH configuration to establish persistence:
- Enables root login and public key authentication
- Inserts an attacker-controlled SSH key into authorized_keys
Installs tools like:
- masscan for network scanning
- libpcap for packet capture
- zstd for efficient payload compression
- torsocks for anonymous traffic routing
βThe attacker uses βsocks5hβ to route all traffic and DNS resolution through Tor for enhanced anonymity and evasion,β the report explains.
The next phase involves sending system information back to the C2 server hosted on a .onion address. The attacker then downloads a Zstandard-compressed binary tailored to the targetβs architecture using torsocks and decompresses it on the host.
This binary is a dropper containing the XMRig miner, along with all necessary configuration details, including wallet address, mining pool, and execution parameters.
βThis dropper includes all wallet addresses, mining pool URLs, and execution argumentsβ¦ minimizing external dependencies and aiding in evasion.β
While this exploit is technically feasible on any misconfigured Docker host, Trend Micro notes increased targeting of technology firms, financial services, and healthcare organizationsβsectors known for cloud-native deployments.
Related Posts:
- Tor Network Thwarts IP Spoofing Attack
- Mozilla Confirms Active Attacks on Tor Browser via Firefox Vulnerability
- Sophisticated Linux Malware Campaign Targets Misconfigured Cloud Services
- Microsoft Defender no longer considered Tor Browser as a trojan
- Evolving Cryptojacking Campaign Targets Misconfigured Kubernetes Clusters
Support Our Threat Intelligence
If you find our CVE report and cybersecurity news helpful, consider supporting our work.