Skip to main content
Version: 2.1.1-preview

CISA.MS.EXO.9.2 - The attachment filter SHOULD attempt to determine the true file type and assess the file extension.

Overview​

The attachment filter SHOULD attempt to determine the true file type and assess the file extension.

Rationale: Users can change a file extension at the end of a file name (e.g., notepad.exe to notepad.txt) to obscure the actual file type. Verifying the file type and checking that this matches the designated file extension can help detect instances where the file extension was changed.

Remediation action:​

  1. Sign in to Microsoft 365 Defender.
  2. In the left-hand menu, go to Email & Collaboration > Policies & Rules.
  3. Select Threat Policies.
  4. From the Templated policies section, select Preset Security Policies.
  5. Under Standard protection, slide the toggle switch to the right so the text next to the toggle reads Standard protection is on.
  6. Under Strict protection, slide the toggle switch to the right so the text next to the toggle reads Strict protection is on.

Note: If the toggle slider in step 5 is grayed out, click on Manage protection settings instead and configure the policy settings according to Use the Microsoft 365 Defender portal to assign Standard and Strict preset security policies to users | Microsoft Learn.

Test Metadata​

FieldValue
Test IDCISA.MS.EXO.9.2
SeverityMedium
SuiteCISA
Categoryexchange
PowerShell testTest-MtCisaAttachmentFileType
TagsCISA, CISA.MS.EXO.9.2, MS.EXO, MS.EXO.9.2

Source​

  • Pester test: tests/cisa/exchange/Test-MtCisaAttachmentFileType.Tests.ps1
  • PowerShell source: powershell/public/cisa/exchange/Test-MtCisaAttachmentFileType.ps1