text code block:any where event.dataset == "kubernetes.audit_logs" and ( kubernetes.audit.user.username in ("system:anonymous", "system:unauthenticated") or kubernetes.audit.user.username == null or kubernetes.audit.user.username == "" ) and kubernetes.audit.level in ("RequestResponse", "ResponseComplete", "Request") and kubernetes.audit.verb in ("create", "update", "patch") and kubernetes.audit.objectRef.resource == "pods"
Install detection rules in Elastic Security
Detect Kubernetes Anonymous User Create/Update/Patch Pods Request 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).