maester-tests/cis/Test-MtCisInternalMalwareNotification.Tests.ps1

Describe "CIS" -Tag "CIS.M365.2.1.3", "L1", "CIS E3 Level 1", "CIS E3", "CIS", "Security", "CIS M365 v5.0.0" {
    It "CIS.M365.2.1.3: (L1) Ensure notifications for internal users sending malware is Enabled (Only Checks Default Policy)" {

        $result = Test-MtCisInternalMalwareNotification

        if ($null -ne $result) {
            $result | Should -Be $true -Because "the default malware filter policy has malware notifications enabled."
        }
    }
}