Microsoft Defender for Office 365
Email and collaboration

Safe Attachments About

In brief

The documentation now explains quarantining password-protected attachments that cannot be scanned, including release workflows, just-in-time rescanning, file-type exclusions, password limitations, and advanced hunting.

What Defender admins need to know

Administrators can review the setting and quarantine policy, and use the hunting query to identify affected messages.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

The recommendation for Standard and Strict policy settings is to enable redirection. For more information, see Safe Attachments settings.

  • Block messages containing encrypted attachments that could not be scanned: When you select Block as the Safe Attachments unknown malware response, you can turn on this setting to quarantine messages that contain encrypted (password-protected) attachments. This setting applies when Safe Attachments can't scan or detonate the attachments, for example, when the password isn't available. Affected messages are held in quarantine instead of being delivered until an admin or the recipient releases them. For more information, see the Encrypted (password-protected) attachments in Safe Attachments policies section later in this article.

  • Priority: If you create multiple policies, you can specify the order that they're applied. No two policies can have the same priority, and policy processing stops after the first policy is applied (the highest priority policy for that recipient).

    For more information about the order of precedence and how multiple policies are evaluated and applied, see Order and precedence of email protection.

  • S/MIME) encrypted messages.

  • You configured the Dynamic Delivery action in a Safe Attachments policy, but the recipient doesn't support Dynamic Delivery (for example, the recipient is a mailbox in an on-premises Exchange organization). However, Safe Links in Microsoft Defender for Office 365 is able to scan Office file attachments that contain URLs (if Safe Links scanning of support Office apps is turned on in the applicable Safe Links policy).

Encrypted (password-protected) attachments in Safe Attachments policies

Encrypted (password-protected) attachments are common in business workflows, but they create inspection challenges. Safe Attachments opens email attachments in a virtual environment to check them for malicious content (a process known as detonation). Safe Attachments can't fully scan or detonate a password-protected attachment unless the password is available (for example, extracted from the email body during scanning).

You configure Safe Attachments policies to quarantine messages that contain password-protected attachments when scanning or detonation can't complete. Affected messages are quarantined instead of delivered. They stay in quarantine until they're released:

On the Quarantine page in the Defender portal, these messages have the Password protected item quarantine reason value.

When a user supplies the password, Safe Attachments runs a just-in-time detonation (a new scan) of the attachment before release. The password is used only to open and rescan the attachment. It isn't stored.

  • If the attachment is found to be safe, the message is released to the mailbox.
  • If the attachment is found to be malicious or still can't be scanned, the message stays in quarantine for an admin to review.

Currently, the password can be submitted only once for each quarantined message. Retrying with another password isn't supported.

By default, this setting evaluates password-protected attachments of all file types. In the Exclude these attachment types section, you can exclude specific attachment types from the setting:

  • Acrobat (pdf)
  • Archive (zip, gzip, 7z, rar, tar only)
  • Office (doc, docx, xls, xlsx, ppt, pptx only)
  • All other file types

Attachments are identified by their true file type, not only by the file name extension.

A Quarantine policy value determines what recipients can do with these quarantined messages and whether they receive quarantine notifications. By default, the quarantine policy named DefaultFullAccessWithNotificationPolicy is used. For more information, see Anatomy of a quarantine policy.

This setting supports messages where a single password unlocks the attachments:

  • A message with one password-protected attachment.
  • A message with multiple password-protected attachments that all use the same password. The user enters the password once to evaluate and possibly release the message.

Messages that contain multiple password-protected attachments with different passwords aren't handled by this setting. The same limitation applies to a single archive (for example, a ZIP file) that contains multiple items protected by different passwords. These messages continue to be processed as they are today, without the quarantine and self-release experience.

In Defender for Office 365 Plan 2, security operations teams can identify messages with password-protected attachments by using advanced hunting:

EmailAttachmentInfo
| where AdditionalFields contains "IsPasswordProtectedItem"

Submit files for analysis