Check provider logo

AKS cluster has Microsoft Defender security profile enabled

aks_cluster_defender_enabled

Severityhigh
Serviceaks
by Prowler

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.

Run this check with Prowler CLI

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

CLI

az aks update --resource-group <RESOURCE_GROUP> --name <CLUSTER_NAME> --enable-defender

Native IaC
Terraform
Other
  1. In Microsoft Defender for Cloud, enable the Containers plan for the subscription that contains the AKS cluster
  2. In the AKS cluster configuration, enable the Microsoft Defender security profile
  3. Verify that Defender security monitoring is enabled for the managed cluster

Source Code

Resource Type

microsoft.containerservice/managedclusters

References