S4E just found a high top 10 tcp port service scan
critical·Misconfiguration·Updated Oct 8, 2024

Docker Daemon Exposure Scanner

This scanner checks if the Docker Daemon REST API is accessible without authentication, allowing attackers to execute arbitrary commands on containers and the host.

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
0
Times Used
by S4E users
0
Assets Scanned
domains & IPs
0
Vulnerabilities Found
confirmed findings
References
Detail

The Docker Daemon is a core component used in Docker for running and managing containers. It is widely employed by DevOps teams and software developers for rapid application deployment and continuous integration/continuous deployment processes. It provides an interface over REST for managing Docker objects such as containers, images, and networks. Due to its capabilities, the Docker Daemon is primarily used in cloud and server environments, supporting scalable and efficient management of containerized applications. However, incorrect configurations can lead to security vulnerabilities, making it crucial for users to secure the Docker Daemon to prevent unauthorized access.

The exposure concerning the Docker Daemon arises when its management API is accessible over the network without proper authentication or encryption. This exposure can inadvertently provide attackers with unauthorized control over Docker containers and, subsequently, the host machine. The vulnerability is significant as it can lead to unauthorized actions such as data extraction, malicious deployment of containers, or even host system compromise. Proper security measures should be in place to mitigate these risks and ensure the integrity of the containerized environment.

This scanner specifically targets the Docker Daemon's REST API endpoint, typically exposed on TCP port 2375 (unencrypted) or 2376 (encrypted). It sends a request to the /version or /containers/json endpoint to verify if the daemon responds without requiring authentication. If the API responds with container information or version details, the exposure is confirmed, indicating that the daemon is accessible to anyone on the network.

If exploited, an attacker can gain full control over the Docker Daemon, allowing them to create, start, stop, or delete containers, access sensitive data within containers, and potentially escape to the host system. This can lead to data breaches, service disruption, and complete compromise of the host infrastructure. The high CVSS score of 9.0 reflects the critical nature of this vulnerability, emphasizing the need for immediate remediation.

Solution Advice
  • Bind the Docker Daemon to a local socket (unix:///var/run/docker.sock) instead of a TCP port to prevent network exposure.
  • If TCP access is required, enable TLS encryption and client certificate authentication for the Docker Daemon.
  • Configure firewall rules to restrict access to the Docker Daemon port (2375/2376) only from trusted IP addresses or internal networks.
  • Use a reverse proxy with authentication (e.g., Nginx with basic auth) in front of the Docker API to add an additional layer of security.
  • Regularly audit Docker daemon configurations and logs for unauthorized access attempts using tools like Docker Bench Security.
  • Update Docker to the latest version to benefit from security patches and improved authentication mechanisms.
  • Implement network segmentation to isolate Docker hosts from public-facing networks and limit lateral movement.
  • Use Docker's built-in authorization plugin (e.g., AuthZ) to enforce fine-grained access control policies on API requests.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.