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.stage:"ResponseComplete" and azure.platformlogs.properties.log.responseStatus.code:"403" and azure.platformlogs.properties.log.responseStatus.reason:"Forbidden" and not azure.platformlogs.properties.log.user.username:( system\:node\:* or "aksService" or "hcpService" or "readinessChecker" or system\:serviceaccount\:kube-system\:* )
Install detection rules in Elastic Security
Detect Azure AKS Potential API Enumeration by User 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).