Check: CNTR-K8-000880
Kubernetes STIG:
CNTR-K8-000880
(in versions v1 r6 through v1 r0.1)
Title
The Kubernetes kubelet configuration file must be owned by root. (Cat II impact)
Discussion
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 Master and worker nodes, change to the /etc/sysconfig directory. Run the command: 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.
Fix Text
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.
Additional Identifiers
Rule ID: SV-242406r712574_rule
Vulnerability ID: V-242406
Group Title: SRG-APP-000133-CTR-000300
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-001499 |
Limit privileges to change software resident within software libraries. |
Controls
Number | Title |
---|---|
CM-5(6) |
Limit Library Privileges |