Initial Access (TA0001)(external, opens in a new tab or window)
text code block:event.dataset:"kubernetes.audit_logs" and kubernetes.audit.annotations.authorization_k8s_io/decision:"allow" and kubernetes.audit.user.username:("system:anonymous" or "system:unauthenticated" or not *) and kubernetes.audit.userAgent:(* and not (*kubernetes/$Format)) and not kubernetes.audit.requestURI:(/healthz* or /livez* or /readyz* or /version or /.well-known/oauth-authorization-server)
Install detection rules in Elastic Security
Detect Kubernetes Anonymous Request Authorized by Unusual User Agent in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).