8.1.1.1 Ensure Microsoft Defender CSPM is set to 'On' (Automated)
Description
Enable Microsoft Defender CSPM to continuously assess cloud resources for security misconfigurations, compliance risks, and exposure to threats.
Rationale
Microsoft Defender CSPM provides detailed visibility into the security state of assets and workloads and offers hardening guidance to help improve security posture.
Impact
Enabling Microsoft Defender CSPM incurs hourly charges for each billable compute, database, and storage resource. This can lead to significant costs in larger environments. Careful planning and cost analysis are recommended before enabling the service.
Audit Procedure
From Azure Portal:
- Go to
Microsoft Defender for Cloud. - Under
Management, clickEnvironment settings. - Click the name of a subscription.
- Select the
Defender plansblade. - Under
Cloud Security Posture Management (CSPM), in the row forDefender CSPM, ensureStatusis set toOn.
From Azure CLI:
az security pricing show --name CloudPosture --query pricingTier
Ensure "Standard" is returned.
From PowerShell:
Get-AzSecurityPricing -Name CloudPosture | Select-Object PricingTier
Ensure Standard is returned.
From Azure Policy:
- Policy ID:
1f90fc71-a595-4066-8974-d4d0802e8ef0- Name: 'Microsoft Defender CSPM should be enabled'
Expected Result
The pricing tier for CloudPosture should be Standard.
Remediation
From Azure Portal:
- Go to
Microsoft Defender for Cloud. - Under
Management, clickEnvironment settings. - Click the name of a subscription.
- Select the
Defender plansblade. - Under
Cloud Security Posture Management (CSPM), in the row forDefender CSPM, set the toggle switch forStatustoOn. - Click
Save.
From Azure CLI:
az security pricing create --name CloudPosture --tier Standard --extensions name=ApiPosture isEnabled=true
From PowerShell:
Set-AzSecurityPricing -Name CloudPosture -PricingTier Standard -Extension '[{"name":"ApiPosture","isEnabled":"True"}]'
Default Value
Defender CSPM is disabled by default.
References
- https://learn.microsoft.com/en-us/azure/defender-for-cloud/concept-cloud-security-posture-management
- https://learn.microsoft.com/en-us/azure/defender-for-cloud/tutorial-enable-cspm-plan
- https://azure.microsoft.com/en-us/pricing/details/defender-for-cloud/#pricing
- https://learn.microsoft.com/en-us/cli/azure/security/pricing
- https://learn.microsoft.com/en-us/powershell/module/az.security/get-azsecuritypricing
- https://learn.microsoft.com/en-us/powershell/module/az.security/set-azsecuritypricing
Profile
- Level 2