Control: 3.1.3.5 Ensure that 'File Integrity Monitoring' component status is set to 'On'
Description
File Integrity Monitoring (FIM) is a feature that monitors critical system files in Windows or Linux for potential signs of attack or compromise.
FIM provides a detection mechanism for compromised files. When FIM is enabled, critical system files are monitored for changes that might indicate a threat actor is attempting to modify system files for lateral compromise within a host operating system.
Remediation
From Azure Portal
- From the Azure Portal 
Homepage, selectMicrosoft Defender for Cloud. - Under 
ManagementselectEnvironment Settings. - Select a subscription.
 - Under 
Settings>Defender Plans, clickSettings & monitoring. - Under the Component column, locate the row for 
File Integrity Monitoring. - Select 
On. - Click 
Continuein the top left. 
Repeat the above for any additional subscriptions.
Default Value
By default, File Integrity Monitoring is Off.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.cis_v300_3_1_3_5Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v300_3_1_3_5 --shareSQL
This control uses a named query:
select  id as resource,  'info' as status,  'Manual verification required.' as reason,  display_name as subscriptionfrom  azure_subscription;