How to quarantine phishing in Exchange Online

Set the phishing and high-confidence phishing actions to Quarantine message in every inbound anti-spam policy.

Every Microsoft 365 security check · Threat Protection · NL-EXO-129

What this check looks at

Checks every inbound anti-spam policy sends mail it judges to be phishing, and high-confidence phishing, to quarantine rather than to the Junk Email folder or the inbox.

Every message that reaches Exchange Online is scored by the inbound anti-spam policy. When it judges a message to be phishing, or high-confidence phishing, the policy says what happens next: it can be quarantined, moved to the Junk Email folder, delivered with a header or a changed subject, redirected or deleted.

The check reads every inbound anti-spam policy and passes when each sends phishing and high-confidence phishing to quarantine (or deletes it). It fails naming each policy and action that lets caught phishing reach the person, and reports not checked when Exchange Online did not return the actions.

Why it matters

Mail already judged to be phishing that is delivered to Junk is still one click from the person it was aimed at: people open Junk looking for a missing invoice and find a convincing login page. In quarantine only an administrator can release it.

Junk Email is not a safe place for phishing. People look there for invoices and password reset emails that went missing, and a message already judged to be phishing sits next to them looking like any other. Quarantine puts it where only an administrator can release it, after checking.

Microsoft’s Standard and Strict preset security policies quarantine both, and so do most security baselines. The change costs nothing in day-to-day mail: genuine messages are rarely judged to be phishing, and when one is, it can be released from quarantine in a minute.

How to fix it

Where: Microsoft Defender portal → Email & collaboration → Policies & rules → Threat policies → Anti-spam

Before you start

  • Name who releases quarantined messages, and how people ask for one they were expecting.

Step by step

  1. See each policy’s actions. Connect with Connect-ExchangeOnline and run Get-HostedContentFilterPolicy | Format-Table Name, PhishSpamAction, HighConfidencePhishAction to list every inbound anti-spam policy and what it does with phishing.
  2. Agree who releases quarantined mail. Decide who on the support team reviews quarantine and how people ask for a message they were expecting, so nothing genuine is left waiting.
  3. Quarantine phishing in every policy. In the Defender portal open Email & collaboration → Policies & rules → Threat policies → Anti-spam, open each inbound policy, choose Actions and set Phishing and High confidence phishing to Quarantine message. Or run Get-HostedContentFilterPolicy | Set-HostedContentFilterPolicy -PhishSpamAction Quarantine -HighConfidencePhishAction Quarantine.
  4. Consider the preset policies. Turning on the Standard preset security policy for everyone applies Microsoft’s recommended actions, these included, and keeps them up to date as Microsoft changes them.
  5. Confirm the setting. Run the command from the first step again and check every policy shows Quarantine for both actions. The next assessment passes.

With PowerShell

Get-HostedContentFilterPolicy | Set-HostedContentFilterPolicy -PhishSpamAction Quarantine -HighConfidencePhishAction Quarantine

What users will notice

Phishing the filter catches no longer reaches Junk Email; people see it only if an administrator releases it from quarantine.

How to confirm it worked

Get-HostedContentFilterPolicy | Format-Table Name, PhishSpamAction, HighConfidencePhishAction shows Quarantine for every policy.

Frameworks and controls

This check maps to controls in 12 frameworks. Passing it is evidence that the setting is in place, not a certification against any of them.

The frameworks and controls NL-EXO-129 maps to
FrameworkControl
NCSC CAFB4.b Secure configuration
DSPTStandard 9: IT protection
NIS2Art. 21(2)(e) Security in acquisition, development and maintenance, including vulnerability handling
Zero TrustApplications
SOC 2CC6.8 Preventing or detecting unauthorised or malicious software
PCI DSS 4.0.15.4.1 Personnel are protected against phishing attacks
NIST SP 800-1713.14.2 Provide protection from malicious code
CMMC Level 2SI.L2-3.14.2 Malicious Code Protection
ISO 27001:2022A.8.7 Protection against malware
CIS Controls v8.19.7 Deploy and maintain email server anti-malware protections (IG3)
NIST CSF 2.0DE.CM-09: Computing hardware and software, runtime environments, and their data are monitored to find potentially adverse events
NCSC 10 StepsArchitecture and configuration

The framework mappings were last checked against the published standards in October 2026.

Microsoft’s documentation

The full Microsoft 365 security checklist, worst first

ConfigCheckup

Check this in every tenant.

ConfigCheckup runs this check on every tenant you connect and gives you a step-by-step fix guide. The next assessment confirms the fix.

14 days of daily monitoring and alerts, every finding with its fix guide, and reports on up to 3 tenants, from your first connected tenant. No card. Then choose the plan that fits.Where this check fits: Microsoft 365 security assessment for MSPs