CIS.M365.2.1.2: Ensure the Common Attachment Types Filter is enabled (Only Checks Default Policy)
| ID | CIS.M365.2.1.2 |
| Severity | Medium |
| Suite | CIS Microsoft 365 Foundations Benchmark |
| Product | Defender |
| Related products | Exchange Online |
| Feature | Anti-malware |
| Security area | Email and collaboration protection |
| Resource type | Tenant |
| User impact of fixing | Low |
| Effort to fix | Low |
| Benchmark | CIS Microsoft 365 Foundations Benchmark 7.0.0, 2.1.2 (L1, E3 Level 1) |
| Framework controls | cis-m365:2.1.2nist-800-53-r5:SI-3 Malicious Code Protection |
| MITRE ATT&CK | T1566.001, T1204.002 |
| Reads from | Exchange Online, Security & Compliance PowerShell |
What this checks and how to fix it
Section titled “What this checks and how to fix it”2.1.2 (L1) Ensure the Common Attachment Types Filter is enabled
The Common Attachment Types Filter lets a user block known and custom malicious file types from being attached to emails.
Rationale
Section titled “Rationale”Blocking known malicious file types can help prevent malware-infested files from infecting a host.
Impact
Section titled “Impact”Blocking common malicious file types should not cause an impact in modern computing environments.
The audit also verifies that the FileTypes property contains at least the default list of 53 file types below.
Remediation action
Section titled “Remediation action”To enable the Common Attachment Types Filter:
- Navigate to Microsoft 365 Defender.
- Click to expand Email & collaboration select Policies & rules.
- On the Policies & rules page select Threat policies.
- Under policies select Anti-malware and click on the Default (Default) policy.
- On the Policy page that appears on the right-hand pane scroll to the bottom and click on Edit protection settings, check the Enable the common attachments filter.
- If any of the default file types are missing, click Select file types and add the missing file types in.
- Click Save.
PowerShell
Section titled “PowerShell”- Connect to Exchange Online using
Connect-ExchangeOnline. - Run the following Exchange Online PowerShell command:
Set-MalwareFilterPolicy -Identity Default -EnableFileFilter $true- Use
Set-MalwareFilterPolicy -Identity Defaultwith the-FileTypesparameter to add any missing file types from the default list below. Retrieve the existing list first usingGet-MalwareFilterPolicyand append any missing file types before updating the policy.
Default extensions:
ani, apk, app, appx, arj, bat, cab, cmd, com, deb, dex, dll, docm, elf, exe,hta, img, iso, jar, jnlp, kext, lha, lib, library, lnk, lzh, macho, msc, msi,msix, msp, mst, pif, ppa, ppam, reg, rev, scf, scr, sct, sys, uif, vb, vbe,vbs, vxd, wsc, wsf, wsh, xll, xz, z, aceNote: Audit and Remediation guidance may focus on the Default policy however, if a Custom Policy exists in the organization’s tenant, then ensure the setting is set as outlined in the highest priority policy listed.
Related links
Section titled “Related links”- Microsoft 365 Defender
- Get-MalwareFilterPolicy
- Configure anti-malware policies for cloud mailboxes
- CIS Microsoft 365 Foundations Benchmark v7.0.0 - Page 84
Mito check, based on CIS Microsoft 365 Foundations Benchmark. Author: NZLostboy. Open-source licences.
Open-source licences. CIS Benchmark material © Center for Internet Security, Inc.; CISA SCuBA baselines are public domain (CC0).
© 2026 Virtual Petals. Mito is a Virtual Petals service, hosted in Microsoft Azure UAE North.
