Protect important folders with controlled folder access
Welcome to Microsoft Defender for Endpoint, the new name for Microsoft Defender Advanced Threat Protection. Read more about this and other updates here. We'll be updating names in products and in the docs in the near future.
What is controlled folder access?
Controlled folder access helps you protect your valuable data from malicious apps and threats, like ransomware. Controlled folder access protects your data by checking apps against a list of known, trusted apps. Supported on Windows Server 2019 and Windows 10 clients, controlled folder access can be turned on using the Windows Security App or in Microsoft Endpoint Configuration Manager and Intune (for managed devices).
Controlled folder access works best with Microsoft Defender Advanced Threat Protection, which gives you detailed reporting into controlled folder access events and blocks as part of the usual alert investigation scenarios.
How does controlled folder access work?
Controlled folder access works by only allowing trusted apps to access protected folders. Protected folders are specified when controlled folder access is configured. Typically, commonly used folders, such as those used for documents, pictures, downloads, and so on, are included in the list of controlled folders.
Controlled folder access works with a list of trusted software. If an app is included in the list of trusted software, the app works as expected. If not, the app is blocked from making any changes to files that are inside protected folders. Apps are added to the trusted list based upon their prevalence and reputation. Apps that are highly prevalent throughout your organization, and that have never displayed any malicious behavior, are deemed trustworthy and automatically added to the list.
Apps can also be manually added to the trusted list via Configuration Manager and Intune. Additional actions, such as adding a file indicator for the app, can be performed from the Security Center Console.
Controlled folder access is especially useful in helping to protect your documents and information from ransomware. In a ransomware attack, your files can get encrypted and held hostage. With controlled folder access in place, a notification appears on the computer where an app attempted to make changes to a file in a protected folder. You can customize the notification with your company details and contact information. You can also enable the rules individually to customize what techniques the feature monitors.
You can use audit mode to evaluate how controlled folder access would impact your organization if it were enabled. You can also visit the Windows Defender Test ground website at demo.wd.microsoft.com to confirm the feature is working and see how it works.
Controlled folder access is supported on Windows 10, version 1709 and later and Windows Server 2019.
Controlled folder access requires enabling Microsoft Defender Antivirus real-time protection.
Review controlled folder access events in the Microsoft Defender Security Center
Microsoft Defender ATP provides detailed reporting into events and blocks as part of its alert investigation scenarios.
You can query Microsoft Defender ATP data by using Advanced hunting. If you're using audit mode, you can use advanced hunting to see how controlled folder access settings would affect your environment if they were enabled.
DeviceEvents | where ActionType in ('ControlledFolderAccessViolationAudited','ControlledFolderAccessViolationBlocked')
Review controlled folder access events in Windows Event Viewer
You can review the Windows event log to see events that are created when controlled folder access blocks (or audits) an app:
Download the Evaluation Package and extract the file cfa-events.xml to an easily accessible location on the device.
Type Event viewer in the Start menu to open the Windows Event Viewer.
On the left panel, under Actions, select Import custom view....
Navigate to where you extracted cfa-events.xml and select it. Alternatively, copy the XML directly.
After following the procedure, you have created a custom view that shows events related to controlled folder access, as listed in the following table:
|5007||Event when settings are changed|
|1124||Audited controlled folder access event|
|1123||Blocked controlled folder access event|
View or change the list of protected folders
Windows 10 security app
On your Windows 10 device, open the Windows Security app.
Select Virus & threat protection.
Under Ransomware protection, select Manage ransomware protection.
If controlled folder access is turned off, you'll need to turn it on. Select protected folders.
Do one of the following steps:
To add a folder, select + Add a protected folder.
To remove a folder, select it, and then select Remove.
Evaluate controlled folder access. Use a dedicated demo tool to see how controlled folder access works, and what events would typically be created.
Enable controlled folder access. Use Group Policy, PowerShell, or mobile device management CSPs to enable and manage controlled folder access in your network
Customize controlled folder access. Add additional protected folders, and allow specified apps to access protected folders.