Check: CNTR-K8-000900
Kubernetes STIG:
CNTR-K8-000900
(in versions v2 r2 through v1 r10)
Title
The Kubernetes manifest files must have least privileges. (Cat II impact)
Discussion
The manifest files contain the runtime configuration of the API server, scheduler, controller, and etcd. If an attacker can gain access to these files, changes can be made to open vulnerabilities and bypass user authorizations inherent within Kubernetes with RBAC implemented. Satisfies: SRG-APP-000133-CTR-000310, SRG-APP-000133-CTR-000295, SRG-APP-000516-CTR-001335
Check Content
On both Control Plane and Worker Nodes, change to the /etc/kubernetes/manifest directory. Run the command: ls -l * Each manifest file must have permissions "644" or more restrictive. If any manifest file is less restrictive than "644", this is a finding.
Fix Text
On both Control Plane and Worker Nodes, change to the /etc/kubernetes/manifest directory. Run the command: chmod 644 * To verify the change took place, run the command: ls -l * All the manifest files should now have privileges of "644".
Additional Identifiers
Rule ID: SV-242408r960960_rule
Vulnerability ID: V-242408
Group Title: SRG-APP-000133-CTR-000310
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000366 |
Implement the security configuration settings. |
CCI-001499 |
Limit privileges to change software resident within software libraries. |