generated from cisagov/ScubaGear
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to Common Controls Baseline (#315)
* Made all Common Controls Changes * Increased max super admins to 8 * Removed Policy 10.1 * Fixed Date for Policy 16.1 * Update baselines/Common Controls Minimum Viable Secure Configuration Baseline v0.2.md Co-authored-by: Alden Hilton <[email protected]> * Update baselines/Common Controls Minimum Viable Secure Configuration Baseline v0.2.md Co-authored-by: Alden Hilton <[email protected]> * Apply suggestions from code review Co-authored-by: Alden Hilton <[email protected]> * udpated resources and implementation steps * Added policy group 17 * Apply suggestions from code review Co-authored-by: Alden Hilton <[email protected]> * Fixed most PR comment changes * Made COMMONCONTROLS.11.1v0.2 a SHALL * Added Pending TTP Mappings * updated 2.1 implemetation steps for Coast * [#315] Rego update - remove 10.1 rego and unit tests and update numbering * [#315] Change 11.1 to Shall * [#315] Fix error in unit test * Remove 2.2 from Rego * Implement 16.1 rego * Implement 17.1 Rego * Adjust admin count rego check --------- Co-authored-by: Max Dueltgen (MITRE) <[email protected]> Co-authored-by: Alden Hilton <[email protected]> Co-authored-by: ssnarve <[email protected]> Co-authored-by: Alden Hilton <[email protected]>
- Loading branch information
1 parent
60f8fbf
commit c823249
Showing
8 changed files
with
545 additions
and
166 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ test_Count_Correct_V2 if { | |
} | ||
|
||
test_Count_Correct_V3 if { | ||
# 4 super admins | ||
# 8 super admins | ||
PolicyId := "GWS.COMMONCONTROLS.6.2v0.2" | ||
Output := tests with input as { | ||
"super_admins": [ | ||
|
@@ -109,7 +109,23 @@ test_Count_Correct_V3 if { | |
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
} | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
] | ||
} | ||
|
||
|
@@ -119,15 +135,15 @@ test_Count_Correct_V3 if { | |
not RuleOutput[0].NoSuchEvent | ||
RuleOutput[0].ReportDetails == concat("", [ | ||
"The following super admins are configured: ", | ||
"[email protected], [email protected], [email protected], ", | ||
"admin4@example.org. <i>Note: Exceptions are ", | ||
"[email protected], [email protected], [email protected], [email protected], ", | ||
"[email protected], [email protected], [email protected], admin8@example.org. <i>Note: Exceptions are ", | ||
"allowed for \"break glass\" super admin accounts, ", | ||
"though we are not able to account for this automatically.</i>" | ||
]) | ||
} | ||
|
||
test_Count_Incorrect_V1 if { | ||
# 5 super admins | ||
# 9 super admins | ||
PolicyId := "GWS.COMMONCONTROLS.6.2v0.2" | ||
Output := tests with input as { | ||
"super_admins": [ | ||
|
@@ -150,6 +166,22 @@ test_Count_Incorrect_V1 if { | |
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
}, | ||
{ | ||
"primaryEmail": "[email protected]", | ||
"orgUnitPath": "" | ||
} | ||
] | ||
} | ||
|
@@ -160,8 +192,8 @@ test_Count_Incorrect_V1 if { | |
not RuleOutput[0].NoSuchEvent | ||
RuleOutput[0].ReportDetails == concat("", [ | ||
"The following super admins are configured: ", | ||
"[email protected], [email protected], [email protected], ", | ||
"admin4@example.org, admin5@example.org. <i>Note: Exceptions are ", | ||
"[email protected], [email protected], [email protected], [email protected], [email protected], ", | ||
"admin6@example.org, [email protected], [email protected], admin9@example.org. <i>Note: Exceptions are ", | ||
"allowed for \"break glass\" super admin accounts, ", | ||
"though we are not able to account for this automatically.</i>" | ||
]) | ||
|
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
Oops, something went wrong.