text code block:data_stream.dataset:gcp.audit and service.name:k8s.io and event.outcome:failure and user_agent.original:(* and not (*kubernetes/$Format or kube-probe* or gke-exec-auth-plugin*)) and not client.user.email:( "system:addon-manager" or system\:*controller* or system\:gke-* or "system:apiserver" or "system:kube-scheduler" or "system:metrics-server-nanny" or "system:kube-proxy" or "system:clustermetrics" or "system:vpa-recommender" or "system:cluster-autoscaler" or "system:kubestore-collector" or "system:konnectivity-server" or "system:serviceaccount:kube-system:pod-garbage-collector" or "system:serviceaccount:kube-system:generic-garbage-collector" or system\:node\:* or "gcp:kube-bootstrap" or *container-engine-robot* )
Install detection rules in Elastic Security
Detect GKE Forbidden Request from Unusual User Agent 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).