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

Bitcoin Turns 17; Spot ETFs Suffer Heaviest Weekly Losses…

Bitcoin marked its 17th anniversary as it remains embedded in global markets.U.S. spot Bitcoin...

BRICS Unit’s Gold Currency Faces Coordination, Tech Failures

BRICS members disagree on a common currency and have shown mixed political support.Technical and...

Fed’s $19.5B Repo Spike Raises Crypto Funding Stress -Alert!

Federal Reserve balance sheet rose about $24.4 billion in the week ended Dec. 24,...

BitMine Stakes 82,560 ETH, Validator Queue Nears 1M ETH Rise

BitMine Immersion Technologies deposited 82,560 ETH (about $259 million) into Ethereum staking, increasing congestion...

Coinbase Exec: US Must Act on Transformative Market Bill Now

John D’Agostino of Coinbase said the CLARITY Act delay is understandable because market-structure legislation...
- Advertisement -

Must Read

The 10 Best Crypto Podcasts You Can’t Miss

Table of ContentsBest Cryptocurrency Podcasts To Add To Your Playing List1. The Money Movement2. The Crypto Conversation3. The Pomp Podcast4. What Bitcoin Did5. The...
Bitcoin (BTC) $ 89,632.00 0.34%
Ethereum (ETH) $ 3,092.59 1.68%
XRP (XRP) $ 2.00 5.86%
Bittensor (TAO) $ 243.26 1.24%
Polkadot (DOT) $ 2.11 6.50%
Cardano (ADA) $ 0.38419 6.63%
Chainlink (LINK) $ 13.06 0.94%
Hyperliquid (HYPE) $ 24.38 0.50%
Monero (XMR) $ 427.84 2.23%
Hedera (HBAR) $ 0.118146 0.26%
Toncoin (TON) $ 1.80 5.12%