Skip to main content

More Info:

Enable Microsoft Defender for Cloud image scanning (or a third-party provider) on your Azure Container Registry to detect vulnerabilities in stored container images before they are deployed.

Risk Level

Medium

Address

Security

Compliance Standards

  • CIS AKS

Triage and Remediation

Remediation

Manual Steps

  1. Identify target subscription(s) and registry(ies)
    • On any machine with Azure CLI access:
    • Decide which ACRs are in scope for the cluster (e.g., those referenced in your deployment manifests, Helm charts, or imagePullSecrets).
  2. Check whether Microsoft Defender for Cloud is enabled for Container Registries
    • On any machine with Azure CLI access:
    • If pricingTier is Standard, MDC is enabled for Container Registries at the subscription level; if Free, MDC image scanning is not active.
  3. Check whether image scanning is enabled on each target ACR
    • For each in-scope registry (replace placeholders with real values):
    • Review the true/false value; true indicates image scanning is enabled on that registry.
  4. Decide on the protection model (MDC vs. third-party)
    • If you already use a third-party scanner (e.g., integrated via CI/CD or ACR tasks), gather evidence (tool config, sample scan reports, and how they cover all ACR images/tags).
    • Compare its coverage and SLAs to MDC’s capabilities; decide if MDC should be enabled, used in combination, or if the third-party solution alone is sufficient for your risk appetite.
  5. Enable or adjust configuration where required
    • If you decide to enable MDC for Container Registries at subscription level (incurs cost):
    • If you need to enable image scanning on a specific registry:
    • If you decide not to enable MDC (because of cost or reliance on a third-party solution), document the justification and attach evidence of the alternative scanning.
  6. Verify and document the final state
    • Re-run:
    • And for each in-scope registry:
    • Record outputs, decisions (MDC vs. third-party), and any exclusions as part of your security and compliance documentation.
kubectl cannot enable Microsoft Defender for Cloud image scanning or configure Azure Container Registry; this must be done in the Azure portal, Azure CLI, or your IaC targeting the subscription/registry configuration. Refer to the Manual Steps section for the exact Azure-side commands and review process.