Join our Newsletter — 33% off our NHI Course
Home› Glossary› Governance, Ownership & Risk› API Server Audit Log
Governance, Ownership & Risk

API Server Audit Log

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Governance, Ownership & Risk

The API Server Audit Log is the Kubernetes record of requests made to the kube-apiserver, showing who called which API, on what resource, and when, under a configured audit policy. Attacker activity such as secret reads, pod exec and RBAC changes appears here. Auditing must be configured, so defenders define a policy, ship logs off-cluster and alert on sensitive operations.

What the API Server Audit Log captures

The API Server Audit Log is not a generic Kubernetes debug log. It is a security record of control plane activity that preserves the who, what, when and target of API requests, so defenders can reconstruct administrative action, workload access and suspicious changes against cluster objects.

Because the log reflects requests to the kube-apiserver, it is most valuable when read as an activity trail rather than as a payload dump. It helps answer whether a request was made, which resource was touched and whether the action aligned with expected operational behaviour or with an intrusion path.

In practice, this makes the audit log a core evidence source for investigating secret access, container exec activity, role changes and other sensitive Kubernetes operations. Its usefulness depends on the audit policy, because weak or narrow policy choices can leave important events unrecorded.

Why audit policy and event selection matter

The audit signal is only as good as the policy that produces it. Kubernetes audit policies decide which requests are logged, at what level, and whether response details are captured, so organisations have to choose coverage carefully for high-value actions such as credential reads, impersonation, RBAC mutation and workload execution.

A practical way to think about this is that the audit log is both a detective control and a design choice. If the policy omits sensitive verbs or resources, the gap is not just operational noise reduction, it is a blind spot in post-incident reconstruction and routine security monitoring.

That is why the log should be paired with a clear retention and forwarding design. Local cluster logs are not enough if the attacker can reach the control plane or if the cluster itself is compromised, because the value of the record depends on moving it off-cluster and preserving integrity elsewhere. For runbook detail on recovering service-account usage from Kubernetes audit evidence, see How to find unused Kubernetes service accounts.

How defenders use it for investigation and detection

Audit records become actionable when they are correlated with identity, workload and RBAC context. A suspicious API call is more meaningful if you can tell whether it came from a human operator, a controller, a CI job or a service account, and whether the target resource was expected for that caller.

Common detection use cases include unexpected get access to Secrets, exec into pods, creation of role bindings, changes to cluster roles, and unusual bursts of denied requests that may indicate probing. These are not merely administrative events, they can mark the transition from initial access to privilege expansion or lateral movement.

Kubernetes audit evidence is also valuable after the fact. If a cluster shows signs of compromise, the log can help establish the sequence of actions, identify whether sensitive resources were touched and determine whether additional credentials, tokens or service-account material should be reviewed or rotated.

What good audit coverage looks like in practice

Good coverage usually means deliberate policy design, centralised log export and alerting on high-risk operations rather than collecting everything indiscriminately. The most useful audit streams are the ones that capture privilege changes, secret reads and execution paths, then feed into a SIEM or equivalent detection pipeline where they can be searched and retained reliably.

Audit logs also need operational discipline. Time synchronisation, immutable or protected storage, and a defined retention period all affect whether the record can stand up to investigation. Without those controls, an audit trail may exist but still fail as evidence when it is needed most. For a broader control perspective on log collection, integrity and retention, see Log Management and Retention Guide.

For teams working across cloud and Kubernetes estates, it is helpful to treat the API Server Audit Log as one part of a larger audit-trail strategy. The Kubernetes control plane log often needs to be interpreted alongside platform audit logs, CI/CD records and identity events to show the full path from access to action.

Risk and Threat Considerations

When audit logging is incomplete or not exported, an attacker can act inside the cluster with much less chance of being detected or reconstructed later. That is especially dangerous for Secret reads, pod exec access and RBAC modifications, because those actions can expose credentials, expand privileges or create persistence.

Failure mechanism: Weak audit policy, disabled collection, or on-cluster-only storage can hide the very actions defenders need to see, while an attacker with sufficient control can also try to delete or suppress local evidence.

Impact: The result is reduced detection quality, slower incident response and a weaker ability to prove what happened, which can leave stolen credentials, altered permissions or compromised workloads undiscovered longer.

Standards & Framework Alignment

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

CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-5 — Account ManagementAudit logs expose account and access changes that CIS Controls uses to govern.
Recommendation — Monitor account and access changes in audit logs and alert on unexpected privilege shifts.
NIST SP 800-53 Rev 5AU-2 — Audit EventsKubernetes audit policy defines which events are recorded for investigation.
AU-6 — Audit Record Review, Analysis, and ReportingThe log is useful only when reviewed for secret reads, exec and RBAC changes.
AU-9 — Protection of Audit InformationOff-cluster storage and tamper resistance directly protect the audit trail.
Recommendation — Define auditable Kubernetes events and ensure sensitive API actions are captured. Review Kubernetes audit records for sensitive operations and escalate anomalous activity. Protect exported audit logs from deletion, alteration and unauthorized access.

Practitioner Guidance

Why practitioners should care: Treat the API Server Audit Log as a control-plane evidence source, not a convenience log. Its value comes from deliberately logging the sensitive operations that matter most for cluster security and from moving that evidence to a place an attacker cannot easily alter.

What to watch for: Prioritise visibility into Secret access, workload execution, role and role-binding changes, and other API activity that changes privilege or exposes sensitive material. Where these events are absent, verify whether policy, export or retention is the problem rather than assuming benign activity.

Practitioner takeaway: If you cannot answer who accessed what in the cluster from exported audit evidence, your audit design is not yet strong enough for incident response.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org