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.

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

Winklevoss Accuses JPMorgan of Retaliation Over Crypto Criticism

Gemini co-founder Tyler Winklevoss accused JPMorgan Chase of pausing the crypto exchange’s onboarding after...

Floki (FLOKI) Soars 85% in 30 Days, Eyes $0.0002 Target

Floki (FLOKI) gained over 85% in value in the last 30 days, according to...

Ether’s Social Hype Signals Caution Amid 50% Rally, Says Santiment

Social media activity linked to Ethereum (ETH) has reached levels that could indicate a...

Prosecutors Weigh Charges Against Dragonfly Over Tornado Cash Ties

U.S. prosecutors are considering charges against Dragonfly Capital over its investment in Tornado Cash’s...

Prosecutors Weigh Charges Against Dragonfly Capital Over Tornado Cash

Prosecutors in New York said they may file criminal charges against employees at Dragonfly...

Must Read

7 Best Audiobooks on Cybersecurity

Cybersecurity has become an essential topic in our increasingly digital world. As technology evolves and becomes more integrated into our daily lives, the importance...