SV-260910r966087_rule
V-260910
SRG-APP-000033-CTR-000095
CNTR-MK-000120
CAT II
10
Containers found with SSH server must be removed by executing the following:
docker rm [container name]
Then, a new image must be added with SSH server removed.
This check must be executed on all nodes in a Docker Enterprise cluster.
Verify no running containers have a process for SSH server. Using CLI, execute the following:
for i in $(docker container ls --format "{{.ID}}"); do
pid=$(docker inspect -f '{{.State.Pid}}' "$i")
ps -h --ppid "$pid" -o cmd
done | grep sshd
If a container is output, it has a process for SSH server, this is a finding.
V-260910
False
CNTR-MK-000120
This check must be executed on all nodes in a Docker Enterprise cluster.
Verify no running containers have a process for SSH server. Using CLI, execute the following:
for i in $(docker container ls --format "{{.ID}}"); do
pid=$(docker inspect -f '{{.State.Pid}}' "$i")
ps -h --ppid "$pid" -o cmd
done | grep sshd
If a container is output, it has a process for SSH server, this is a finding.
M
5595