Skip to content

Commit

Permalink
commoncontrols: remove 9.1, 9.2 policy API implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
rlxdev committed Dec 11, 2024
1 parent 6806134 commit eda7444
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 124 deletions.

This file was deleted.

61 changes: 0 additions & 61 deletions scubagoggles/rego/Commoncontrols.rego
Original file line number Diff line number Diff line change
Expand Up @@ -1317,21 +1317,6 @@ if {

CommonControlsId9_1 := utils.PolicyIdWithSuffix("GWS.COMMONCONTROLS.9.1")

NonComplianceSuffix9 := "enrolled in the GWS Advanced Protection Program."
NonComplianceMessage9_1 := sprintf("%s %s",
["Highly privileged accounts can't be",
NonComplianceSuffix9])

NonCompliantOUs9_1 contains {
"Name": OU,
"Value": NonComplianceMessage9_1
}
if {
some OU, settings in input.policies
appEnable := settings.security_advanced_protection_program.enableAdvancedProtectionSelfEnrollment
appEnable != true
}

tests contains {
"PolicyId": CommonControlsId9_1,
"Criticality": "Shall/Not-Implemented",
Expand All @@ -1340,22 +1325,6 @@ tests contains {
"RequirementMet": false,
"NoSuchEvent": true
}
if {
not PolicyApiInUse
}

tests contains {
"PolicyId": CommonControlsId9_1,
"Criticality": "Shall",
"ReportDetails": utils.ReportDetails(NonCompliantOUs9_1, []),
"ActualValue": {"NonCompliantOUs": NonCompliantOUs9_1},
"RequirementMet": Status,
"NoSuchEvent": false
}
if {
PolicyApiInUse
Status := count(NonCompliantOUs9_1) == 0
}
#--

#
Expand All @@ -1364,20 +1333,6 @@ if {

CommonControlsId9_2 := utils.PolicyIdWithSuffix("GWS.COMMONCONTROLS.9.2")

NonComplianceMessage9_2 := sprintf("%s %s",
["Sensitive user accounts",
NonComplianceSuffix9])

NonCompliantOUs9_2 contains {
"Name": OU,
"Value": NonComplianceMessage9_2
}
if {
some OU, settings in input.policies
appEnable := settings.security_advanced_protection_program.enableAdvancedProtectionSelfEnrollment
appEnable != true
}

tests contains {
"PolicyId": CommonControlsId9_2,
"Criticality": "Should/Not-Implemented",
Expand All @@ -1386,22 +1341,6 @@ tests contains {
"RequirementMet": false,
"NoSuchEvent": true
}
if {
not PolicyApiInUse
}

tests contains {
"PolicyId": CommonControlsId9_2,
"Criticality": "Should",
"ReportDetails": utils.ReportDetails(NonCompliantOUs9_2, []),
"ActualValue": {"NonCompliantOUs": NonCompliantOUs9_2},
"RequirementMet": Status,
"NoSuchEvent": false
}
if {
PolicyApiInUse
Status := count(NonCompliantOUs9_2) == 0
}
#--

#########################
Expand Down

0 comments on commit eda7444

Please sign in to comment.