Skip to content
Posch IT Consulting & Solutions
  • Services
  • Approach
  • Projects
  • About me
  • Partners
  • FAQ
  • Blog
DEENFR
Book an appointment
  • Services
  • Approach
  • Projects
  • About me
  • Partners
  • FAQ
  • Blog
DeutschEnglishFrançais
Book an appointment
← All articles Defender

Scanning encrypted attachments in Defender for Office 365

François Posch1 December 20263 min read

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

  1. If the password is in the email, Defender uses it automatically to decrypt and scan the attachment.
  2. If the attachment can’t be scanned, the email goes to quarantine.
  3. The recipient enters the attachment password there.
  4. Defender decrypts the file and scans it again before release.
  5. The email is only delivered once everything is clean.

Supported formats include ZIP, 7z, RAR, PDF and Office files.

Quarantine details in Microsoft Defender showing the reason “Password protected item”
In quarantine, the reason shows as “Password protected item”.
Dialog “Enter password to release email” with password fields and the “Scan for release” button
The recipient enters the attachment password and starts a new scan with “Scan for release”.

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.

  1. In the Microsoft Defender portal, go to Email & collaboration → Policies & rules → Threat policies → Safe attachments.
  2. Open the policy and select the Block action under “Edit settings”.
  3. Enable Block unscanned attachments. Exclude individual file types if needed.
  4. Choose a quarantine policy that lets recipients release messages, if they should release them themselves. Otherwise only IT releases them.
  5. Save.
Safe Attachments policy in the Microsoft Defender portal with “Block unscanned attachments” enabled
Safe Attachments policy in the Defender portal: enable “Block unscanned attachments”.

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

Is Defender set up correctly in your tenant?

In a free initial consultation you get a first assessment of the security of your Microsoft 365 environment.

Book a free consultation
© 2026 Posch IT Consulting & Solutions · Vienna
Blog Legal notice Privacy policy LinkedIn