maester
maester copied to clipboard
CIS.M365.2.1.7 Check default rule instead of rule named 'Office365 AntiPhish Default'
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