CNTR-K8-000880 - The Kubernetes kubelet configuration file must be owned by root.

Warning! Audit Deprecated

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

View Next Audit Version

Information

The kubelet configuration file contains the runtime configuration of the kubelet service. If an attacker can gain access to this file, changes can be made to open vulnerabilities and bypass user authorizations inherent within Kubernetes with RBAC implemented.

Solution

On the Master and Worker nodes, change to the /etc/sysconfig directory. Run the command:

chown root:root kubelet

To verify the change took place, run the command:

ls -l kubelet

The kubelet file should now be owned by root:root.

See Also

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

Item Details

References: CAT|II, CCI|CCI-001499, Rule-ID|SV-242406r712574_rule, STIG-ID|CNTR-K8-000880, Vuln-ID|V-242406

Plugin: Unix

Control ID: 6df061f489fc6acb8e0719107ab15effb6a2474cf62c0363983d87ca6de6ea45