Credential Access (TA0006)(external, opens in a new tab or window)
text code block:data_stream.dataset:azure.platformlogs and event.action:"Microsoft.ContainerService/managedClusters/diagnosticLogs/Read" and azure.platformlogs.category:"kube-audit" and azure.platformlogs.properties.log.responseStatus.code:("200" or "201") and azure.platformlogs.properties.log.verb:("get" or "list") and azure.platformlogs.properties.log.objectRef.resource:"secrets" and azure.platformlogs.properties.log.userAgent:( curl* or python* or Python* or wget* or Wget* or Go-http* or perl* or libwww-perl* or java* or Java* or node* or php* or Guzzle* or Bun* or axios* or undici* or okhttp* or Apache-HttpClient* or HTTPie* or Ruby* or PostmanRuntime* or RestSharp* or *distrib#kali* or *kali-amd64* or *kali-arm64* )
Install detection rules in Elastic Security
Detect Azure AKS Secret get or list with Suspicious 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).