Safe Attachments Policy (Octiga)
Microsoft Defender for Office 365 Safe Attachments scans email attachments in a virtual sandbox environment before delivering them to recipients. The Default policy defines how attachments are handled when malware is detected, helping protect users from zero-day malware and other malicious content delivered via email.
Settings this baseline controls
| Setting | What it does |
|---|---|
| Policy name | The name of the Safe Attachments policy. The Default policy applies to all users without a specific policy assignment. Learn more |
| Safe Attachments enabled | Enables or disables the Safe Attachments policy. When enabled, email attachments are scanned in a sandbox before delivery. Learn more |
| Unknown malware response | The action to take when malware is detected in an attachment. Options: Allow (off, no scanning), Block (block and quarantine the message), DynamicDelivery (deliver the message with a placeholder, replace with the original after scanning). Learn more |
| Quarantine policy | The quarantine policy applied to messages that are quarantined by Safe Attachments. Determines end-user permissions for quarantined messages. Learn more |
| Redirect enabled | Whether to redirect messages containing detected malware to a specified email address. Used in audit scenarios. Learn more |
| Redirect email address | The email address to redirect messages to when malware is detected, if Redirect is enabled. Learn more |
Configure it
This baseline turns on Safe Attachments, which scans email attachments in a sandbox before they’re delivered.
-
Add the baseline.
Add it to the tenant directly (see Adding a baseline), or deploy it as part of a scheme (see Deploying a scheme). Adding it to a scheme needs L2 Support or Admin (Creating a scheme).
-
Turn it on and set the response to malware.
Turn on Safe Attachments enabled and set Unknown malware response to Block, so a detected attachment is quarantined along with its message. The other responses deliver the message first and reattach its files once they’re scanned (Dynamic Delivery), or deliver it and only track the scan result (Monitor).
-
Set the quarantine policy.
Set Quarantine policy to
AdminOnlyAccessPolicy, so only an admin can release a message Safe Attachments has quarantined. -
Leave redirection off.
Leave Redirect enabled off. Redirecting detected malware to a separate mailbox is mainly useful for auditing and isn’t needed for standard protection.
-
Choose who it covers and where it ranks.
Octiga creates and manages its own policy, named Octiga Safe Attachment Policy, rather than editing an existing one. Under Recipients, Include users, Include groups and Include domains choose who it covers; under Exceptions, the matching Exclude lists leave people out. Microsoft 365 won’t accept a policy that covers nobody, so when you open the editor on a tenant with no recipients chosen, it fills Include domains with all the tenant’s verified domains for you to save. A scheme has no tenant domains to offer, so type the recipients, groups or domains there. Priority orders the policy among your own Safe Attachments policies (0 runs first); leave it empty to keep its current place. A Strict or Standard preset security policy is still evaluated first for anyone it covers, so this policy’s settings don’t apply to them (see Preset EOP Policy (Standard) and Preset EOP Policy (Strict)).
-
Save, then switch on Auto if you want automatic remediation.
Select Save if you changed any values. Switch on the Auto column on the baseline’s row, on the tenant’s Org-level tab or in a scheme, to have Octiga reapply this whenever it’s changed. Auto acts only while the tenant’s Allow auto-remediation setting is on (Tenant settings); with either off, fix a deviation yourself (Remediation).
Check it worked
Passing means the Octiga Safe Attachment Policy exists, is on, and matches these settings. Check it in the Microsoft Defender portal, under Email & collaboration → Policies & rules → Threat policies → Safe attachments. Users can notice a delay on messages with attachments while they’re scanned, and a message with a detected attachment stays in quarantine instead of arriving.
Standards this addresses
Doing this for every tenant?
Step through the deploy wizard to apply a scheme to a tenant, groups or users, and see what Managed and Direct do at deploy time.