Techniques
Sample rules
Azure AKS Suspicious Self-Subject Review by Service Account or Node Identity
- source: elastic
- technicques:
- T1069
- T1613
Description
Detects AKS (Azure Kubernetes Service) service account or node identities invoking self-subject access or rules review APIs. Non-human identities rarely enumerate their own permissions outside known controllers; this can indicate stolen tokens probing effective RBAC before privilege escalation.
Detection logic
data_stream.dataset:azure.platformlogs and
event.action:Microsoft.ContainerService/managedClusters/diagnosticLogs/Read and
azure.platformlogs.category:(kube-audit or kube-audit-admin) and
azure.platformlogs.properties.log.stage:ResponseComplete and
azure.platformlogs.properties.log.verb:create and
azure.platformlogs.properties.log.objectRef.resource:(selfsubjectaccessreviews or selfsubjectrulesreviews) and
azure.platformlogs.properties.log.user.username:((system\:node\:* or system\:serviceaccount\:*) and
not system\:serviceaccount\:azure-arc\:*)