SV-260929r966144_rule
V-260929
SRG-APP-000142-CTR-000330
CNTR-MK-000650
CAT II
10
To edit container ports, log in to the MKE web UI and navigate to Shared Resources >> Containers.
- Locate the container with the incorrect port mapping.
- Click on the container name and stop the container by clicking the three dots in the upper right corner.
- Scroll down to Ports and check if ports have been manually assigned.
- Edit the port to a nonprivileged port.
This check must be executed on all nodes in an MKE cluster.
Verify 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 container ports are not mapped to host port numbers below 1024. If they are, then this is a finding.
V-260929
False
CNTR-MK-000650
This check must be executed on all nodes in an MKE cluster.
Verify 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 container ports are not mapped to host port numbers below 1024. If they are, then this is a finding.
M
5595