mutating admission webhook
A Kubernetes hook that lets an external service change every new object, such as a pod, before it is stored.
A malicious webhook can change every workload the cluster starts.
In more detail
An attacker who registers a mutating webhook can inject a container or command into every new pod in the cluster, a powerful and quiet form of persistence. Creating MutatingWebhookConfiguration objects should be tightly restricted and audited.
Related terms
- persistence — Anything an attacker sets up so their access survives reboots, logoffs and password changes, such as a scheduled task or a new key.
- admission controller — A Kubernetes API server plugin that checks or changes each request after authentication and authorization, before the object is stored.
- Kubernetes audit log — The Kubernetes API server's record of every request made to it: who asked, for what, and whether it was allowed.
Taught in
- Detecting Persistence: Tasks, Registry & Services — Security Operations & Threat Hunting (SOC)