text code block:any where data_stream.dataset == "aws.eks_audit" and ( aws.eks.audit.user.username in ("system:anonymous", "system:unauthenticated") or aws.eks.audit.impersonatedUser.username in ("system:anonymous", "system:unauthenticated") or aws.eks.audit.user.username == null or aws.eks.audit.user.username == "" ) and aws.eks.audit.level in ("RequestResponse", "ResponseComplete", "Request") and aws.eks.audit.verb in ("create", "update", "patch") and aws.eks.audit.objectRef.resource == "pods"
Install detection rules in Elastic Security
Detect AWS EKS 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).