SV-260940r966177_rule
V-260940
SRG-APP-000342-CTR-000775
CNTR-MK-001220
CAT II
10
When using Kubernetes orchestration, this check is Not Applicable.
Review and remove nonsystem containers previously created by these users that allowed privileged execution using:
docker container rm [container]
When using Kubernetes orchestration, this check is Not Applicable.
When using Swarm orchestration, execute the following command as a trusted user on the host operating system via CLI:
docker ps --quiet --all | grep -iv "MKE\|kube\|dtr" | awk '{print $1}' | xargs docker inspect --format '{{ .Id }}: Privileged={{ .HostConfig.Privileged }}'
Verify in the output that no containers are running with the --privileged flag. If there are, this is a finding.
V-260940
False
CNTR-MK-001220
When using Kubernetes orchestration, this check is Not Applicable.
When using Swarm orchestration, execute the following command as a trusted user on the host operating system via CLI:
docker ps --quiet --all | grep -iv "MKE\|kube\|dtr" | awk '{print $1}' | xargs docker inspect --format '{{ .Id }}: Privileged={{ .HostConfig.Privileged }}'
Verify in the output that no containers are running with the --privileged flag. If there are, this is a finding.
M
5595