Attackers Abuse Docker APIs and Tor to Launch Cloud Cryptojacking

Attackers Exploit Misconfigured Docker APIs via Tor to Deploy Hidden Crypto Miners in the Cloud

  • Attackers are exploiting misconfigured Docker APIs to mine cryptocurrency in cloud environments.
  • They use the Tor network to hide their activities while deploying crypto miners.
  • Attackers gain access, create new containers, and mount critical system directories, risking container escapes.
  • The attack involves installing tools and scripts to set up remote access, collect data, and install the XMRig miner.
  • Recent findings show hundreds of leaked credentials in public code repositories, exposing companies to further risk.

An active campaign is targeting misconfigured Docker instances to secretly mine cryptocurrency, according to findings by Trend Micro researchers released in June 2025. Attackers reportedly exploit misconfigured Docker APIs, using the Tor network to remain anonymous as they deploy crypto mining tools onto vulnerable cloud-hosted containers.

- Advertisement -

Researchers observed that the attack typically starts with a request to the Docker API to retrieve a list of containers on the host. If no containers exist, the attackers create a new container using the "alpine" image and mount the host system’s root directory as a shared volume. This step can allow attackers to bypass container isolation and access files on the host machine, raising the risk of broader system compromise.

Trend Micro states that after establishing a new container, the attackers run a Base64-encoded shell script to install Tor within the container. They then download and execute a remote script hosted on a .onion address, using tools and settings such as "socks5h" to route all traffic through Tor. According to the researchers, "It reflects a common tactic used by attackers to hide command-and-control (C&C) infrastructure, avoid detection, and deliver Malware or miners within compromised cloud or container environments," adding that this method complicates efforts to trace the origin of the attack.

Once the environment is set up, the attackers deploy a shell script named "docker-init.sh." This script checks if the "/hostroot" directory is mounted, changes SSH configurations to enable root logins, and adds an attacker’s SSH key for future access. Additional tools, such as masscan and torsocks, are installed, allowing the attackers to scan networks and further evade detection. The attack culminates with the installation of an XMRig cryptocurrency miner, configured with wallet addresses and mining pools controlled by the threat actors.

Trend Micro notes that this activity primarily targets technology, financial, and healthcare sectors. The company also highlights a related security risk after Wiz discovered that hundreds of sensitive credentials have surfaced in public repositories, including files in Python notebooks and application configuration files, with affected organizations ranging from startups to Fortune 100 companies. The researchers caution that results from code execution in shared Python notebooks can reveal valuable information to attackers capable of linking it back to their sources.

- Advertisement -

The trend underscores the importance of securing cloud and container environments, especially as attackers continue to automate exploits and look for exposed credentials across public code repositories.

✅ Follow BITNEWSBOT on Telegram, Facebook, LinkedIn, X.com, and Google News for instant updates.

Previous Articles:

- Advertisement -

Latest News

Crypto.com CEO debuts AI agent platform ai.com via Super Bowl

crypto.com CEO Kris Marszalek launched AI.com, a platform for creating personal AI agents, with...

Nikkei Hits Record on Takaichi Win; Gold $5K, Bitcoin Soars

Japan's Nikkei 225 surged to a record high, breaching 57,000 in a 3.4% rally...

Alden: All Roads Lead to Debasement Despite Fed QE Semantics

Economist Lyn Alden predicts the Federal Reserve will engage in gradual money printing, stimulating...

Hong Kong’s Lee to speak at CoinDesk conference

Hong Kong’s top officials, including Chief Executive John KC Lee, will address the CoinDesk...

Pudgy Penguins Hosts Valentine’s Pop-Up With Plush Bouquet in NYC

Pudgy Penguins is Hosting a Valentine's Day pop-up in New York City from February...

Must Read

Best Metaverse Tokens to Buy on Binance for 10X Gains

Ever since Facebook renamed their company to Meta, as well as their plans to build a metaverse where we can travel into using Virtual...
🔥 #AD Get 20% OFF any new 12 month hosting plan from Hostinger. Click here!