Email Security/Exchange Online - Ensure Mail Transport Rules Do Not Whitelist Specific Domains
Summary
Reason
If certain domains are whitelisted in the transport rules, they can bypass the regular malware and phishing scanning, which in turn allows an attacker to launch attacks against any user from a safe haven domain.
What If?
One should be careful while implementing to make sure that there is no business need for case-by-case whitelisting. However, if all the whitelisted domains are removed, then, it will surely affect the incoming mail flow to an organization although modern systems sending legitimate mails should have no issues with it.
How to?
- Select Exchange.
- Go for Mail Flow and Rules.
- Now, for each rule that whitelists specific domains, select the rule and click the 'Delete' icon.
To remove mail transport rules, you may also use the Exchange Online PowerShell Module:- Connect to Exchange Online using Connect-ExchangeOnline.
- Now, run the following Exchange Online PowerShell command:
- Connect to Exchange Online using Connect-ExchangeOnline.
- Now, run the following Exchange Online PowerShell command:
Monitor:
- Select Exchange.
- Go for Mail Flow and Rules.
- Now, review the rules and verify that none of them whitelists any specific domains.
- Connect to Exchange Online using Connect-ExchangeOnline.
- Now, run the following Exchange Online PowerShell command:
Get-TransportRule | WhereObject {($_.setscl -eq -1 -and $_.SenderDomainIs - ne $null)} | ft Name,SenderDomainIs
Comments
Post a Comment