AegisAI Perspectives · 175
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.
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.

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
| Question | Answer |
|---|---|
| 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 |
Short on time? Watch the explainer, or book a demo.
The two features act at different moments. Safe Attachments acts before delivery. Safe Links acts during mail flow and again at the click.
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.
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.
With Dynamic Delivery, the message arrives at once and placeholders stand in for the attachments until scanning completes.
A password-protected attachment can't be fully scanned or detonated unless the password is available, for example in the email body.
Safe Links scans and rewrites the URLs during mail flow. The link formats and message types it skips are in the table below.
If URL scanning can't complete and Wait for URL scanning to complete before delivering the message is off, the message is delivered anyway6.
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.
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.
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 step | Where it is in the admin console | Edition or licence | What it does | What it does not do | Source |
|---|---|---|---|---|---|
| Safe Links policy for email | Microsoft Defender portal, Email & collaboration > Policies & rules > Threat policies > Safe Links | Defender for Office 365 Plan 1 or Plan 2 | Scans and rewrites URLs during mail flow, and checks them at the time of click | Doesn'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 message | Safe Links policy, email settings | Defender for Office 365 Plan 1 or Plan 2 | Holds the message until URL scanning completes | When off and scanning can't complete, the message is delivered anyway | |
| Do not rewrite the following URLs | Safe Links policy, email settings | Defender for Office 365 Plan 1 or Plan 2 | Leaves the listed URLs unwrapped | Listed 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 only | Safe Links policy, email settings | Defender for Office 365 Plan 1 or Plan 2 | Checks unwrapped URLs at the click in supported Outlook versions | In an email client without the Safe Links API, a link weaponized after delivery is not detected | 9 |
| Safe Links in Microsoft Teams | Safe Links policy, Teams settings | Defender for Office 365 Plan 1 or Plan 2 | Checks URLs against a list of known malicious links at the time of click | Doesn't rewrite the URLs | |
| Safe Attachments unknown malware response: Block | Microsoft Defender portal, Email & collaboration > Policies & rules > Threat policies > Safe Attachments | Defender for Office 365 Plan 1 or Plan 2 | Detonates attachments before delivery and quarantines messages with detected attachments | Can't fully scan a password-protected attachment unless the password is available | |
| Safe Attachments unknown malware response: Dynamic Delivery | Safe Attachments policy | Defender for Office 365 Plan 1 or Plan 2 | Delivers the message at once with placeholders for the attachments | Doesn't make the attachments available until scanning completes, typically within 15 minutes11 | |
| Safe Attachments for SharePoint, OneDrive, and Microsoft Teams | Microsoft Defender portal, global settings of Safe Attachments | Defender for Office 365 Plan 1 or Plan 2 | Checks files in SharePoint, OneDrive and Microsoft Teams | Doesn't scan every single file, by design | 15 |
| Built-in protection preset security policy | Microsoft Defender portal, Threat policies > Preset Security Policies | Defender for Office 365 | Gives Safe Attachments and Safe Links protection to users not covered by Standard, Strict or custom policies | Doesn'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 attachment | No setting | Any licence | Nothing to scan or detonate | Neither 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.
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.
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.
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.
Track three numbers from the Microsoft Defender portal.
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.
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.
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.
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.
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.
No. Defender for Office 365 doesn't scan every single file in SharePoint, OneDrive, or Microsoft Teams, and Microsoft states this is by design.