Information
Mail flow rules (transport rules) in Exchange Online are used to identify and take action on messages that flow through the organization.
Whitelisting domains in transport rules bypasses regular malware and phishing scanning, which can enable an attacker to launch attacks against your users from a safe haven domain.
Note: If an organization identifies a business need for an exception, the domain should only be whitelisted if inbound emails from that domain originate from a specific IP address. These exceptions should be documented and regularly reviewed.
Solution
To remediate using the UI:
- Navigate to Exchange admin center
https://admin.exchange.microsoft.com
..
- Click to expand Mail Flow and then select Rules
- For each rule that sets the spam confidence level to -1 for a specific domain, select the rule and click Delete
To remediate using PowerShell:
- Connect to Exchange online using Connect-ExchangeOnline
- To modify the rule:
Remove-TransportRule {RuleName} <xhtml:ol start="3"> - Verify the rules no longer exists by re-running the audit procedure.
Impact:
Care should be taken before implementation to ensure there is no business need for case-by-case whitelisting. Removing all whitelisted domains could affect incoming mail flow to an organization although modern systems sending legitimate mail should have no issue with this.