Cis K8S V200 5.1.9

Minimize access to create persistent volumes (Manual)

cyberstrikeus Updated

File contents

5.1.9 Minimize access to create persistent volumes (Manual)

Profile Applicability

  • Level 1 - Master Node

Description

The ability to create persistent volumes in a cluster can provide an opportunity for privilege escalation, via the creation of hostPath volumes. As persistent volumes are not covered by Pod Security Admission, a user with access to create persistent volumes may be able to get access to sensitive files from the underlying host even where restrictive Pod Security Admission policies are in place.

Rationale

The ability to create persistent volumes in a cluster opens up possibilities for privilege escalation and should be restricted, where possible.

Audit

Review the users who have create access to PersistentVolume objects in the Kubernetes API.

Remediation

Where possible, remove create access to PersistentVolume objects in the cluster.

References

  1. https://kubernetes.io/docs/concepts/security/rbac-good-practices/#persistent-volume-creation

cyberstrikeus/cyberstrike/tree/main/.cyberstrike/skill/CIS_benchmarks/Server_Software/Kubernetes/CIS_Kubernetes_Benchmark_v2.0.0/cis-k8s-v200-5.1.9 commit 3488d10cf4

Frequently asked questions

npx skillmds@latest add cyberstrikeus/cis-k8s-v200-5-1-9