text code block:data_stream.dataset:gcp.audit and service.name:k8s.io and event.outcome:failure and event.action:*.create and gcp.audit.status.message:(*forbidden* or *Unauthorized*) and not client.user.email:( "system:apiserver" or system\:kube-* or "system:cloud-controller-manager" or system\:gke-* or system\:node\:* or system\:serviceaccount\:kube-system\:* or system\:serviceaccount\:gke-managed* or "kubelet-bootstrap" or "kubelet-nodepool-bootstrap" or "gcp:kube-bootstrap" ) and not user_agent.original:(*kubernetes/$Format)
Install detection rules in Elastic Security
Detect GKE Forbidden Creation 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).