Skip to main content

lacework-global-605

2.1.8 Set Microsoft Defender for Containers To 'On' (Manual)

Profile Applicability

• Level 2

Description

Turning on Microsoft Defender for Containers enables threat detection for Container Registries including Kubernetes, providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft Defender for Cloud.

Rationale

Enabling Microsoft Defender for Container Registries allows for greater defense-in-depth, with threat detection provided by the Microsoft Security Response Center (MSRC).

Impact

Turning on Microsoft Defender for Containers incurs an additional cost per resource.

Audit

From Azure Portal

  1. Go to Microsoft Defender for Cloud
  2. Select Environment Settings under the 'Management' heading.
  3. Click on the subscription name
  4. SelectDefender plans under the 'Settings' heading.
  5. For Containers the sliding button under the 'Status' heading should be On If the tenant is licensed and enabled, the output should indicate Standard

From Azure CLI

Ensure the output of the below command is Standard under the PricingTier column.

az security pricing show "ContainerRegistry" --query pricingTier

From Azure PowerShell

Get-AzSecurityPricing -Name 'ContainerRegistry' | Select-Object Name,PricingTier

Ensure output for -PricingTier is Standard

Remediation

From Azure Portal

  1. Go to Microsoft Defender for Cloud.
  2. Select Environment Settings.
  3. Click the subscription name.
  4. Select Defender plans.
  5. Set Status to On for Containers.
  6. Click Save.

From Azure CLI

Use the below command to enable Standard pricing tier for Containers:

az security pricing create -n 'ContainerRegistry' --tier 'standard'

From Azure PowerShell

Set-AzSecurityPricing -Name 'ContainerRegistry' -PricingTier 'Standard'

References

https://docs.microsoft.com/en-us/azure/security-center/security-center-detection-capabilities
https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/list
https://docs.microsoft.com/en-us/rest/api/securitycenter/pricings/update
https://docs.microsoft.com/en-us/powershell/module/az.security/get-azsecuritypricing
https://docs.microsoft.com/en-us/security/benchmark/azure/security-controls-v3-logging-threat-detection#lt-1-enable-threat-detection-capabilities
https://docs.microsoft.com/en-us/azure/defender-for-cloud/defender-for-containers-introduction?tabs=defender-for-container-arch-aks