Credential Access (TA0006)(external, opens in a new tab or window)
text code block:data_stream.dataset:"aws.eks_audit" and aws.eks.audit.verb:"create" and aws.eks.audit.objectRef.resource:"serviceaccounts" and aws.eks.audit.objectRef.subresource:"token" and aws.eks.audit.stage:"ResponseComplete" and event.outcome:success and aws.eks.audit.responseStatus.code:201 and user.name:(* and not (system\:kube-controller-manager or system\:kube-scheduler or system\:node\:* or system\:serviceaccount\:kube-system\:* or eks\:* or system\:serviceaccount\:tigera-operator\:* or system\:serviceaccount\:calico-system\:*))
Install detection rules in Elastic Security
Detect AWS EKS Service Account Token Created via TokenRequest API 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).