Privilege Escalation (TA0004)(external, opens in a new tab or window)
Execution (TA0002)(external, opens in a new tab or window)
Defense Evasion (TA0005)(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.requestObject.spec.containers.securityContext.capabilities.add: ("BPF" or "DAC_READ_SEARCH" or "NET_ADMIN" or "SYS_ADMIN" or "SYS_BOOT" or "SYS_MODULE" or "SYS_PTRACE" or "SYS_RAWIO" or "SYSLOG") and not ( aws.eks.audit.requestObject.spec.containers.image : (docker.elastic.co/beats/elastic-agent* or "") or aws.eks.audit.objectRef.namespace:"kube-system" or (aws.eks.audit.objectRef.namespace:datadog and aws.eks.audit.requestObject.spec.containers.image:*datadog-agent*) or (aws.eks.audit.objectRef.namespace:kubearmor and aws.eks.audit.requestObject.spec.containers.image:(*kubearmor\:kubearmor* or kubearmor/kubearmor-snitch*)) or (aws.eks.audit.objectRef.namespace:defender and aws.eks.audit.requestObject.spec.containers.image:*fp-prisma\:defender-defender*) or (aws.eks.audit.objectRef.namespace:metallb-system and aws.eks.audit.requestObject.spec.containers.image:(quay.io/frrouting* or quay.io/metallb/speaker*)) or (aws.eks.audit.objectRef.namespace:longhorn-system and aws.eks.audit.requestObject.spec.containers.image:rancher/mirrored-longhornio*) )
Install detection rules in Elastic Security
Detect AWS EKS Container Created with Excessive Linux Capabilities 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).