SV-235819r627584_rule
V-235819
SRG-APP-000142
DKER-EE-002150
CAT I
10
This fix only applies to the use of Docker Engine - Enterprise.
Do not map the container ports to privileged host ports when starting a container. Also, ensure that there is no such container to host privileged port mapping declarations in the Dockerfile.
This check should be executed on all nodes in a Docker Enterprise cluster.
Verify that no running containers are mapping host port numbers below 1024.
via CLI:
Linux: Execute the following command as a trusted user on the host operating system:
docker ps --quiet --all | xargs docker inspect --format '{{ .Id }}: Ports={{ .NetworkSettings.Ports }}'
Review the list and ensure that container ports are not mapped to host port numbers below 1024. If they are, then this is a finding.
V-235819
False
DKER-EE-002150
This check should be executed on all nodes in a Docker Enterprise cluster.
Verify that no running containers are mapping host port numbers below 1024.
via CLI:
Linux: Execute the following command as a trusted user on the host operating system:
docker ps --quiet --all | xargs docker inspect --format '{{ .Id }}: Ports={{ .NetworkSettings.Ports }}'
Review the list and ensure that container ports are not mapped to host port numbers below 1024. If they are, then this is a finding.
M
5281