AegisAI Perspectives · 175

What do Safe Links and Safe Attachments do in Microsoft 365, and what do they miss?

Safe Links checks URLs at delivery and at the click, and Safe Attachments detonates files before delivery. Neither scans an email with no link or file.

TL;DR
Answer
Safe Links checks URLs during mail flow and at the click, and Safe Attachments detonates files before delivery. A message with no link and no attachment gives neither one a target.
Who it's for
If you run IT on Microsoft 365 for a company of 20 to 500 people with a small team and no SOC, check each feature against this table.
Watch out for
With Wait for URL scanning off, a message is delivered anyway when URL scanning can't complete, and password-protected attachments can't be fully detonated.
What AegisAI does
AegisAI opens every link, file and QR code in a sandbox, follows it to the end, and judges what it finds there.
Book a demo

See it on your own Google Workspace or Microsoft 365 tenant. No MX change.

Or get the Q3 2026 State of the AI Attack report (free, instant download)

Not ready for a demo? Check your domain.

What do Safe Links and Safe Attachments do in Microsoft 365, and what do they miss?

Safe Links scans and rewrites URLs in inbound email during mail flow and checks them again at the time of click1. Safe Attachments detonates attachments in a virtual environment before delivery2, so a message with no link and no attachment gives neither feature anything to check. AegisAI investigates every email for what it is trying to do, and removes the ones that fail from every mailbox they reached22.

This page is for the person who runs IT on Microsoft 365 at a company of 20 to 500 people, with a small team and no SOC. The reference table has ten rows, one per setting, each with its licence and what it does not check. How a sandbox follows a link to the page at its end is on the phishing prevention page.

Key takeaways

  • Safe Links supports HTTP and HTTPS links, plus FTP, and no other link format4.
  • URLs in RTF email messages, also known as TNEF, get no Safe Links protection5.
  • Email attachment scanning typically completes within 15 minutes11.
  • Both features come with Defender for Office 365 Plan 1, which is included in Microsoft 365 E3/G3 and Microsoft 365 Business Premium1718.
  • Business Email Compromise losses reported to the FBI IC3 in 2025 were $3,046,598,55819.

The short answer

QuestionAnswer
What do Safe Links and Safe Attachments do in Microsoft 365, and what do they miss?Safe Links scans URLs during mail flow and at the time of click. Safe Attachments detonates attachments before delivery. A message with no link and no attachment gives neither one anything to check
Which licence includes them?Defender for Office 365 Plan 1 and Plan 2 add Safe Links and Safe Attachments on top of the built-in features for all cloud mailboxes
Does Safe Links check every link?No. Only HTTP, HTTPS and FTP links, no URLs in RTF (TNEF) messages, and no scan during mail flow for entries in the Do not rewrite the following URLs list7
How long does Safe Attachments hold a message?Typically within 15 minutes11. Dynamic Delivery delivers the message at once with placeholders for the attachments13
What reaches the inbox with both features on?Neither feature checks a message with no link and no attachment, such as a payment request in Business Email Compromise. Other Microsoft 365 filters still apply

What you can do by the end

  • List what Safe Links and Safe Attachments each scan and skip, from RTF messages to password-protected files14.
  • Match each feature to the licence and policy that applies it to your users16.
  • Name the messages that pass both features, starting with Business Email Compromise requests.

Short on time? Watch the explainer, or book a demo.

How does a message pass through Safe Links and Safe Attachments?

The two features act at different moments. Safe Attachments acts before delivery. Safe Links acts during mail flow and again at the click.

  1. The message arrives with an attachment. Safe Attachments opens it in a virtual environment before the recipient gets it. Scanning typically completes within 15 minutes11.

  2. The policy action applies. Block quarantines messages with detected attachments, and it is the default and the recommended value in the Standard and Strict preset security policies12.

  3. With Dynamic Delivery, the message arrives at once and placeholders stand in for the attachments until scanning completes.

  4. A password-protected attachment can't be fully scanned or detonated unless the password is available, for example in the email body.

  5. Safe Links scans and rewrites the URLs during mail flow. The link formats and message types it skips are in the table below.

  6. If URL scanning can't complete and Wait for URL scanning to complete before delivering the message is off, the message is delivered anyway6.

  7. At the click, the URL is checked again. With rewriting turned off, supported versions of Outlook check unwrapped URLs through a client-side Safe Links API call3.

  8. In Teams, URLs aren't rewritten. They are checked against a list of known malicious links when the protected user clicks10.

Read step 6 against your own Safe Links policy before you rely on the time of click check.

What do Safe Links and Safe Attachments check, and what do they not check?

Safe Links checks URLs and Safe Attachments checks files, and the table below lists what each setting leaves unchecked, from link formats to password-protected files. Safe Links settings live in a Safe Links policy25, and Safe Attachments settings live in a Safe Attachments policy20.

Setting or stepWhere it is in the admin consoleEdition or licenceWhat it doesWhat it does not doSource
Safe Links policy for emailMicrosoft Defender portal, Email & collaboration > Policies & rules > Threat policies > Safe LinksDefender for Office 365 Plan 1 or Plan 2Scans and rewrites URLs during mail flow, and checks them at the time of clickDoesn't scan link formats other than HTTP, HTTPS and FTP, or URLs in RTF (TNEF) messages
Wait for URL scanning to complete before delivering the messageSafe Links policy, email settingsDefender for Office 365 Plan 1 or Plan 2Holds the message until URL scanning completesWhen off and scanning can't complete, the message is delivered anyway
Do not rewrite the following URLsSafe Links policy, email settingsDefender for Office 365 Plan 1 or Plan 2Leaves the listed URLs unwrappedListed URLs aren't scanned or wrapped during mail flow, though they might still be blocked at the time of click
Do not rewrite URLs, do checks via SafeLinks API onlySafe Links policy, email settingsDefender for Office 365 Plan 1 or Plan 2Checks unwrapped URLs at the click in supported Outlook versionsIn an email client without the Safe Links API, a link weaponized after delivery is not detected9
Safe Links in Microsoft TeamsSafe Links policy, Teams settingsDefender for Office 365 Plan 1 or Plan 2Checks URLs against a list of known malicious links at the time of clickDoesn't rewrite the URLs
Safe Attachments unknown malware response: BlockMicrosoft Defender portal, Email & collaboration > Policies & rules > Threat policies > Safe AttachmentsDefender for Office 365 Plan 1 or Plan 2Detonates attachments before delivery and quarantines messages with detected attachmentsCan't fully scan a password-protected attachment unless the password is available
Safe Attachments unknown malware response: Dynamic DeliverySafe Attachments policyDefender for Office 365 Plan 1 or Plan 2Delivers the message at once with placeholders for the attachmentsDoesn't make the attachments available until scanning completes, typically within 15 minutes11
Safe Attachments for SharePoint, OneDrive, and Microsoft TeamsMicrosoft Defender portal, global settings of Safe AttachmentsDefender for Office 365 Plan 1 or Plan 2Checks files in SharePoint, OneDrive and Microsoft TeamsDoesn't scan every single file, by design15
Built-in protection preset security policyMicrosoft Defender portal, Threat policies > Preset Security PoliciesDefender for Office 365Gives Safe Attachments and Safe Links protection to users not covered by Standard, Strict or custom policiesDoesn't apply to users excluded from it or covered by a custom Safe Links or Safe Attachments policy
A message with no link and no attachmentNo settingAny licenceNothing to scan or detonateNeither feature reads the request in the text, as in Business Email Compromise

Open the Safe Links and Safe Attachments pages in your tenant and check each row against your policy today.

Which licence includes Safe Links and Safe Attachments?

Both come with Defender for Office 365 Plan 1 or Plan 2. Plan 1 adds Safe Attachments and Safe Links on top of the built-in security features for all cloud mailboxes. Safe Attachments covers email and files in SharePoint, OneDrive and Microsoft Teams. Safe Links covers email and Teams as well as Office clients.

Microsoft includes Plan 1 in some subscriptions for small and medium businesses, such as Microsoft 365 E3/G3 and Microsoft 365 Business Premium. Plan 2 is included in some enterprise subscriptions, such as Microsoft 365 A5/E5/G5.

Users with no custom policy still get Safe Attachments and Safe Links through the Built-in protection preset security policy, unless they are excluded from it.

Check your tenant's subscription against the plan list on the Microsoft Defender for Office 365 overview on Microsoft Learn before you plan around either feature.

What reaches the inbox with both features on?

A message with no link and no attachment passes both features unchecked, because neither feature has a URL to scan or a file to detonate. The other Microsoft 365 filters still examine it. That is the shape of a payment or bank detail change request in Business Email Compromise. The FBI IC3 counted $3,046,598,558 in Business Email Compromise losses in 202519.

Three more cases fall outside what the two features check, and each has a row in the table above: a link in an unsupported format, a link that turns bad after delivery when rewriting is off, and a password-protected attachment.

How to judge a payment request from a known sender is covered in BEC protection for Microsoft 365. For tuning Defender for Office 365 against AI-written phishing, read how to stop AI-generated phishing in Microsoft Defender.

Send every payment or bank detail change request to a second check by phone, whatever the email filters said.

How AegisAI handles this

AegisAI opens every link, file and QR code in a sandbox, follows it to the end, and judges what it finds there21. It reads mail through the Microsoft 365 or Google Workspace API after delivery8. AegisAI reports on its phishing prevention page that 3 of 5 real attacks in its Q3 2026 report hosted the credential harvest on legitimate infrastructure24.

Book a demoSee phishing prevention

See your own records: Check your domain.

How to measure it in 30 days

Track three numbers from the Microsoft Defender portal.

  • Messages held by the Safe Attachments Block action, and the minutes each one waited against the 15 minute norm.
  • Entries in the Do not rewrite the following URLs list, since those URLs skip scanning during mail flow.
  • User-reported messages with no link and no attachment, the case neither feature scans.

To see how a second reader works after delivery, talk to the team. On day 30, compare the reported messages with no link and no attachment against the messages Safe Attachments held.

Questions people ask

What do Safe Links and Safe Attachments do in Microsoft 365, and what do they miss?

Safe Links checks URLs during mail flow and at the click, and Safe Attachments detonates attachments before delivery. Neither one has anything to check in a message with no link and no attachment. AegisAI reads the sender's history and the change being asked for, so the request itself gets a verdict.

Do Safe Links and Safe Attachments come with every Microsoft 365 plan?

No. They come with Defender for Office 365 Plan 1 or Plan 2. Plan 1 is included in Microsoft 365 E3/G3 and Microsoft 365 Business Premium, and Plan 2 in Microsoft 365 A5/E5/G5.

Does Safe Links catch a link that turns malicious after delivery?

Yes when the URL is rewritten or the email client supports the Safe Links API, because it checks URLs again at the time of click. With rewriting off, a user who clicks in an email client without the Safe Links API is not protected from a link weaponized after delivery.

Why do attachments arrive late with Safe Attachments on?

Detonation takes time: email attachment scanning typically completes within 15 minutes. Dynamic Delivery delivers the message at once and replaces the attachments with placeholders until scanning completes.

Does Safe Attachments scan every file in SharePoint, OneDrive or Teams?

No. Defender for Office 365 doesn't scan every single file in SharePoint, OneDrive, or Microsoft Teams, and Microsoft states this is by design.

Sources

  1. (Microsoft Learn, Safe Links in Microsoft Defender for Office 365, last updated 14 October 2026, read 20 November 2026)
  2. (Microsoft Learn, Safe Attachments in Microsoft Defender for Office 365, last updated 10 August 2026, read 20 November 2026)
  3. (Microsoft Learn, Set up Safe Links policies in Microsoft Defender for Office 365, read 20 November 2026)
  4. (Microsoft Learn, Set up Safe Attachments policies in Microsoft Defender for Office 365, read 20 November 2026)
  5. (Microsoft Learn, Safe Attachments for SharePoint, OneDrive, and Microsoft Teams, read 20 November 2026)
  6. (Microsoft Learn, Preset security policies in EOP and Microsoft Defender for Office 365, read 20 November 2026)
  7. (Microsoft Learn, Microsoft Defender for Office 365 overview, read 20 November 2026)
  8. (FBI Internet Crime Complaint Center, 2025 IC3 Annual Report, read 20 November 2026)
  9. (AegisAI Perspectives, How to stop AI-generated phishing in Microsoft Defender, read 20 November 2026)
  10. (AegisAI Perspectives, BEC protection for Microsoft 365, read 20 November 2026)
  11. (AegisAI Perspectives, AegisAI for Microsoft 365: what it adds to the built-in protection, read 20 November 2026)
  12. (AegisAI, Phishing prevention, read 20 November 2026)
  13. (AegisAI, Book a demo)

Recent posts

Every email, investigated.