Persistence (TA0003)(external, opens in a new tab or window)
Privilege Escalation (TA0004)(external, opens in a new tab or window)
text code block:data_stream.dataset:"kubernetes.audit_logs" and kubernetes.audit.objectRef.resource:"certificatesigningrequests" and kubernetes.audit.verb:("create" or "update" or "patch") and kubernetes.audit.annotations.authorization_k8s_io/decision:"allow" and not user.name:( system\:kube-controller-manager or system\:kube-scheduler or system\:node\:* or system\:serviceaccount\:kube-system\:* or eks\:* or aksService )
Install detection rules in Elastic Security
Detect Kubernetes Client Certificate Signing Request Created or Approved 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).