Skip to content

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.2
nist-800-53-r5:SI-3 Malicious Code Protection
MITRE ATT&CK T1566.001, T1204.002
Reads from Exchange Online, Security & Compliance PowerShell

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.

Blocking known malicious file types can help prevent malware-infested files from infecting a host.

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.

To enable the Common Attachment Types Filter:

  1. Navigate to Microsoft 365 Defender.
  2. Click to expand Email & collaboration select Policies & rules.
  3. On the Policies & rules page select Threat policies.
  4. Under policies select Anti-malware and click on the Default (Default) policy.
  5. 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.
  6. If any of the default file types are missing, click Select file types and add the missing file types in.
  7. Click Save.
  1. Connect to Exchange Online using Connect-ExchangeOnline.
  2. Run the following Exchange Online PowerShell command:
Terminal window
Set-MalwareFilterPolicy -Identity Default -EnableFileFilter $true
  1. Use Set-MalwareFilterPolicy -Identity Default with the -FileTypes parameter to add any missing file types from the default list below. Retrieve the existing list first using Get-MalwareFilterPolicy and 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, ace

Note: 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.


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.