Privilege Escalation (TA0004)(external, opens in a new tab or window)
text code block:data_stream.dataset : "aws.eks_audit" and aws.eks.audit.annotations.authorization_k8s_io/decision:"allow" and aws.eks.audit.verb : "create" and aws.eks.audit.objectRef.resource : "pods" and aws.eks.audit.objectRef.namespace : "kube-system" and aws.eks.audit.requestObject.spec.serviceAccountName:*controller and not aws.eks.audit.requestObject.spec.containers.image:( mirror.gcr.io/aquasec/trivy* or *amazonaws.com/eks/snapshot-controller* or rancher/mirrored-sig-storage-snapshot-controller* or public.ecr.aws/eks/aws-load-balancer-controller* or docker.io/bitnami/sealed-secrets-controller* or registry.k8s.io/autoscaling/vpa-admission-controller* or registry.k8s.io/sig-storage/csi-attacher* or registry.k8s.io/sig-storage/csi-provisioner* )
Install detection rules in Elastic Security
Detect AWS EKS Suspicious Assignment of Controller Service Account 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).