| name | cis-k8s-v200-5.1.12 |
| description | Minimize access to webhook configuration objects (Manual) |
| category | cis-k8s |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","kubernetes","policies","rbac","service-accounts","webhooks","admission-webhooks","privilege-escalation"] |
| cis_id | 5.1.12 |
| cis_benchmark | CIS Kubernetes Benchmark v2.0.0 |
| tech_stack | ["kubernetes"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
5.1.12 Minimize access to webhook configuration objects (Manual)
Profile Applicability
Description
Users with rights to create/modify/delete validatingwebhookconfigurations or mutatingwebhookconfigurations can control webhooks that can read any object admitted to the cluster, and in the case of mutating webhooks, also mutate admitted objects. This could allow for privilege escalation or disruption of the operation of the cluster.
Rationale
The ability to manage webhook configuration should be limited.
Audit
Review the users who have access to validatingwebhookconfigurations or mutatingwebhookconfigurations objects in the Kubernetes API.
Remediation
Where possible, remove access to the validatingwebhookconfigurations or mutatingwebhookconfigurations objects.
References
- https://kubernetes.io/docs/concepts/security/rbac-good-practices/#control-admission-webhooks