Safe Links, Safe Attachments & Quarantine Management
SC-200 Exam Alignment
SC-200
Mitigate threats using Defender for Office 365: Configure Safe Links URL protection, Safe Attachments detonation policies, per-workload attachment scanning (SharePoint, OneDrive, Teams), and manage the quarantine workflow for end-users and admins.
- Safe Links rewrites URLs at delivery time and rechecks at click time — this is time-of-click protection and catches URLs that were clean at delivery but later turned malicious
- Safe Attachments detonates files in a virtual sandbox — the detonation mode (Dynamic Delivery vs Block) determines whether the user can read the email body while the attachment is being scanned
- Safe Attachments for SharePoint, OneDrive, and Teams is a separate toggle from the Safe Attachments policy for email — it must be enabled independently
- Quarantine default retention is 30 days — messages are permanently deleted after this period; admins can review, release, or block senders from quarantine
🔗 Safe Links
Safe Links rewrites every URL in inbound emails (and optionally in Teams messages and Office documents) at delivery time. When the user clicks a link, Safe Links performs a real-time reputation check of the destination URL at that exact moment and blocks access if the URL is now classified as malicious.
How Safe Links Works — Step by Step
| Step | What Happens |
|---|---|
| 1. Delivery | Email arrives and passes EOP filtering. Safe Links rewrites all URLs to point to Microsoft’s scanning proxy (typically safelinks.protection.outlook.com) |
| 2. User clicks | The browser sends the click through Microsoft’s proxy, which performs a real-time reputation check of the original destination URL |
| 3a. URL is clean | User is transparently redirected to the original URL — the process takes milliseconds |
| 3b. URL is malicious | User sees a red warning page: “This website has been blocked by your organisation.” The click and block event are logged in the URL trace report |
Safe Links Policy Settings
| Setting | Recommended Value | Notes |
|---|---|---|
| Action for unknown potentially malicious URLs | On — URLs are rewritten and checked at click | Core setting — must be enabled for protection to activate |
| Action for Microsoft Teams URLs | On — check URLs in Teams messages | Separate toggle; requires MDO P1 |
| Apply real-time URL scanning for suspicious links | On | Triggers deeper detonation for suspicious URLs rather than just reputation check |
| Apply Safe Links to email messages sent within the org | On | Protects against internal phishing from compromised accounts |
| Do not track when users click links | Off (i.e. track clicks) | URL click data in Threat Explorer is essential for incident investigation |
| Do not let users click through to original URL | On (for strict targets) | Prevents override of the block warning page by the user |
📎 Safe Attachments
Safe Attachments detonates email attachments in an isolated virtual machine (sandbox) to detect malware that doesn’t match any known signature. This protects against zero-day exploits hidden in Office files, PDFs, executables, and archives.
Safe Attachments Delivery Modes
| Mode | Behaviour | Use Case |
|---|---|---|
| Dynamic Delivery | Email body delivered immediately with a placeholder attachment. Attachment is scanned in sandbox and reattached after a clean verdict. If malicious, the attachment is replaced with an alert | Best for most users — minimal disruption, maximum protection |
| Block | Entire message (body + attachment) held in quarantine until scanning completes. Clean messages are released; malicious messages are quarantined | High-security environments where delay is acceptable (e.g. finance teams) |
| Replace | Delivers the message immediately but replaces the attachment with a notice that scanning is in progress. Reattaches if clean | Legacy mode — Dynamic Delivery is preferred |
| Off | No detonation — Safe Attachments is disabled for this policy | Not recommended unless explicitly excluded for performance reasons |
Safe Attachments for SharePoint, OneDrive, and Teams
💡 Separate Toggle — Must Be Explicitly Enabled
Safe Attachments protection for SharePoint Online, OneDrive for Business, and Microsoft Teams is a separate feature from the email Safe Attachments policy. It is enabled globally in the tenant settings (not per-policy). When enabled, files uploaded to SharePoint and OneDrive are asynchronously scanned in a sandbox. If a file is found to be malicious, it is locked — users see a warning and cannot download or share the file until an admin reviews it.
To enable: security.microsoft.com → Email & collaboration → Policies & rules → Threat policies → Safe Attachments → Global settings → Turn on Defender for Office 365 for SharePoint, OneDrive, and Microsoft Teams
🗂️ Quarantine Management
The quarantine holds messages that were blocked by EOP or MDO policies. Admins can review, release, delete, or report quarantined messages. Depending on policy settings, end-users may also be able to view and release messages quarantined as spam.
| Who Can Access | What They Can See/Do | Location |
|---|---|---|
| Admins | All quarantined messages across the tenant — can preview, release to recipient, delete, download for analysis, block sender | security.microsoft.com → Email & collaboration → Review → Quarantine |
| End users | Only their own quarantined messages — can release spam, request release of phish (if policy allows). Cannot see other users’ quarantine | security.microsoft.com (user view) or Quarantine Digest email notification |
Quarantine Policies
Quarantine policies (formerly “end-user spam notifications”) define what end-users can do with their quarantined messages. Assign quarantine policies to threat policies (anti-spam, anti-phishing, Safe Attachments) separately.
| Built-in Policy | End-User Access | Assign To |
|---|---|---|
| AdminOnlyAccessPolicy | Users cannot see or release these messages — admin-only | High confidence phish, malware, Safe Attachments blocks |
| DefaultFullAccessPolicy | Users can view, release, delete, and block sender for their own quarantined messages | Spam, bulk email |
| NotificationEnabledPolicy | DefaultFullAccess + quarantine notification emails sent to users on a schedule | Spam, bulk — when you want users to proactively manage their spam |
💡 Best Practices
- Use Dynamic Delivery for Safe Attachments for most users — it minimises disruption while providing full sandbox detonation protection
- Enable Safe Attachments for SharePoint, OneDrive, and Teams — this is often overlooked and is one of the highest-impact settings for collaboration security
- Configure Safe Links to track all URL clicks — the URL trace report in Threat Explorer is essential for investigating incidents where a user may have clicked a malicious link
- Assign AdminOnlyAccessPolicy to quarantine actions for high confidence phishing and malware — users should never self-release these categories without admin review
- Set up quarantine notifications (via NotificationEnabledPolicy) for spam so users can manage their own bulk mail without contacting the helpdesk
🎓 Interview Q&A
Users in the Finance department need to receive emails with attached PDFs and process them immediately without waiting for attachment scanning. Which Safe Attachments delivery mode should be configured for these users?
An administrator has configured a Safe Attachments policy for all users with Dynamic Delivery mode. A user uploads a malicious Excel file to a SharePoint document library. Will Safe Attachments protect against this?
A user reports they clicked a link in an email 4 hours ago and it worked fine, but they are now seeing a Safe Links warning page when clicking the same link. What is the most likely explanation?
A message was quarantined as high confidence phishing. The user wants to release it themselves, but the quarantine portal shows them a “Request release” option rather than a “Release” button. Why?
What is the default quarantine message retention period in Exchange Online Protection before messages are permanently deleted?