Why it matters
`escalate` and `bind` let the holder grant themselves permissions they do not have; `impersonate` lets them act as any user, group or service account.
How to fix it
Remove these verbs from every role that is not a reviewed administrative role.
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.8: Bind, impersonate and escalate permissions are limited - 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 use the nodes/proxy subresource, Role can create pods, 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
- A role is bound to a default service account
KubernetesSeverity: Medium
k8s.rbac.default-service-account-bound - Role can use the nodes/proxy subresource
KubernetesSeverity: Medium
k8s.rbac.node-proxy - Role can approve certificate signing requests
KubernetesSeverity: Medium
k8s.rbac.csr-approve - Role can create pods
KubernetesSeverity: Medium
k8s.rbac.pod-create - cluster-admin is granted
KubernetesSeverity: High
k8s.rbac.cluster-admin-binding - Role can exec into or attach to pods
KubernetesSeverity: Medium
k8s.rbac.pod-exec
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