By NHI Mgmt Group Editorial TeamDomain: Cyber SecuritySource: WazuhPublished February 23, 2026

TL;DR: Kubernetes audit logging gives security teams visibility into control-plane activity by forwarding API server events to Wazuh for alerting and analysis, according to Wazuh. The practical value is not just log collection but the ability to spot suspicious resource changes, privilege abuse, and unauthorised actions before they become hard-to-trace incidents.


At a glance

What this is: This is a Wazuh walkthrough on forwarding Kubernetes audit logs to a central listener so API server activity can be monitored and alerted on.

Why it matters: It matters because Kubernetes control-plane events often reveal the access, change, and privilege paths that determine whether a cluster can be governed or silently abused.

By the numbers:

👉 Read Wazuh's guide to auditing Kubernetes events with forwarded audit logs


Context

Kubernetes audit logging is a control-plane visibility problem as much as it is a logging problem. Without reliable event capture from the API server, teams lose the ability to trace who changed what, when a resource was deleted, and whether privilege or configuration drift is driving risk across the cluster. For identity and access teams, that makes Kubernetes a governance boundary where access decisions and runtime activity need to be reviewed together.

The article shows a practical path for centralising Kubernetes audit events in Wazuh by using a webhook listener, TLS-protected transport, and cluster audit policy rules. That is a common pattern for container environments that need lightweight detection without relying only on host-based telemetry. For practitioners, the key issue is not Minikube itself but the control model for seeing API-level actions in any Kubernetes estate.


Key questions

Q: How should security teams use Kubernetes audit logs to detect risky change activity?

A: Focus first on API server actions that change state, especially create, patch, update, and delete events on workloads and configuration objects. Those events show who changed what and when, which makes them far more useful than generic system logs for detecting privilege misuse, unsafe automation, or unauthorised cluster changes.

Q: Why does PQC planning matter to IAM and PAM teams?

A: Because authentication, privileged access, and workload trust all depend on cryptographic primitives that may need post-quantum replacement. IAM and PAM teams own many of the systems that will break first if trust assumptions are not mapped early. PQC is therefore an identity architecture issue, not only a cryptography issue.

Q: What breaks when Kubernetes control-plane activity is not centrally logged?

A: Teams lose the ability to reconstruct administrative actions after the fact, especially resource deletion, configuration changes, and privileged API calls. That creates blind spots for investigation, access review, and change validation, and it makes it much harder to tell legitimate operations from abuse.

Q: How should organisations decide which Kubernetes audit events deserve alerts?

A: Prioritise events that change cluster state or reveal administrative intent, then tune depth by object criticality. Deletions, patches, and updates on deployments or ConfigMaps usually deserve higher priority than read-only events, because they are more likely to indicate a security-relevant change in the environment.


Technical breakdown

How Kubernetes audit logging captures control-plane activity

Kubernetes audit logging records requests made to the API server, which is the control point for cluster resources. The audit policy decides which requests are ignored, logged at metadata level, or captured with request and response content. That distinction matters because not every event should expose full payloads, especially where tokens or sensitive object data may be present. By tuning audit rules, teams can preserve security visibility while reducing noise and limiting unnecessary data exposure.

Practical implication: define audit-policy levels by resource sensitivity so the API server captures meaningful actions without overexposing payload data.

Why a webhook listener changes audit log handling

A webhook listener turns Kubernetes audit output into structured security telemetry that can be ingested by an external analysis engine. In this pattern, the listener receives JSON over HTTPS, validates transport with certificates, and forwards the event into a downstream pipeline for correlation and alerting. The control value comes from centralisation: audit data leaves the cluster boundary quickly enough to support investigation, while the security platform keeps a durable record for later analysis.

Practical implication: use authenticated webhook transport and central retention so Kubernetes events survive local compromise or log tampering.

Why resource-change events are the most useful signal

Create, patch, update, and delete operations are often the most security-relevant Kubernetes audit events because they reveal actual change in cluster state. A delete on a deployment, a patch to labels, or an update to a ConfigMap can indicate legitimate operations, but the same events also surface abuse, misconfiguration, or privileged misuse. Alerting on these events works because control-plane actions are high-signal indicators of operational intent, especially when tied to the calling user and source IP.

Practical implication: prioritise alert rules for change events on workloads and configuration objects before expanding to lower-value audit noise.


NHI Mgmt Group analysis

Control-plane visibility is the real security gain here. Kubernetes audit logging is not just operational instrumentation, it is a governance layer for understanding who exercised power over cluster resources. When API server activity is centralised, security teams can correlate access, change, and identity context instead of treating Kubernetes as a black box. That directly supports NIST CSF monitoring expectations and helps identity teams distinguish legitimate privilege from unsafe standing access. The practitioner takeaway is simple: if the control plane is not observable, it is not governable.

Audit events become identity evidence when they are tied to users, verbs, and resources. The sample delete event shows exactly why Kubernetes telemetry matters to IAM and PAM teams. A user, an action, and a target resource can be traced together, which is essential when shared admin access or service-level automation is in play. This is also where least privilege becomes measurable, because repeated patch and delete operations can expose overbroad entitlements. The practitioner takeaway is to treat Kubernetes audit data as access evidence, not just operational logs.

Kubernetes change monitoring is a workload identity problem as much as a logging problem. In container estates, workload and human actions often intersect through the same API boundary, so the distinction between infrastructure telemetry and identity governance collapses quickly. That makes this topic relevant to NHI governance where service accounts, automation identities, and cluster-admin style access can all drive resource changes. The NHI question is not whether an action was logged, but whether the identity behind the action was expected, scoped, and reviewable. The practitioner takeaway is to align audit coverage with identity lifecycle controls for privileged cluster actors.

Change-based alerting creates detection value only when policy reflects the blast radius of the object. A deployment delete is not the same as a ConfigMap update, and a metadata-only audit trail may be enough for one but insufficient for the other. Security teams should classify Kubernetes objects by operational sensitivity and tune alert depth accordingly. That is a better governance model than applying one uniform rule across every object type. The practitioner takeaway is to tier audit policies by resource criticality and assign response paths accordingly.

What this signals

Kubernetes audit logging will increasingly be judged by whether it supports identity governance, not just detection. The strongest programmes will connect API events to access review, privileged account review, and workload identity ownership so that cluster change data becomes actionable evidence rather than archival noise.

Cluster-change evidence gap: the practical failure is not absence of logs, but absence of a governable trail from action to accountable identity. Teams that cannot link resource mutation to a named human, service account, or automation path will struggle to prove least privilege in container estates.

For identity-led security programmes, the next step is to align Kubernetes audit coverage with NHI lifecycle controls, especially for shared administrative access and automated cluster actors. That includes inventory, ownership, and rotation governance for the identities that can alter cluster state.


For practitioners

  • Log API server actions at policy-driven detail levels Separate low-risk endpoints from workload changes, token review activity, and sensitive authorisation events so audit volume stays useful. Capture request and response content only where the security value outweighs exposure risk.
  • Centralise Kubernetes audit events outside the cluster Forward audit logs to an external analysis pipeline so delete, patch, and update events cannot be lost to local compromise or node failure. Preserve the original user, verb, resource, and source IP fields for investigation.
  • Alert on resource mutation before broadening to all audit noise Start with create, patch, update, and delete operations on deployments and ConfigMaps, then expand to other object types once the highest-risk paths are covered. Map those events to reviewable identities and privileged accounts.
  • Tie Kubernetes events to identity and privilege reviews Use audit records to validate whether repeated admin actions, shared access, or automation identities are aligned with approved access scope. Feed those records into IAM and PAM review cycles so cluster actions become evidence, not just logs.

Key takeaways

  • Kubernetes audit logs matter because they connect cluster actions to accountable identities, which is what makes control-plane activity governable.
  • Resource mutation events such as create, patch, update, and delete are the highest-value signals because they expose real change in the cluster.
  • Security teams should centralise audit data, tune policy by object criticality, and feed the results into IAM and PAM review cycles.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0DE.CM-1Continuous monitoring of API server events maps directly to Kubernetes audit visibility.
NIST SP 800-53 Rev 5AU-2Audit event selection and retention are central to the logging approach in this guide.
MITRE ATT&CKTA0006 , Credential Access; TA0004 , Privilege Escalation; TA0040 , ImpactCluster audit data helps detect privileged abuse and destructive activity in Kubernetes.
CIS Controls v8CIS-8 , Audit Log ManagementThe post is fundamentally about centralising and alerting on audit data.
OWASP Non-Human Identity Top 10NHI-08Kubernetes service and automation identities can drive the changes this post monitors.

Map high-risk Kubernetes actions to attack tactics and alert on privilege or destructive change patterns.


Key terms

  • Kubernetes Audit Log: A record of API activity generated by the Kubernetes control plane. It captures who requested what, when, and at what level of detail, which makes it essential for spotting secrets access, privilege changes, and other identity-driven abuse.
  • Control Plane: The control plane is the set of actions that create, configure, or manage a service. For AI workloads, it covers deployment and administration of the model platform, while data-plane permissions govern what the service and its identities can read or process.
  • Webhook: An automated HTTP callback that sends event data from one application to another when a trigger occurs. In security terms, a webhook is a machine-to-machine trust path that can carry sensitive data and authorization context without a human login step.
  • Audit Policy: An audit policy defines which Kubernetes requests are logged and how much detail is captured for each category. It is the key control for balancing visibility, noise, and sensitive-data exposure, and it shapes whether audit data is useful for security operations or too verbose to manage.

What's in the full article

Wazuh's full blog post covers the operational implementation details this analysis intentionally leaves for the source:

  • Exact Minikube and host setup steps for building the test cluster on AlmaLinux 9
  • TLS certificate generation, webhook listener code, and systemd service configuration for the Wazuh endpoint
  • Full Kubernetes audit policy YAML and API server configuration changes needed to forward events
  • Sample alert output and rule mapping for delete, patch, create, and update events

👉 The full Wazuh post shows the webhook setup, audit policy files, and sample rule output in detail.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, secrets management, and workload identity. It gives practitioners a common control language for linking cluster activity to identity oversight across modern infrastructure.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 19, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org