Microsoft Defender for Endpoint
Endpoint protection

Configure and validate exclusions for Microsoft Defender for Endpoint on macOS

In brief

The page updates metadata and wording, removes the mitigation decision table and post-exclusion performance comparison guidance, and clarifies EICAR testing and threat allow-list commands.

What Defender admins need to know

Administrators will see streamlined exclusion-testing instructions, but the previous troubleshooting and validation guidance is no longer on this page.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Configure and validate exclusions for Microsoft Defender for Endpoint on macOS

You can exclude certain files, folders, processes, and process-opened files from Defender for Endpoint on macOS scans. Exclusions can help avoid incorrect detections on files and software that are unique to your organization. Exclusions can also be useful for mitigating performance issues caused by Defender for Endpoint on macOS.

To narrow down which process and/or path and/or extension you need to exclude, use real-time protection statistics.

[!INCLUDE side-by-side-scenarios]

Choose the right mitigation

Use the narrowest mitigation that addresses the identified component.

FindingNext step
wdavdaemon_unprivileged is affected, and real-time protection statistics identify a file, folder, or processConsider an antivirus exclusion after reviewing the security impact.
wdavdaemon or wdavdaemon_enterprise is affectedCollect hot event sources and Client Analyzer performance data. Antivirus exclusions might not address this event-processing load.
Another endpoint security product is installedConfirm the intended active or passive mode and the coexistence settings for both products before adding workload exclusions.
The affected workload isn't identifiedDon't add a broad exclusion. Reproduce the issue and collect performance diagnostics first.

After applying an exclusion, repeat the same workload and compare CPU usage, memory usage, scan counts, and elapsed time. Remove the exclusion if it doesn't provide a measurable improvement.

Supported exclusion types

The following table shows the exclusion types supported by Defender for Endpoint on macOS.

In the following Bash snippet, replace test.txt with a file that conforms to your exclusion rules. For example, if you have excluded the .testing extension, replace test.txt with test.testing. If you're testing a path, ensure that you run the command within that path.

To download the standard EICAR test file and verify whether Defender detects it, run the following command:

curl -o test.txt https://secure.eicar.org/eicar.com.txt

If Defender for Endpoint on macOS reports malware, then the exclusion rule you are testing isn't working. If there's no report of malware, and the downloaded file exists, then the exclusion is working. You can open the file to confirm that the contents are the same as what is described on the EICAR test file website.

If you don't have Internet access, you can create your ownthe EICAR test file. Writefile locally instead. Use the following Bash command to write the standard EICAR test string to a new text file with the following Bash command:file:

echo 'X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' > test.txt

### Allow a threat by name

To allow a specific detected threat by name so that Defender for Endpoint no longer blocks it, add athe threat name to the allowed list, executelist by running the following command:

```bash
mdatp threat allowed add --name [threat-name]

To obtainfind the exact threat name associated with a detectionyou need to allow, list all current detections on your device, run mdatp threat list:device by running the following command:

mdatp threat list

For example, to allow the EICAR test detection so that Defender for Endpoint no longer blocks it, add EICAR-Test-File (not a virus) (the threat name associated with the EICAR detection) to the allowed list, executelist by running the following command:

mdatp threat allowed add --name "EICAR-Test-File (not a virus)"