add: Placeholders for test defs

This commit is contained in:
DrIOS
2024-12-24 14:33:03 -06:00
parent fb7b543c6a
commit ca021695a4
3 changed files with 33 additions and 11 deletions

View File

@@ -7,7 +7,8 @@ The format is based on and uses the types of changes according to [Keep a Change
### Added ### Added
- Link to App Authentication documentation in `New-M365SecurityAuditAuthObject` help file. - Link to App Authentication documentation in `New-M365SecurityAuditAuthObject` help file.
- TestDefinitions.csv file to the helper folder for version choices. - TestDefinitions-v4.0.0.csv file to the helper folder for version choices.
- Test Definition Placeholders
## [0.1.26] - 2024-08-04 ## [0.1.26] - 2024-08-04

View File

@@ -340,6 +340,9 @@ function Get-CISExoOutput {
$antiPhishPolicies = Get-AntiPhishPolicy $antiPhishPolicies = Get-AntiPhishPolicy
return $antiPhishPolicies return $antiPhishPolicies
} }
'2.1.7-v4' {
# Placeholder Test-AntiPhishingPolicy.ps1
}
'2.1.9' { '2.1.9' {
# Test-EnableDKIM.ps1 # Test-EnableDKIM.ps1
# 2.1.9 (L1) Ensure DKIM is enabled for all Exchange Online Domains # 2.1.9 (L1) Ensure DKIM is enabled for all Exchange Online Domains
@@ -348,6 +351,18 @@ function Get-CISExoOutput {
# [object[]] # [object[]]
return $dkimConfig return $dkimConfig
} }
'2.1.11' {
# Placeholder - Test-AttachmentFiltering
}
'2.1.12' {
# Placeholder - Test-ConnectionFilterIPAllowList
}
'2.1.13' {
# Placeholder - Test-ConnectionFilterSafeList
}
'2.1.14' {
# Placeholder - Test-InboundAntiSpamPolicies
}
'3.1.1' { '3.1.1' {
# Test-AuditLogSearch.ps1 # Test-AuditLogSearch.ps1
# 3.1.1 (L1) Ensure Microsoft 365 audit log search is Enabled # 3.1.1 (L1) Ensure Microsoft 365 audit log search is Enabled
@@ -379,6 +394,9 @@ function Get-CISExoOutput {
# [object[]] # [object[]]
return $mailboxes return $mailboxes
} }
'6.1.4' {
# Placeholder - Test-AuditBypassEnabled
}
'6.2.1' { '6.2.1' {
# Test-BlockMailForwarding.ps1 # Test-BlockMailForwarding.ps1
# 6.2.1 (L1) Ensure all forms of mail forwarding are blocked and/or disabled # 6.2.1 (L1) Ensure all forms of mail forwarding are blocked and/or disabled

View File

@@ -2,13 +2,10 @@ function Get-CISMgOutput {
<# <#
.SYNOPSIS .SYNOPSIS
This is a sample Private function only visible within the module. This is a sample Private function only visible within the module.
.DESCRIPTION .DESCRIPTION
This sample function is not exported to the module and only return the data passed as parameter. This sample function is not exported to the module and only return the data passed as parameter.
.EXAMPLE .EXAMPLE
$null = Get-CISMgOutput -PrivateData 'NOTHING TO SEE HERE' $null = Get-CISMgOutput -PrivateData 'NOTHING TO SEE HERE'
.PARAMETER PrivateData .PARAMETER PrivateData
The PrivateData parameter is what will be returned without transformation. The PrivateData parameter is what will be returned without transformation.
@@ -20,7 +17,6 @@ function Get-CISMgOutput {
[Parameter(Mandatory = $false)] [Parameter(Mandatory = $false)]
[String]$DomainName [String]$DomainName
) )
begin { begin {
# Begin Block # # Begin Block #
# Tests # Tests
@@ -34,19 +30,27 @@ function Get-CISMgOutput {
6.1.2 6.1.2
6.1.3 6.1.3
# Test number array # Test number array
$testNumbers = @('1.1.1', '1.1.3', '1.2.1', '1.3.1', '5.1.2.3', '5.1.8.1', '6.1.2', '6.1.3') $testNumbers = @('1.1.1', '1.1.1-v4', '1.1.3', '1.2.1', '1.3.1', '5.1.2.3', '5.1.8.1', '6.1.2', '6.1.3', '1.1.4')
#> #>
} }
process { process {
try { try {
Write-Verbose "Get-CISMgOutput: Retuning data for Rec: $Rec" Write-Verbose "Get-CISMgOutput: Returning data for Rec: $Rec"
switch ($rec) { switch ($rec) {
'1.1.1' { '1.1.1' {
# 1.1.1 # 1.1.1 - MicrosoftGraphPlaceholder
# Test-AdministrativeAccountCompliance # Test-AdministrativeAccountCompliance
$AdminRoleAssignmentsAndUsers = Get-AdminRoleUserAndAssignment $AdminRoleAssignmentsAndUsers = Get-AdminRoleUserAndAssignment
return $AdminRoleAssignmentsAndUsers return $AdminRoleAssignmentsAndUsers
} }
'1.1.1-v4' {
# 1.1.1-v4 - MicrosoftGraphPlaceholder
# Placeholder for the new v4 logic for Test-AdministrativeAccountCompliance
}
'1.1.4' {
# 1.1.4 - MicrosoftGraphPlaceholder
# Placeholder for Test-AdminAccountLicenses
}
'1.1.3' { '1.1.3' {
# Test-GlobalAdminsCount # Test-GlobalAdminsCount
# Step: Retrieve global admin role # Step: Retrieve global admin role
@@ -121,7 +125,6 @@ function Get-CISMgOutput {
} }
} }
end { end {
Write-Verbose "Retuning data for Rec: $Rec" Write-Verbose "Returning data for Rec: $Rec"
} }
} # end function Get-CISMgOutput } # end function Get-CISMgOutput