Check: CNTR-K8-003210
Kubernetes STIG:
CNTR-K8-003210
(in versions v1 r11 through v1 r2)
Title
The Kubernetes kubeadm.conf must be owned by root. (Cat II impact)
Discussion
The Kubernetes kubeeadm.conf contains sensitive information regarding the cluster nodes configuration. If this file can be modified, the Kubernetes Platform Plane would be degraded or compromised for malicious intent. Many of the security settings within the document are implemented through this file.
Check Content
Review the Kubeadm.conf file : Get the path for Kubeadm.conf by running: sytstemctl status kubelet Note the configuration file installed by the kubeadm is written to (Default Location: /etc/systemd/system/kubelet.service.d/10-kubeadm.conf) stat -c %U:%G <kubeadm.conf path> | grep -v root:root If the command returns any non root:root file permissions, this is a finding.
Fix Text
Change the ownership of the kubeadm.conf to root: root by executing the command: chown root:root <kubeadm.conf path>
Additional Identifiers
Rule ID: SV-242454r879887_rule
Vulnerability ID: V-242454
Group Title: SRG-APP-000516-CTR-001325
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000366 |
The organization implements the security configuration settings. |
Controls
Number | Title |
---|---|
CM-6 |
Configuration Settings |