Under active development Content is continuously updated and improved

V-242406The Kubernetes KubeletConfiguration file must be owned by root.

CAT II - Medium
CNTR-K8-000880

>Control Description

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.

>Check Content

On the Kubernetes Control Plane and Worker nodes,

$ps -ef | grep kubelet Check the config file (path identified by: --config): Change to the directory identified by --config (example /etc/sysconfig/)
$ls -l kubelet Each kubelet configuration file must be owned by root:root.

If any manifest file is not owned by root:root, this is a finding.

>Remediation

On the Control Plane and Worker nodes, change to the --config directory.

$chown root:root kubelet To verify the change took place,
$ls -l kubelet

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

>CCI References

Control Correlation Identifiers (CCIs) map STIG findings to NIST 800-53 controls.

>Cross-Framework Mappings

NIST SP 800-53 r5

via DISA CCI List

Ask AI

Configure your API key to use AI features.