Skip to main content
Mallory
← Back to News
internet-exposed-servicecloud-misconfigurationoffensive-tooling-releaseremote-access-implant

Exposed Docker APIs Enable Container Breakouts, DDoS Malware, and Host Compromise

Attack Surface Exposure · 3 sources · Updated 4mo ago · First seen Dec 21, 2021

Exposed Docker APIs Enable Container Breakouts, DDoS Malware, and Host Compromise

Attackers have been abusing improperly exposed Docker daemon APIs, especially unauthenticated services on port 2375, to take control of running containers and deploy malware. One documented campaign used the Dofloo (AESDDoS) Trojan to enumerate containers and run malicious payloads with Docker commands, giving operators DDoS capability, host profiling data, and a foothold for follow-on activity such as cryptojacking or broader system compromise.

Public tooling has also lowered the barrier to exploiting these weaknesses. The BOtB container assessment tool demonstrates how exposed Docker daemons, privileged container configurations, Kubernetes service account exposure, metadata service access, Linux kernel keyring leakage, and even runc escape flaw CVE-2019-5736 can be used to break out of containers or extract secrets in CI/CD and live environments. Docker’s guidance recommends protecting the daemon socket and restricting remote API access to trusted systems, underscoring that exposed or misconfigured container management interfaces can quickly turn a single container issue into host-level compromise.

Why it matters

Impact assessment

Exposed Docker daemon APIs create a direct path from Internet exposure to container takeover and potential host compromise. The affected population includes any organization running Docker Engine with remote API access exposed, especially unauthenticated TCP/2375 services, along with CI/CD and Kubernetes-connected container environments that permit privileged execution or secret exposure.

The impact is high because attackers can enumerate containers, execute commands inside them, deploy DDoS malware or cryptominers, steal cloud and Kubernetes credentials, and in some cases escape to the host for root-level control. Exposure is widespread rather than narrowly targeted because attackers have historically conducted Internet-wide scanning for open Docker APIs, and there are documented incidents of in-the-wild exploitation using Dofloo/AESDDoS and prior cryptojacking campaigns.

Supporting facts

  • Affected products and environments:
    • Docker Engine / Docker daemon with remote API exposed
    • Unauthenticated and unencrypted Docker API on TCP/2375
    • Containers with access to docker.sock
    • Privileged containers with dangerous Linux capabilities and permissive seccomp profiles
    • Kubernetes workloads with mounted service account tokens
    • Cloud-hosted containers with reachable metadata services
  • Business and operational consequences:
    • Unauthorized command execution in running containers
    • Host profiling and exfiltration of system information to attacker C2
    • DDoS botnet enrollment via Dofloo/AESDDoS
    • Potential cryptojacking deployment
    • Container breakout and host-level compromise
    • Exposure of Kubernetes and cloud credentials that can expand compromise scope
  • Known exploitation in the wild:
    • Trend Micro documented active scanning and abuse of exposed Docker APIs
    • Attackers used docker exec to deploy Dofloo into discovered containers
    • Prior campaigns abused exposed Docker services for Monero mining and other malware deployment
    • Reporting also references campaigns chaining exposed Docker APIs with runc escape CVE-2019-5736
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.

9 events · 2014 – Dec 21, 2021
  1. Dec 21, 20215y ago

    BOtB container exploitation tool is published on GitHub

    A GitHub repository documents BOtB (Break Out The Box), a CLI tool for container analysis and exploitation that includes checks and exploitation paths for exposed Docker daemons, privileged containers, Kubernetes secrets, metadata services, keyrings, and CVE-2019-5736.

    GitHub - brompwnie/botb: A container analysis and exploitation tool for pentesters and engineers. · GitHub
  2. Reported Jun 14, 20197y ago

    Trend Micro observes Dofloo spread via exposed Docker APIs

    Trend Micro observed attackers scanning TCP port 2375 for exposed Docker APIs, enumerating running containers, and using docker exec to deploy a Dofloo Trojan variant for DDoS and follow-on compromise.

    Exposed Docker APIs Abused by DDoS, Cryptojacking Botnet Malware
  3. Apr 2019

    Attackers use Confluence flaw to drop Dofloo

    A previous campaign in late April used a critical Atlassian Confluence Server and Data Center server-side template injection vulnerability to deploy Dofloo on Linux and Windows servers.

    Exposed Docker APIs Abused by DDoS, Cryptojacking Botnet Malware
  4. Mar 2019

    Imperva reports Docker API abuse with runc exploit

    In March, Imperva detected a campaign that abused exposed Docker APIs while exploiting CVE-2019-5736 in runc to gain root-level code execution on hosts.

    Exposed Docker APIs Abused by DDoS, Cryptojacking Botnet Malware
  5. Nov 2018

    Juniper researchers observe Docker cryptojacking attacks

    Juniper Networks researchers observed attacks against misconfigured Docker services in which attackers added their own containers to run Monero mining scripts.

    Exposed Docker APIs Abused by DDoS, Cryptojacking Botnet Malware
  6. Oct 2018

    Another exposed Docker cryptojacking campaign observed

    Researchers also observed a separate campaign in October 2018 that scanned for exposed Docker hosts and deployed coin-mining malware.

    Exposed Docker APIs Abused by DDoS, Cryptojacking Botnet Malware
  7. Mar 2018

    Attackers scan exposed Docker hosts and deploy coin miners

    The article states that campaigns scanning for exposed Docker services and deploying cryptocurrency miners were already active in March 2018.

    Exposed Docker APIs Abused by DDoS, Cryptojacking Botnet Malware
  8. 2018

    Sustained attacks against misconfigured Docker services begin

    Misconfigured Docker services had been under sustained attack since early 2018, according to the reporting cited in the article.

    Exposed Docker APIs Abused by DDoS, Cryptojacking Botnet Malware
  9. 2014

    Dofloo malware family first detected

    The Dofloo malware family, also known as AESDDoS, was first detected in 2014 and later became associated with large-scale botnet activity.

    Exposed Docker APIs Abused by DDoS, Cryptojacking Botnet Malware
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 →

Malware

1 linked

Affected products

1 linked
Docker Engine

Organizations

1 linked
Docker

Observables

1 linked

Indicator values are masked on this page. See the values 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.