audit policy
The Kubernetes file of ordered rules that decides which API requests are logged and at what level of detail.
In more detail
Rules are checked in order and the first match sets the level, so specific rules go first and a catch-all goes last. A good policy logs Secrets at Metadata (never the secret itself), exec at Request, drops noisy kube-proxy watches, and logs request bodies for resources used for persistence.
Related terms
- Kubernetes audit log — The Kubernetes API server's record of every request made to it: who asked, for what, and whether it was allowed.
- audit level — How much of a Kubernetes API request is logged: None, Metadata, Request or RequestResponse.
- audit stage — The point in handling a Kubernetes API request at which an audit event is written.
Taught in
- Windows Event Logs, Sysmon & Linux Auditd Telemetry — Security Operations & Threat Hunting (SOC)
- Detecting Persistence: Tasks, Registry & Services — Security Operations & Threat Hunting (SOC)