maester icon indicating copy to clipboard operation
maester copied to clipboard

CIS.M365.2.1.7 Check default rule instead of rule named 'Office365 AntiPhish Default'

Open cstaubli opened this issue 7 months ago • 0 comments

Hi @merill @NZLostboy

Similar issue as with #939

This test checks a policy named 'Office365 AntiPhish Default' instead of the default one. When configuring own policies and set them as default, those are not tested (in file Test-MtCisSafeAntiPhishingPolicy.ps1):

# We grab the default policy as that is what CIS checks
$policy = $policies | Where-Object { $_.Name -eq 'Office365 AntiPhish Default' }

Check default policy instead:

# We grab the default policy as that is what CIS checks
$policy = $policies | Where-Object { $_.IsDefault -eq $true }

Environment

Maester-Version: 1.1.2 PS-Version: 7.5.1

Kind regards Christian

cstaubli avatar May 20 '25 08:05 cstaubli