The short version
- The simplest route: turn on Standard protection under Preset security policies for everyone, and Strict protection for directors, finance and anyone attackers single out.
- If you need your own policies, switch Safe Links on for email, Teams and Office apps, and do not let people click through to a site Safe Links has blocked.
- Set Safe Attachments to Block. A new custom policy starts at Off.
- Turn on Safe Attachments for SharePoint, OneDrive and Teams under Global settings.
- Run the Configuration analyzer and fix what it flags.
Both features are part of Microsoft Defender for Office 365 Plan 1, which is included in Business Premium. Microsoft 365 E5 includes Plan 2, which has everything in Plan 1. Microsoft 365 E3 and Business Standard include neither.
Where they are
In the Microsoft Defender portal, go to Email & collaboration, Policies & rules, Threat policies. Safe Links and Safe Attachments are under Policies, next to anti-phishing, anti-spam and anti-malware.
The easy route: preset policies
Preset security policies apply Microsoft's recommended settings for Safe Links, Safe Attachments, anti-phishing, anti-spam and anti-malware in one go. In the portal's own words, they help you "stay updated with new security controls and our recommended settings". Built-in protection already covers every user at a basic level. Standard and Strict are off until you turn them on and choose who they apply to.
Policies are applied in a fixed order, and the first one that covers a person is the one used: Strict, then Standard, then any custom policies, then built-in protection. For most organisations, Standard for everyone and Strict for a named group is all that is needed.
Custom Safe Links policies
Use a custom policy when you need something the presets do not allow, such as a list of links that should not be rewritten. Choose Safe Links, then Create.
- Name the policy, then choose the users, groups or domains it covers. Domains is the simplest way to cover everyone.
- On URL & click protection settings, keep email, Teams and Office apps ticked, with real-time scanning, and wait for scanning to finish before delivering the message.
- Under Click protection settings, untick Let users click through to the original URL. It is ticked by default on a new policy, which means a warning page with a button to carry on to the dangerous site.
- Keep the default notification text, then check the summary and choose Submit.
A new policy also ticks Do not rewrite URLs, do checks via Safe Links API only. Links then look normal in the message. They are still scanned when the message arrives, but the check at the moment someone clicks happens only in Outlook (Windows, Mac, iPhone, Android and the web). Decide deliberately rather than leaving the default.
Here is a policy that has been in use for a while, as the details pane shows it. The domains are blurred:
Safe Attachments
Choose Safe Attachments, then Create. The step that matters is Settings:
- Off is the default for a new custom policy. A policy left at Off scans nothing.
- Block holds the message until the attachment has been checked, and quarantines it if it is malicious. Standard and Strict both use Block.
- Dynamic Delivery delivers the email at once without the attachment and adds the attachment when it has been checked. It suits people who cannot wait a few minutes.
- Quarantine policy: AdminOnlyAccessPolicy means only an admin can release a quarantined attachment. Keep it that way for malware.
Then choose Global settings on the Safe Attachments page and turn on Email & collaboration security for SharePoint, OneDrive, and Microsoft Teams. When a file is identified as malicious, people can no longer open, copy, move or share it. They can still download it unless an admin also runs the SharePoint PowerShell command Set-SPOTenant -DisallowInfectedFileDownload $true.
Safe Documents, the second switch, needs Microsoft 365 E5 or E5 Security. It does nothing on Business Premium.
Check it worked
Open Configuration analyzer from Threat policies. It compares your policies with Standard and Strict and lists every setting that is weaker than they are.
Search it for "Safe". In our lab tenant it found the click-through setting above, left on in an older policy:
The Safe Links and Safe Attachments pages also have Reports, which show what has been blocked.
Common mistakes
- A custom Safe Attachments policy left at Off. It looks configured in the list, but scans nothing.
- Click-through left on. A warning page with a button to carry on is a speed bump, not a block.
- Internal email excluded. If one mailbox is taken over, the attacker's next emails come from inside. Keep Apply Safe Links to email messages sent within the organization on.
- Long "do not rewrite" lists. Each entry is a site Safe Links no longer protects. Keep the list short and review it.
- Custom policies that undo a preset. The presets win where they overlap, which confuses anyone reading the custom policy. Pick one approach.
Common questions
Are Safe Links and Safe Attachments included in Business Premium?
Yes. They are part of Microsoft Defender for Office 365 Plan 1, which Business Premium includes. Microsoft 365 E3 and Business Standard do not include it, though it can be added.
Will Safe Attachments delay email?
Only messages with attachments, usually by a few minutes while the attachment is checked. Dynamic Delivery avoids the wait by delivering the message first and the attachment when it is cleared.
Should we use the preset policies or our own?
Presets for most organisations, because Microsoft sets the values and you cannot weaken them by accident. Use custom policies only for a specific need, and run the Configuration analyzer after any change.
