Check ID:
Provider: Microsoft 365
Service:
Severity: LOW
Categories:
Resource type:
defender_antispam_policy_inbound_no_allowed_domainsProvider: Microsoft 365
Service:
defenderSeverity: LOW
Categories:
email-security, e3Resource type:
NotDefinedWhat this check verifies
Microsoft Defender for Office 365 inbound anti-spam policies are evaluated for domains listed inAllowedSenderDomains.
The finding identifies any policy where this list is populated rather than empty.
Risk
PopulatingAllowedSenderDomains makes messages from those domains skip spam filtering and email authentication (SPF, DKIM, DMARC), often delivered with SCL -1. Attackers can spoof such domains to phish credentials, enable BEC, and alter mailboxes, undermining confidentiality and integrity.
Recommendation
- Keep
AllowedSenderDomainsempty. - Use narrowly scoped allow logic that requires authentication alignment and additional conditions (sender, IP, headers).
- Make any exceptions temporary and reviewed.
Remediation
- CLI
- Dashboard steps
Set-HostedContentFilterPolicy -Identity <Policy name> -AllowedSenderDomains $null
References
- https://learn.microsoft.com/en-us/powershell/module/exchangepowershell/set-hostedcontentfilterpolicy?view=exchange-ps
- https://learn.microsoft.com/en-us/defender-office-365/anti-spam-policies-configure
- https://learn.microsoft.com/en-us/defender-office-365/anti-spam-protection-about#allow-and-block-lists-in-anti-spam-policies
Where this check fires
This check runs on every scheduled scan against your Microsoft 365 account. Findings appear at Cloud Security → Findings filterable byCheck ID = defender_antispam_policy_inbound_no_allowed_domains. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to Microsoft 365 checks