generated from cisagov/ScubaGear
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config file support for control omission (#431)
* Update Config.md with section on omitting policies * Create omit_policies.yaml * Update Config.md with example config specific to scubagoggles * Update Config.md minor grammatical changes * Update Config.md correct link * Update Config.md correct minor typo * Add config file support for omitting policies * Correct some linter errors * Correct more linter errors * Move pylint disable comment * Update Config.md, clarify usage of single config file * Update omit_policies.yaml, comment about usage of anchors * Warn for unexpected control ids * must appease the linter * Remove commented out code Co-authored-by: David Bui <[email protected]> * Break out omitpolicy validation into separate function. * Add final newline to file for the linter * Add special handling for rules * Remove duplicate word Co-authored-by: mitchelbaker-cisa <[email protected]> * Create warn wrapper function to clean tqdm output --------- Co-authored-by: David Bui <[email protected]> Co-authored-by: mitchelbaker-cisa <[email protected]>
- Loading branch information
1 parent
c4258ae
commit 8cc7ff3
Showing
7 changed files
with
316 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# YAML configuration demonstrating omitting policies from ScubaGoggles evaluation. | ||
# Any omitted policies should be carefully considered and documented as part of an | ||
# organization's cybersecurity risk management program process and practices. | ||
|
||
baselines: [gmail, chat, drive] | ||
|
||
omitpolicy: | ||
GWS.GMAIL.3.1v0.3: | ||
rationale: "Known false positive; our SPF policy currently cannot to be retrieved via ScubaGoggles due to a split | ||
horizon setup but is available publicly." | ||
expiration: "2023-12-31" | ||
GWS.CHAT.5.1v0.3: | ||
rationale: &DLPRationale "The DLP capability required by the baselines is implemented by third party product, [x], | ||
which ScubaGoggles does not have the ability to check." | ||
GWS.DRIVEDOCS.7.1v0.3: | ||
rationale: *DLPRationale | ||
|
||
# The "&" character used in the above example defines an anchor, which saves a value | ||
# for future reference. This value can then be retrieved with the "*" character. See | ||
# https://yaml.org/spec/1.2.2/#692-node-anchors for more details. In this case, the | ||
# anchor allows you to configure multiple omissions that share the same rationale | ||
# without repeating yourself. |
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.