Azure AKS Attempted User Exec into Pod
Detects an AKS (Azure Kubernetes Service) identity establishing an exec session into a pod. Interactive command execution inside a workload via kubectl exec is a common post-compromise technique used to access…
Description
Detects an AKS (Azure Kubernetes Service) identity establishing an exec session into a pod. Interactive command execution inside a workload via kubectl exec is a common post-compromise technique used to access secrets, run tooling, and expand access from a foothold container. Node, control-plane, and kube-system service account identities are excluded, so workload service accounts and users, the identities an adversary is most likely to abuse, remain in scope.
Detection logic
Its licence does not clear it for publishing here
Sunturai publishes a detection's own text where the licence it arrived under has been reviewed and permits it, and Elastic License 2.0 has not. The query as its source wrote it, its canonical form and the hash that pins this revision are in the workspace record.
Detection requirements
- Platform
- Containers
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- event_index
Known benign triggers
- Administrators routinely exec into pods for troubleshooting. Baseline expected users and target pods, then exclude known break-glass or operator identities after review.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| kubernetes.io/docs/tasks/debug/debug-application/get-shell-running-container/ | 4 |
| microsoft.github.io/Threat-Matrix-for-Kubernetes/ | 15 |
| unit42.paloaltonetworks.com/hildegard-malware-teamtnt/ | 5from 2 sources |
From the source
- At source
- Open at source
- Upstream identifier
- 8f131efa-0284-465f-a360-da23e5562dd1
- Tagged by the source as
- Data Source: AzureData Source: Azure Platform LogsData Source: KubernetesDomain: CloudDomain: ContainersDomain: KubernetesNoise: UnknownPerformance: FastPlatform: AzurePlatform: KubernetesResources: Investigation GuideRule Type: Custom Query (KQL)Tactic: ExecutionUse Case: Threat Detection
Licence
- Published under
- Elastic License 2.0Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Sep 20, 2026
- Version
- 3