Skip to main content
Mallory
← Back to News
internet-exposed-servicecloud-misconfigurationinitial-access-methodpayload-delivery-evasion

Attackers Abuse Docker Container Escape to Deploy Cryptominer

Attack Surface Exposure · 2 sources · Updated 4mo ago · First seen Aug 14, 2026

Attackers Abuse Docker Container Escape to Deploy Cryptominer

Threat actors were observed targeting exposed Docker APIs by deploying a malicious container image named gin with the --privileged option, then abusing the Linux cgroups release_agent mechanism to escape the container and execute code on the host. Trend Micro detected the activity in a honeypot after the environment was identified by the zgrab scanner, showing how internet-exposed container management interfaces can be rapidly discovered and exploited.

The attack chain used a script called calm.sh, which dropped another script named cmd and launched a fake nginx binary that was actually an ELF cryptocurrency miner. If the container escape attempt failed, the attackers still tried to mine cryptocurrency directly on the vulnerable server, underscoring that misconfigured privileged containers can turn a Docker deployment into a host-level compromise and that image security requires more than basic vulnerability scanning alone.

Why it matters

Impact assessment

Internet-exposed Docker environments are directly affected, especially hosts with unauthenticated or weakly protected Docker REST APIs and deployments that allow privileged containers. The immediate impact is host-level compromise, unauthorized SSH persistence, cryptomining resource theft, and follow-on propagation to other Docker hosts; this creates operational degradation, cloud cost increases, and elevated risk of broader infrastructure takeover.

The exposure is broad because attackers used internet scanning and automated exploitation against discoverable Docker services rather than a narrowly targeted victim set. Trend Micro observed exploitation in the wild in honeypot environments, and the activity was linked to TeamTNT-associated infrastructure and Docker Hub accounts used to distribute malicious images.

Supporting facts

  • Affected products and configurations:
    • Docker hosts with exposed Docker REST APIs on ports 2375, 2376, 2377, 4243, and 4244.
    • Environments permitting containers with --privileged, --net=host, and host root filesystem mounts such as /host.
    • Linux-based Docker servers were explicitly profiled and targeted.
  • Business and operational consequences:
    • Host compromise via container escape to root on the underlying server.
    • Monero cryptomining causing CPU/resource exhaustion and increased infrastructure costs.
    • Persistence through attacker SSH key insertion into /root/.ssh/authorized_keys.
    • Lateral propagation through scanning for additional exposed Docker APIs.
  • Scope and threat activity:
    • Trend Micro observed the environment being identified by zgrab before exploitation.
    • Malicious images included gin, alpineos/dockerapi, and alpineos/docker2api.
    • Trend Micro reported alpineos/dockerapi had more than 10,000 pulls and the alpineos account had more than 150,000 combined pulls at the time of reporting.
    • Docker was notified and malicious accounts were removed, but exposed hosts remain at risk from copycat activity and reused tooling.
Is this exposed in your estate?Map this exposure pattern across your cloud, code, and identities.
Map your surface
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · Jul 2019 – Oct 2021
  1. Oct 2021

    Trend Micro links October 2021 Docker API campaign to TeamTNT

    In October 2021, Trend Micro observed attackers abusing exposed Docker REST APIs to deploy malicious containers that scanned for more exposed Docker services, escaped to hosts, installed Monero miners, and added TeamTNT SSH access. Trend Micro linked the activity to TeamTNT through infrastructure, tooling, SSH key usage, and Docker Hub accounts such as 'alpineos,' and said Docker removed the identified malicious accounts.

    Compromised Docker Hub Accounts Abused for Cryptomining Linked to TeamTNT | Trend Micro (US)
  2. Reported Feb 9, 20216y ago

    Trend Micro observes Docker attack using privileged container escape

    Trend Micro observed an attack against its honeypot after an exposed Docker API was discovered by the zgrab scanner. The attacker pulled a malicious container image named "gin," ran it with the privileged option enabled, and used scripts including calm.sh to attempt host escape and deploy a disguised cryptocurrency miner.

    Threat Actors Now Target Docker via Container Escape Features | Trend Micro (US)
  3. Jul 2019

    Felix Wilhelm publishes release_agent container escape PoC

    Felix Wilhelm of Google's Security Team published a proof of concept showing how a privileged Docker container or Kubernetes pod could escape to the host by abusing the cgroups release_agent feature. This technique later matched the method used in the observed attack.

    Threat Actors Now Target Docker via Container Escape Features | Trend Micro (US)
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Affected products

1 linked
Docker

Organizations

1 linked
Docker

Observables

13 linked

Indicator values are masked on this page. View all 13 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See where this exposure pattern shows up across your cloud, code, supply chain, and non-human identities.
See Where You're Exposed
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.