8.1.11 Ensure That Microsoft Defender Recommendation for 'Apply system updates' status is 'Completed' (Automated)
Description
Ensure that the Microsoft Defender for Cloud recommendation for applying system updates has been resolved and its status shows as 'Completed', indicating all virtual machines have the latest security and critical updates installed.
Rationale
Keeping virtual machines up to date with the latest security and critical updates is essential for maintaining a strong security posture. Unpatched systems are a primary attack vector for adversaries. Microsoft Defender for Cloud continuously assesses the update status of machines and generates recommendations when updates are missing. Ensuring the 'Apply system updates' recommendation is completed confirms that all monitored machines have been patched.
Impact
Applying system updates may require maintenance windows and can cause temporary service disruption during reboots. Organizations should plan update schedules to minimize impact on production workloads. Automatic update mechanisms (e.g., Azure Update Management) can help streamline this process.
Audit Procedure
From Azure Portal:
- Go to
Microsoft Defender for Cloud. - Under
General, clickRecommendations. - In the search box, type
Apply system updates. - Verify that the recommendation status shows
Completed(green checkmark). - If the status is
Not Completed, click the recommendation to see which resources are missing updates.
From Azure CLI:
az security assessment list --query "[?displayName=='System updates should be installed on your machines'].{Name:displayName, Status:status.code}" -o table
Ensure Status shows Healthy for all assessments.
From PowerShell:
Get-AzSecurityAssessment | Where-Object {$_.DisplayName -like "*System updates*"} | Select-Object DisplayName, @{N="Status";E={$_.Status.Code}}
Ensure all results show Healthy.
Expected Result
The 'Apply system updates' recommendation should show status Completed or all assessments should return Healthy.
Remediation
From Azure Portal:
- Go to
Microsoft Defender for Cloud. - Under
General, clickRecommendations. - Search for
Apply system updates. - Click the recommendation to view affected resources.
- For each affected resource, follow the remediation steps to install the missing updates.
- Alternatively, use Azure Update Management to automate the process.
Using Azure Update Management:
- Go to
Azure AutomationorAzure Update Manager. - Configure update schedules for all virtual machines.
- Enable periodic assessment to automatically check for missing updates.
- Deploy updates during scheduled maintenance windows.
Default Value
By default, Microsoft Defender for Cloud monitors update status but does not automatically apply updates.
References
- https://learn.microsoft.com/en-us/azure/defender-for-cloud/recommendations-reference
- https://learn.microsoft.com/en-us/azure/defender-for-cloud/apply-security-recommendations
- https://learn.microsoft.com/en-us/azure/update-manager/overview
- https://learn.microsoft.com/en-us/azure/automation/update-management/overview
Profile
- Level 1