CNTR-K8-001620 - Kubernetes Kubelet must enable kernel protection.

Information

System kernel is responsible for memory, disk, and task management. The kernel provides a gateway between the system hardware and software. Kubernetes requires kernel access to allocate resources to the Control Plane. Threat actors that penetrate the system kernel can inject malicious code or hijack the Kubernetes architecture. It is vital to implement protections through Kubernetes components to reduce the attack surface.

Solution

Edit the Kubernetes Kuberlet file in the /etc/sysconfig directory on the Kubernetes Master Node. Set the argument '--protect-kernel-defaults' to 'true'.

Reset Kubelet service using the following command:

service kubelet restart

See Also

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

Item Details

References: CAT|I, CCI|CCI-001084, Rule-ID|SV-242434r712658_rule, STIG-ID|CNTR-K8-001620, Vuln-ID|V-242434

Plugin: Unix

Control ID: cd66d45541cd86bf12fe73d87034992301fd8947d5ee1ac25bfb7a46f28c3ae1