Ensure that File Integrity Monitoring (FIM) is enabled in Microsoft Defender for Cloud for your Azure subscriptions. FIM monitors critical system files in Windows or Linux instances, and when enabled, changes are tracked and alerts are generated when suspicious modifications are detected. FIM is included in the Defender for Servers plan 2 subscription and must be explicitly enabled in the Defender Plans settings for each subscription, as it is set to Off by default.
When FIM is enabled, critical system files are continuously monitored for changes that might indicate a threat actor is attempting to modify system configuration or inject malicious code for lateral compromise within the operating system. This capability enhances your incident detection and response capabilities by providing visibility into unauthorized file modifications that could signal an active attack or post-compromise persistence mechanism.
Audit
To determine if File Integrity Monitoring is enabled in Microsoft Defender for Cloud, perform the following operations:
Remediation / Resolution
To enable File Integrity Monitoring in Microsoft Defender for Cloud, perform the following operations:
File Integrity Monitoring requires the Defender for Servers plan 2 subscription to be active on your Azure subscription. Ensure that your subscription is enrolled in the Defender for Servers plan 2 before proceeding with remediation. Additionally, File Integrity Monitoring requires a Log Analytics workspace to store monitoring data — you must have a Log Analytics workspace created in your subscription and provide its resource ID when enabling FIM via the CLI. Enabling FIM may require some time to initialize and begin monitoring files across your compute instances.References
- Azure Official Documentation
- Overview of file integrity monitoring in Microsoft Defender for Cloud
- Enable File Integrity Monitoring
- Defender for Servers
- Azure Command Line Interface (CLI) Documentation
- az account
- az security pricing
- CIS Security Documentation
- CIS Microsoft Azure Benchmarks