-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #498 from NZLostboy/cis-policy-fixes
Fixed CIS Policy Checks
- Loading branch information
Showing
12 changed files
with
44 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Describe "CIS" -Tag "CIS 2.1.2", "L1", "CIS E3 Level 1", "CIS E3", "CIS", "Security", "All", "CIS M365 v3.1.0" { | ||
It "CIS 2.1.2 (L1) Ensure the Common Attachment Types Filter is enabled" { | ||
It "CIS 2.1.2 (L1) Ensure the Common Attachment Types Filter is enabled (Only Checks Default Policy)" { | ||
|
||
$result = Test-MtCisAttachmentFilter | ||
|
||
if ($null -ne $result) { | ||
$result | Should -Be $true -Because "the common attachment file filter is enabled." | ||
$result | Should -Be $true -Because "the default malware filter policy has the common attachment file filter is enabled." | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Describe "CIS" -Tag "CIS 2.1.3", "L1", "CIS E3 Level 1", "CIS E3", "CIS", "Security", "All", "CIS M365 v3.1.0" { | ||
It "2.1.3 (L1) Ensure notifications for internal users sending malware is Enabled" { | ||
It "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 "internal malware notifications are enabled." | ||
$result | Should -Be $true -Because "the default malware filter policy has malware notifications enabled." | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Describe "CIS" -Tag "CIS 2.1.6", "L1", "CIS E3 Level 1", "CIS E3", "CIS", "Security", "All", "CIS M365 v3.1.0" { | ||
It "2.1.6 (L1) Ensure Exchange Online Spam Policies are set to notify administrators" { | ||
It "2.1.6 (L1) Ensure Exchange Online Spam Policies are set to notify administrators (Only Checks Default Policy)" { | ||
|
||
$result = Test-MtCisOutboundSpamFilterPolicy | ||
|
||
if ($null -ne $result) { | ||
$result | Should -Be $true -Because "the Exchange Online Spam Policies are set to notify administrators." | ||
$result | Should -Be $true -Because "the default Exchange Online Spam policy is set to notify administrators." | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Describe "CIS" -Tag "CIS 2.1.4", "L2", "CIS E5 Level 2", "CIS E5", "CIS", "Security", "All", "CIS M365 v3.1.0" { | ||
It "2.1.4 (L2) Ensure Safe Attachments policy is enabled" { | ||
It "2.1.4 (L2) Ensure Safe Attachments policy is enabled (Only Checks Default Policy)" { | ||
|
||
$result = Test-MtCisSafeAttachment | ||
|
||
if ($null -ne $result) { | ||
$result | Should -Be $true -Because "the Safe Attachement policy is enabled." | ||
$result | Should -Be $true -Because "the default Safe Attachement policy matches CIS recommendations." | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Describe "CIS" -Tag "CIS 2.1.1", "L2", "CIS E5 Level 2", "CIS E5", "CIS", "Security", "All", "CIS M365 v3.1.0" { | ||
It "2.1.1 (L2) Ensure Safe Links for Office Applications is Enabled" { | ||
It "2.1.1 (L2) Ensure Safe Links for Office Applications is Enabled (Only Checks Default Policy)" { | ||
|
||
$result = Test-MtCisSafeLink | ||
|
||
if ($null -ne $result) { | ||
$result | Should -Be $true -Because "safe links office applications are Enabled" | ||
$result | Should -Be $true -Because "the default safe link policy matches CIS recommendations" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters