Scanning encrypted attachments in Defender for Office 365
Encrypted attachments used to be the blind spot of every email security solution.
A password-protected ZIP, a protected PDF or an encrypted Excel file: Defender couldn’t look inside, and attackers know that.
How the new Safe Attachments feature works
- If the password is in the email, Defender uses it automatically to decrypt and scan the attachment.
- If the attachment can’t be scanned, the email goes to quarantine.
- The recipient enters the attachment password there.
- Defender decrypts the file and scans it again before release.
- The email is only delivered once everything is clean.
Supported formats include ZIP, 7z, RAR, PDF and Office files.
How to turn it on
The feature is off by default and has to be enabled in the Safe Attachments policy. It is now a standard part of my tenant hardening projects.
- In the Microsoft Defender portal, go to Email & collaboration → Policies & rules → Threat policies → Safe attachments.
- Open the policy and select the Block action under “Edit settings”.
- Enable Block unscanned attachments. Exclude individual file types if needed.
- Choose a quarantine policy that lets recipients release messages, if they should release them themselves. Otherwise only IT releases them.
- Save.
Good to know
- The setting is only available with the “Block” action.
- The password can be entered only once per message and isn’t stored.
- Several attachments with different passwords aren’t supported.
- Admins can release these messages at any time without the password.
Important: user awareness
Users should only enter the attachment password, never their sign-in credentials. And unexpected emails with protected attachments belong with IT, not in self-release.
Source: Microsoft Learn: Safe Attachments, encrypted (password-protected) attachments