Anti-phishing policies in Microsoft 365
Tip
Did you know you can try the features in Microsoft Defender XDR for Office 365 Plan 2 for free? Use the 90-day Defender for Office 365 trial at the Microsoft Defender portal trials hub. Learn about who can sign up and trial terms here.
Policies to configure anti-phishing protection settings are available in Microsoft 365 organizations with Exchange Online mailboxes, standalone Exchange Online Protection (EOP) organizations without Exchange Online mailboxes, and Microsoft Defender for Office 365 organizations.
Examples of Microsoft Defender for Office 365 organizations include:
- Microsoft 365 Enterprise E5, Microsoft 365 Education A5, etc.
- Microsoft 365 Enterprise
- Microsoft 365 Business
- Microsoft Defender for Office 365 as an add-on
Tip
As a companion to this article, see our Security Analyzer setup guide to review best practices and learn to fortify defenses, improve compliance, and navigate the cybersecurity landscape with confidence. For a customized experience based on your environment, you can access the Security Analyzer automated setup guide in the Microsoft 365 admin center.
The high-level differences between anti-phishing policies in EOP and anti-phishing policies in Defender for Office 365 are described in the following table:
Feature | Anti-phishing policies in EOP |
Anti-phishing policies in Defender for Office 365 |
---|---|---|
Automatically created default policy | ✔ | ✔ |
Create custom policies | ✔ | ✔ |
Common policy settings* | ✔ | ✔ |
Spoof settings | ✔ | ✔ |
First contact safety tip | ✔ | ✔ |
Impersonation settings | ✔ | |
Advanced phishing thresholds | ✔ |
* In the default policy, the policy name and description are read-only (the description is blank), and you can't specify who the policy applies to (the default policy applies to all recipients).
To configure anti-phishing policies, see the following articles:
- Configure anti-phishing policies in EOP
- Configure anti-phishing policies in Microsoft Defender for Office 365
The rest of this article describes the settings that are available in anti-phishing policies in EOP and Defender for Office 365.
Tip
As a companion to this article, we recommend using the Microsoft Defender for Endpoint automated setup guide when signed in to the Microsoft 365 admin center. This guide customizes your experience based on your environment. To review best practices without signing in and activating automated setup features, go to the Microsoft 365 setup guide.
Common policy settings
The following policy settings are available in anti-phishing policies in EOP and Defender for Office 365:
Name: You can't rename the default anti-phishing policy. After you create a custom anti-phishing policy, you can't rename the policy in the Microsoft Defender portal.
Description You can't add a description to the default anti-phishing policy, but you can add and change the description for custom policies that you create.
Users, groups, and domains and Exclude these users, groups, and domains: Recipient filters to identify the internal recipients that the policy applies to. At least one condition is required in custom policies. Conditions and exceptions aren't available in the default policy (the default policy applies to all recipients). You can use the following recipient filters for conditions and exceptions:
- Users: One or more mailboxes, mail users, or mail contacts in the organization.
- Groups:
- Members of the specified distribution groups or mail-enabled security groups (dynamic distribution groups aren't supported).
- The specified Microsoft 365 Groups.
- Domains: One or more of the configured accepted domains in Microsoft 365. The recipient's primary email address is in the specified domain.
You can use a condition or exception only once, but the condition or exception can contain multiple values:
Multiple values of the same condition or exception use OR logic (for example, <recipient1> or <recipient2>):
- Conditions: If the recipient matches any of the specified values, the policy is applied to them.
- Exceptions: If the recipient matches any of the specified values, the policy isn't applied to them.
Different types of exceptions use OR logic (for example, <recipient1> or <member of group1> or <member of domain1>). If the recipient matches any of the specified exception values, the policy isn't applied to them.
Different types of conditions use AND logic. The recipient must match all of the specified conditions for the policy to apply to them. For example, you configure a condition with the following values:
- Users:
romain@contoso.com
- Groups: Executives
The policy is applied to
romain@contoso.com
only if he's also a member of the Executives group. Otherwise, the policy isn't applied to him.- Users:
Tip
At least one selection in the Users, groups, and domains settings is required in custom anti-phishing policies to identify the message recipients that the policy applies to. Anti-phishing policies in Defender for Office 365 also have impersonation settings where you can specify sender email addresses or sender domains that receive impersonation protection as described later in this article.
Spoof settings
Spoofing is when the From address in an email message (the sender address that's shown in email clients) doesn't match the domain of the email source. For more information about spoofing, see Anti-spoofing protection in Microsoft 365.
The following spoof settings are available in anti-phishing policies in EOP and Defender for Office 365:
Enable spoof intelligence: Turns spoof intelligence on or off. We recommend that you leave it turned on.
When spoof intelligence is enabled, the spoof intelligence insight shows spoofed senders that were automatically detected and allowed or blocked by spoof intelligence. You can manually override the spoof intelligence verdict to allow or block the detected spoofed senders from the insight. But when you do, the spoofed sender disappears from the spoof intelligence insight, and is visible only on the Spoofed senders tab on the Tenant Allow/Block Lists page at https://security.microsoft.com/tenantAllowBlockList?viewid=SpoofItem. Or, you can manually create allow or block entries for spoofed senders in the Tenant Allow/Block List, even if they're not detected by the spoof intelligence insight. For more information, see the following articles:
Note
- Anti-spoofing protection is enabled in the Standard and Strict preset security policies, and is enabled by default in the default anti-phishing policy and in new custom anti-phishing policies that you create.
- You don't need to disable anti-spoofing protection if your MX record doesn't point to Microsoft 365; you enable Enhanced Filtering for Connectors instead. For instructions, see Enhanced Filtering for Connectors in Exchange Online.
- Disabling anti-spoofing protection only disables implicit spoofing protection from composite authentication checks. For information about how explicit DMARC checks are affected by anti-spoofing protection and the configuration of the source domain's DMARC policy (
p=quarantine
orp=reject
in the DMARC TXT record), see the Spoof protection and sender DMARC policies section.
Unauthenticated sender indicators: Available in the Safety tips & indicators section only when spoof intelligence is turned on. See the details in the next section.
Actions: For messages from blocked spoofed senders (automatically blocked by spoof intelligence (composite authentication failure plus malicious intent) or manually blocked in the Tenant Allow/Block list), you can also specify the action to take on the messages:
Move messages to the recipients' Junk Email folders: This is the default value. The message is delivered to the mailbox and moved to the Junk Email folder. For more information, see Configure junk email settings on Exchange Online mailboxes in Microsoft 365.
Quarantine the message: Sends the message to quarantine instead of the intended recipients. For information about quarantine, see the following articles:
- Quarantine in Microsoft 365
- Manage quarantined messages and files as an admin in Microsoft 365
- Find and release quarantined messages as a user in Microsoft 365
If you select Quarantine the message, you can also select the quarantine policy that applies to messages that were quarantined by spoof intelligence protection. Quarantine policies define what users are able to do to quarantined messages, and whether users receive quarantine notifications. For more information, see Anatomy of a quarantine policy.
Spoof protection and sender DMARC policies
In anti-phishing policies, you can control whether p=quarantine
or p=reject
values in sender DMARC policies are honored. If a message fails DMARC checks, you can specify separate actions for p=quarantine
or p=reject
in the sender's DMARC policy. The following settings are involved:
Honor DMARC record policy when the message is detected as spoof: This setting turns on honoring the sender's DMARC policy for explicit email authentication failures. When this setting is selected, the following settings are available:
- If the message is detected as spoof and DMARC Policy is set as p=quarantine: The available actions are:
- Quarantine the message
- Move the message to the recipients' Junk Email folders
- If the message is detected as spoof and DMARC Policy is set as p=reject: The available actions are:
- Quarantine the message
- Reject the message
If you select Quarantine the message as an action, the quarantine policy that's selected for spoof intelligence protection is used.
- If the message is detected as spoof and DMARC Policy is set as p=quarantine: The available actions are:
The relationship between spoof intelligence and whether sender DMARC policies are honored is described in the following table:
Honor DMARC policy On | Honor DMARC policy Off | |
---|---|---|
Spoof intelligence On | Separate actions for implicit and explicit email authentication failures:
|
The If the message is detected as spoof by spoof intelligence action in the anti-phishing policy is used for both implicit and explicit email authentication failures. Explicit email authentication failures ignore p=quarantine , p=reject , p=none , or other values in the DMARC policy. |
Spoof intelligence Off | Implicit email authentication checks aren't used. Explicit email authentication failures:
|
Implicit email authentication checks aren't used. Explicit email authentication failures:
|
Note
If the MX record for the Microsoft 365 domain points to a third-party service or device that sits in front of Microsoft 365, the Honor DMARC policy setting is applied only if Enhanced Filtering for Connectors is enabled for the connector that receives inbound messages.
Customers can override the Honor DMARC policy setting for specific email messages and/or senders using the following methods:
- Admins or users can add the senders to the Safe Senders list in the user's mailbox.
- Admins can use the spoof intelligence insight or the Tenant Allow/Block List to allow messages from the spoofed sender.
- Admins create an Exchange mail flow rule (also known as a transport rule) for all users that allows messages for those particular senders.
- Admins create an Exchange mail flow rule for all users for rejected email that fails the organization's DMARC policy.
Unauthenticated sender indicators
Unauthenticated sender indicators are part of the Spoof settings that are available in the Safety tips & indicators section in anti-phishing policies in both EOP and Defender for Office 365. The following settings are available only when spoof intelligence is turned on:
Show (?) for unauthenticated senders for spoof: Adds a question mark to the sender's photo in the From box if the message doesn't pass SPF or DKIM checks and the message doesn't pass DMARC or composite authentication. When this setting is turned off, the question mark isn't added to the sender's photo.
Show "via" tag: Adds the "via" tag (chris@contoso.com via fabrikam.com) in the From box if the domain in the From address (the message sender that's displayed in email clients) is different from the domain in the DKIM signature or the MAIL FROM address. For more information about these addresses, see An overview of email message standards.
To prevent the question mark or "via" tag from being added to messages from specific senders, you have the following options:
- Allow the spoofed sender in the spoof intelligence insight or manually in the Tenant Allow/Block List. Allowing the spoofed sender prevents the "via" tag from appearing in messages from the sender, even if the Show "via" tag setting is turned on in the policy.
- Configure email authentication for the sender domain.
- For the question mark in the sender's photo, SPF or DKIM are the most important.
- For the "via" tag, confirm the domain in the DKIM signature or the MAIL FROM address matches (or is a subdomain of) the domain in the From address.
For more information, see Identify suspicious messages in Outlook.com and Outlook on the web
First contact safety tip
The Show first contact safety tip setting is available in EOP and Defender for Office 365 organizations and has no dependency on spoof intelligence or impersonation protection settings. The safety tip is shown to recipients in the following scenarios:
- The first time they get a message from a sender
- They don't often get messages from the sender.
This capability adds an extra layer of protection against potential impersonation attacks, so we recommend that you turn it on.
The first contact safety tip is controlled by the value 9.25 of the SFTY
field in the X-Forefront-Antispam-Report header of the message. This functionality replaces the need to create mail flow rules (also known as transport rules) that add a header named X-MS-Exchange-EnableFirstContactSafetyTip with the value Enable
to messages, although this capability is still available.
Depending on the number of recipients in the message, the first contact safety tip can be either of the following values:
Single recipient:
You don't often get email from <email address>.
Multiple recipients:
Some people who received this message don't often get email from <email address>.
Note
If the message has multiple recipients, whether the tip is shown and to whom is based on a majority model. If the majority of recipients have never or don't often receive messages from the sender, then the affected recipients will receive the Some people who received this message... tip. If you're concerned that this behavior exposes the communication habits of one recipient to another, you should not enable the first contact safety tip and continue to use mail flow rules and the X-MS-Exchange-EnableFirstContactSafetyTip header instead.
The first contact safety tip is not stamped in S/MIME signed messages.
Exclusive settings in anti-phishing policies in Microsoft Defender for Office 365
This section describes the policy settings that are only available in anti-phishing policies in Defender for Office 365.
Note
The default anti-phishing policy in Defender for Office 365 provides spoof protection and mailbox intelligence for all recipients. However, the other available impersonation protection features and advanced settings are not configured or enabled in the default policy. To enable all protection features, modify the default anti-phishing policy or create additional anti-phishing policies.
Impersonation settings in anti-phishing policies in Microsoft Defender for Office 365
Impersonation is where the sender or the sender's email domain in a message looks similar to a real sender or domain:
- An example impersonation of the domain contoso.com is ćóntoso.com.
- User impersonation is the combination of the user's display name and email address. For example, Valeria Barrios (vbarrios@contoso.com) might be impersonated as Valeria Barrios, but with a different email address.
Note
Impersonation protection looks for domains that are similar. For example, if your domain is contoso.com, we check for different top-level domains (.com, .biz, etc.), but also domains that are even somewhat similar. For example, contosososo.com or contoabcdef.com might be seen as impersonation attempts of contoso.com.
An impersonated domain might otherwise be considered legitimate (the domain is registered, email authentication DNS records are configured, etc.), except the intent of the domain is to deceive recipients.
The impersonation settings described in the following sections are available only in anti-phishing policies in Defender for Office 365.
Tip
Details about detected impersonation attempts are available in the impersonation insight. For more information, see Impersonation insight in Defender for Office 365.
User impersonation protection
User impersonation protection prevents specific internal or external email addresses from being impersonated as message senders. For example, you receive an email message from the Vice President of your company asking you to send her some internal company information. Would you do it? Many people would send the reply without thinking.
You can use protected users to add internal and external sender email addresses to protect from impersonation. This list of senders that are protected from user impersonation is different from the list of recipients that the policy applies to (all recipients for the default policy; specific recipients as configured in the Users, groups, and domains setting in the Common policy settings section).
Note
You can specify a maximum of 350 users for user impersonation protection in each anti-phishing policy.
User impersonation protection does not work if the sender and recipient have previously communicated via email. If the sender and recipient have never communicated via email, the message can be identified as an impersonation attempt.
You might get the error "The email address already exists" if you try to add a user to user impersonation protection when that email address is already specified for user impersonation protection in another anti-phishing policy. This error occurs only in the Defender portal. You won't get the error if you use the corresponding TargetedUsersToProtect parameter in the New-AntiPhishPolicy or Set-AntiPhishPolicy cmdlets in Exchange Online PowerShell.
By default, no sender email addresses are configured for impersonation protection, either in the default policy or in custom policies.
When you add internal or external email addresses to the Users to protect list, messages from those senders are subject to impersonation protection checks. The message is checked for impersonation if the message is sent to a recipient that the policy applies to (all recipients for the default policy; Users, groups, and domains recipients in custom policies). If impersonation is detected in the sender's email address, the action for impersonated users is applied to the message.
For detected user impersonation attempts, the following actions are available:
Don't apply any action: This is the default action.
Redirect the message to other email addresses: Sends the message to the specified recipients instead of the intended recipients.
Move messages to the recipients' Junk Email folders: The message is delivered to the mailbox and moved to the Junk Email folder. For more information, see Configure junk email settings on Exchange Online mailboxes in Microsoft 365.
Quarantine the message: Sends the message to quarantine instead of the intended recipients. For information about quarantine, see the following articles:
- Quarantine in Microsoft 365
- Manage quarantined messages and files as an admin in Microsoft 365
- Find and release quarantined messages as a user in Microsoft 365
If you select Quarantine the message, you can also select the quarantine policy that applies to messages that are quarantined by user impersonation protection. Quarantine policies define what users are able to do to quarantined messages. For more information, see Anatomy of a quarantine policy.
Deliver the message and add other addresses to the Bcc line: Deliver the message to the intended recipients and silently deliver the message to the specified recipients.
Delete the message before it's delivered: Silently delete the entire message, including all attachments.
Domain impersonation protection
Domain impersonation protection prevents specific domains in the sender's email address from being impersonated. For example, all domains that you own (accepted domains) or specific custom domains (domains you own or partner domains). Sender domains that are protected from impersonation is different from the list of recipients that the policy applies to (all recipients for the default policy; specific recipients as configured in the Users, groups, and domains setting in the Common policy settings section).
Note
You can specify a maximum of 50 custom domains for domain impersonation protection in each anti-phishing policy.
Messages from senders in the specified domains are subject to impersonation protection checks. The message is checked for impersonation if the message is sent to a recipient that the policy applies to (all recipients for the default policy; Users, groups, and domains recipients in custom policies). If impersonation is detected in the domain of the sender's email address, the action for domain impersonation is applied to the message.
By default, no sender domains are configured for impersonation protection, either in the default policy or in custom policies.
For detected domain impersonation attempts, the following actions are available:
Don't apply any action: This is the default value.
Redirect the message to other email addresses: Sends the message to the specified recipients instead of the intended recipients.
Move messages to the recipients' Junk Email folders: The message is delivered to the mailbox and moved to the Junk Email folder. For more information, see Configure junk email settings on Exchange Online mailboxes in Microsoft 365.
Quarantine the message: Sends the message to quarantine instead of the intended recipients. For information about quarantine, see the following articles:
- Quarantine in Microsoft 365
- Manage quarantined messages and files as an admin in Microsoft 365
- Find and release quarantined messages as a user in Microsoft 365
If you select Quarantine the message, you can also select the quarantine policy that applies to messages that are quarantined by domain impersonation protection. Quarantine policies define what users are able to do to quarantined messages. For more information, see Anatomy of a quarantine policy.
Deliver the message and add other addresses to the Bcc line: Deliver the message to the intended recipients and silently deliver the message to the specified recipients.
Delete the message before it's delivered: Silently deletes the entire message, including all attachments.
Mailbox intelligence impersonation protection
Mailbox intelligence uses artificial intelligence (AI) to determine user email patterns with their frequent contacts.
For example, Gabriela Laureano (glaureano@contoso.com) is the CEO of your company, so you add her as a protected sender in the Enable users to protect settings of the policy. But, some of the recipients in the policy communicate regularly with a vendor who is also named Gabriela Laureano (glaureano@fabrikam.com). Because those recipients have a communication history with glaureano@fabrikam.com, mailbox intelligence doesn't identify messages from glaureano@fabrikam.com as an impersonation attempt of glaureano@contoso.com for those recipients.
Note
Mailbox intelligence protection does not work if the sender and recipient have previously communicated via email. If the sender and recipient have never communicated via email, the message can be identified as an impersonation attempt by mailbox intelligence.
Mailbox intelligence has two specific settings:
- Enable mailbox intelligence: Turn mailbox intelligence on or off. This setting helps the AI distinguish between messages from legitimate and impersonated senders. By default, this setting is turned on.
- Enable intelligence for impersonation protection: By default, this setting is turned off. Use the contact history learned from mailbox intelligence (both frequent contacts and no contact) to help protect users from impersonation attacks. For mailbox intelligence to take action on detected messages, this setting and the Enable mailbox intelligence setting both need to be turned on.
For impersonation attempts detected by mailbox intelligence, the following actions are available:
- Don't apply any action: This is the default value. This action has the same result as when Enable mailbox intelligence is turned on but Enable intelligence impersonation protection is turned off.
- Redirect the message to other email addresses
- Move the message to the recipients' Junk Email folders
- Quarantine the message: If you select this action, you can also select the quarantine policy that applies to messages that are quarantined by mailbox intelligence protection. Quarantine policies define what users are able to do to quarantined messages, and whether users receive quarantine notifications. For more information, see Anatomy of a quarantine policy.
- Deliver the message and add other addresses to the Bcc line
- Delete the message before it's delivered
Impersonation safety tips
Impersonation safety tips appear to users when messages are identified as impersonation attempts. The following safety tips are available:
Show user impersonation safety tip: The From address contains a user specified in user impersonation protection. Available only if Enable users to protect is turned on and configured.
This safety tip is controlled by the value 9.20 of the
SFTY
field in the X-Forefront-Antispam-Report header of the message. The text says:This sender appears similar to someone who previously sent you email, but may not be that person.
Show domain impersonation safety tip: The From address contains a domain specified in domain impersonation protection. Available only if Enable domains to protect is turned on and configured.
This safety tip is controlled by the value 9.19 of the
SFTY
field in the X-Forefront-Antispam-Report header of the message. The text says:This sender might be impersonating a domain that's associated with your organization.
Show user impersonation unusual characters safety tip: The From address contains unusual character sets (for example, mathematical symbols and text or a mix of uppercase and lowercase letters) in a sender specified in user impersonation protection. Available only if Enable users to protect is turned on and configured. The text says:
The email address
<email address>
includes unexpected letters or numbers. We recommend you don't interact with this message.
Note
Safety tips are not stamped in the following messages:
- S/MIME signed messages.
- Messages that are allowed by your organizational settings.
Trusted senders and domains
Trusted senders and domain are exceptions to the impersonation protection settings. Messages from the specified senders and sender domains are never classified as impersonation-based attacks by the policy. In other words, the action for protected senders, protected domains, or mailbox intelligence protection aren't applied to these trusted senders or sender domains. The maximum limit for these lists is 1024 entries.
Note
Trusted domain entries don't include subdomains of the specified domain. You need to add an entry for each subdomain.
If Microsoft 365 system messages from the following senders are identified as impersonation attempts, you can add the senders to the trusted senders list:
noreply@email.teams.microsoft.com
noreply@emeaemail.teams.microsoft.com
no-reply@sharepointonline.com
Advanced phishing thresholds in anti-phishing policies in Microsoft Defender for Office 365
The following advanced phishing thresholds are only available in anti-phishing policies in Defender for Office 365. These thresholds control the sensitivity for applying machine learning models to messages to determine a phishing verdict:
- 1 - Standard: This is the default value. The severity of the action that's taken on the message depends on the degree of confidence that the message is phishing (low, medium, high, or very high confidence). For example, messages that are identified as phishing with a very high degree of confidence have the most severe actions applied, while messages that are identified as phishing with a low degree of confidence have less severe actions applied.
- 2 - Aggressive: Messages that are identified as phishing with a high degree of confidence are treated as if they were identified with a very high degree of confidence.
- 3 - More aggressive: Messages that are identified as phishing with a medium or high degree of confidence are treated as if they were identified with a very high degree of confidence.
- 4 - Most aggressive: Messages that are identified as phishing with a low, medium, or high degree of confidence are treated as if they were identified with a very high degree of confidence.
The chance of false positives (good messages marked as bad) increases as you increase this setting. For information about the recommended settings, see anti-phishing policy settings in Microsoft Defender for Office 365.