The short version

  1. The simplest route: turn on Standard protection under Preset security policies for everyone, and Strict protection for directors, finance and anyone attackers single out.
  2. 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.
  3. Set Safe Attachments to Block. A new custom policy starts at Off.
  4. Turn on Safe Attachments for SharePoint, OneDrive and Teams under Global settings.
  5. 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.

Threat policies in the Microsoft Defender portal: Templated policies (Preset Security Policies, Configuration analyzer), Policies (Anti-phishing, Anti-spam, Anti-malware, Safe Attachments, Safe Links) and Rules (Tenant Allow/Block Lists, Email authentication settings, Advanced delivery, Enhanced filtering).

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.

Preset security policies: Built-in protection, Standard protection (off) and Strict protection (off), each with a short description and Manage protection settings.

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.

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.

The Safe links page with a custom policy at priority 0 and Built-in protection (Microsoft) at the lowest priority, both on, and Create, Export, Refresh and Reports.
  1. Name the policy, then choose the users, groups or domains it covers. Domains is the simplest way to cover everyone.
    The Users and domains step of the Safe Links wizard, with the organisation's domain added under Domains.
  2. 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.
    URL and click protection settings: Email on, apply Safe Links to email sent within the organisation, apply real-time URL scanning, wait for URL scanning to complete before delivering the message, do not rewrite URLs and do checks via Safe Links API only, and Teams and Office 365 Apps on.
  3. 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.
    Click protection settings with Track user clicks ticked and Let users click through to the original URL unticked.
  4. Keep the default notification text, then check the summary and choose Submit.
    The Review step of the Safe Links wizard, showing the policy name, the included domain and the email settings.

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:

The details pane of an existing Safe Links policy: policy on, priority 0, included recipient domains blurred, and protection settings for email showing Safe Links for internal email and real-time URL scanning on.

Safe Attachments

Choose Safe Attachments, then Create. The step that matters is Settings:

Safe Attachments unknown malware response with the options Off, Monitor, Block and Dynamic Delivery (Preview messages), Block selected, and the quarantine policy AdminOnlyAccessPolicy.
  • 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 Attachments global settings: Turn on Email and collaboration security for SharePoint, OneDrive, and Microsoft Teams switched on, and Safe Documents for Office clients, which needs Microsoft 365 E5 or E5 Security.

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.

Configuration analyzer, Standard recommendations tab: 5 anti-spam, 13 anti-phishing, 1 Safe Links, 1 DKIM and 1 Outlook recommendation, with a list of settings to change.

Search it for "Safe". In our lab tenant it found the click-through setting above, left on in an older policy:

Configuration analyzer filtered to Safe: Change false to true for first contact safety tips in anti-phishing, and Change true to false for Do not let users click through to the original URL in a Safe Links 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.
FAQ

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.