Attackers Abuse Docker Container Escape to Deploy Cryptominer
Attack Surface Exposure · 2 sources · Updated 4mo ago · First seen Aug 14, 2026

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
zgrabbefore exploitation. - Malicious images included
gin,alpineos/dockerapi, andalpineos/docker2api. - Trend Micro reported
alpineos/dockerapihad more than 10,000 pulls and thealpineosaccount 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.
- Trend Micro observed the environment being identified by


