AKS clusters are evaluated for the Microsoft Defender security profile (securityProfile.defender.securityMonitoring.enabled=true). Defender for Containers extends security monitoring, threat detection, vulnerability assessment, and security posture insights to Azure Kubernetes Service workloads.
Risk
Without the Microsoft Defender security profile, AKS runtime threats such as cryptomining, suspicious Kubernetes API activity, vulnerable container images, and malicious workload behavior may go undetected. Compromised containers can pivot to cluster resources and cloud APIs, impacting confidentiality, integrity, and availability.
prowler azure --checks aks_cluster_defender_enabled
Recommendation
Enable the Microsoft Defender security profile for AKS clusters and ensure the subscription has Defender for Containers enabled. Route security monitoring data to the appropriate workspace and review Defender alerts and recommendations as part of the cluster operations process.
Remediation
az aks update --resource-group <RESOURCE_GROUP> --name <CLUSTER_NAME> --enable-defender
- In Microsoft Defender for Cloud, enable the Containers plan for the subscription that contains the AKS cluster
- In the AKS cluster configuration, enable the Microsoft Defender security profile
- Verify that Defender security monitoring is enabled for the managed cluster
Source Code
Resource Type
microsoft.containerservice/managedclusters