Check: CNTR-K8-003330
Kubernetes STIG:
CNTR-K8-003330
(in versions v1 r9 through v1 r1)
Title
The Kubernetes PKI CRT must have file permissions set to 644 or more restrictive. (Cat II impact)
Discussion
The Kubernetes PKI directory contains all certificates (.crt files) supporting secure network communications in the Kubernetes Control Plane. If these files can be modified, data traversing within the architecture components would become unsecure and compromised.
Check Content
Review the permissions of the Kubernetes PKI cert files by using the command: find /etc/kubernetes/pki -name "*.crt" | xargs stat -c '%n %a' If any of the files are have permissions more permissive than "644", this is a finding.
Fix Text
Change the ownership of the cert files to "644" by executing the command: chmod -R 644 /etc/kubernetes/pki/*.crt
Additional Identifiers
Rule ID: SV-242466r879887_rule
Vulnerability ID: V-242466
Group Title: SRG-APP-000516-CTR-001335
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000366 |
Implement the security configuration settings. |
Controls
Number | Title |
---|---|
CM-6 |
Configuration Settings |