CNTR-K8-000400 - Kubernetes Worker Nodes must not have sshd service running.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Worker Nodes are maintained and monitored by the Master Node. Direct access and manipulation of the nodes should not take place by administrators. Worker nodes should be treated as immutable and updated via replacement rather than in-place upgrades.

Solution

To stop the sshd service, run the command:

systemctl stop sshd

Note: If access to the worker node is through an SSH session, it is important to realize there are two requirements for disabling and stopping the sshd service and they should be done during the same SSH session. Disabling the service must be performed first and then the service stopped to guarantee both settings can be made if the session is interrupted.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Kubernetes_V1R6_STIG.zip

Item Details

References: CAT|II, CCI|CCI-000213, Rule-ID|SV-242393r717015_rule, STIG-ID|CNTR-K8-000400, Vuln-ID|V-242393

Plugin: Unix

Control ID: 5927f7910a31cc24cea4a1853a2120bc68fbd2bba89a9ce01026a48d03b579f1