Anti-malware
The default anti-malware policy already does most of the work, and the presets do not change it: anti-malware is identical in Default, Standard and Strict.
- The common attachments filter (EnableFileFilter) is on in all three.
- Malware ZAP is on, pulling delivered messages back when they are later found to be malicious.
- Malware goes to quarantine under AdminOnlyAccessPolicy: users can only request release.
Safe Attachments responses
Safe Attachments is a Defender for Office 365 feature. Its unknown malware response has four values:
- Off: not recommended, and ZAP won't quarantine. A malicious message can sit in the Inbox.
- Monitor: deliver and track.
- Block: quarantine. This is the value in Built-in protection, Standard and Strict (Enable $true, Action Block).
- Dynamic Delivery: deliver the body at once with placeholder attachments until the scan finishes.
The trap: a new custom policy defaults to Off. There is also no default Safe Attachments policy; Built-in protection covers everyone not in Standard, Strict or a custom policy. Scanning typically finishes within 15 minutes, and a new policy takes about 30 minutes to apply.
Dynamic Delivery limits
Dynamic Delivery works only for Exchange Online mailboxes. Most PDF and Office files can be previewed during the scan, and malicious messages are quarantined. It can't replace attachments in:
- public folders;
- messages routed out and back in;
- messages moved to the archive or other folders, including by Inbox rules;
- deleted messages and S/MIME messages;
- tenants with Exclaimer, and on-premises recipients.
Password-protected attachments (2026)
A setting added in 2026, Block messages containing encrypted attachments that could not be scanned, quarantines password-protected files. Unlike malware, these can be self-released: the user enters the password once, which triggers a fresh detonation. Its default quarantine policy is DefaultFullAccessWithNotificationPolicy. Remember that file allows can't be added directly in the Tenant Allow/Block List; they come only from Submissions.