Credential Access (TA0006)(external, opens in a new tab or window)
text code block:data_stream.dataset:gcp.audit and service.name:"k8s.io" and event.outcome:success and event.type:start and event.action:("io.k8s.core.v1.pods.exec.create" or "io.k8s.core.v1.pods.exec.get") and gcp.audit.labels.command.gke.io/command:( *169.254.169.254* or *metadata.google.internal* or *computeMetadata/v1* )
Install detection rules in Elastic Security
Detect GKE Pod Exec Cloud Instance Metadata Access 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).