Why it matters
Changing a webhook configuration can disable admission control or send every admitted object to a server the holder controls.
How to fix it
Restrict webhook configuration changes to cluster administrators.
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.12: Access to webhook configuration objects is minimised
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 mint service-account tokens
KubernetesSeverity: Medium
k8s.rbac.token-create - Role uses a wildcard
KubernetesSeverity: Medium
k8s.rbac.wildcard - Role can read Secrets
KubernetesSeverity: Medium
k8s.rbac.secrets-read - Role can create PersistentVolumes
KubernetesSeverity: Low
k8s.rbac.pv-create - Role can exec into or attach to pods
KubernetesSeverity: Medium
k8s.rbac.pod-exec - Role can create pods
KubernetesSeverity: Medium
k8s.rbac.pod-create
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