Why it matters
Creating a pod lets the holder run any image as any service account in the namespace, and so borrow that account's permissions.
How to fix it
Grant pod creation only to controllers and deployment pipelines.
What TrustIvan reads
Read through the Kubernetes API with the read-only role TrustIvan's install creates.
Benchmark controls
- CIS Kubernetes Benchmark 1.9.0, control
5.1.4: Access to create pods is minimised - NSA/CISA Kubernetes Hardening Guidance 1.2, control
authn.rbac: Role-based access control grants least privilege. Also checked for this control: cluster-admin is granted, Role can escalate, bind or impersonate, Role can use the nodes/proxy subresource, Role can exec into or attach to pods, Role can read Secrets, Role uses a wildcard, Workload runs as a service account with cluster-admin
Control numbers are the published ones; the titles are TrustIvan's own short descriptions. The benchmarks belong to their publishers, who do not endorse TrustIvan.
Related checks
- Role can use the nodes/proxy subresource
KubernetesSeverity: Medium
k8s.rbac.node-proxy - Role can exec into or attach to pods
KubernetesSeverity: Medium
k8s.rbac.pod-exec - Role can escalate, bind or impersonate
KubernetesSeverity: High
k8s.rbac.escalate-bind-impersonate - Role can create PersistentVolumes
KubernetesSeverity: Low
k8s.rbac.pv-create - A role is bound to a default service account
KubernetesSeverity: Medium
k8s.rbac.default-service-account-bound - Role can read Secrets
KubernetesSeverity: Medium
k8s.rbac.secrets-read
Terms: KSPM (Kubernetes security posture management), Kubernetes RBAC, NSA/CISA Kubernetes Hardening Guidance, CIS Benchmarks
All Kubernetes posture checks · The whole catalogue · How this works in TrustIvan · Documentation