-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat gsn-10917: comply interface terminology to security hub
- Loading branch information
1 parent
671f3f6
commit 230bc0d
Showing
5 changed files
with
37 additions
and
37 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 |
---|---|---|
|
@@ -47,16 +47,16 @@ | |
__email__ = '''<[email protected]>,<[email protected]>,<[email protected]>''' | ||
__status__ = '''Development''' # "Prototype", "Development", "Production". | ||
|
||
rule_schema = Schema({'match_on': {Optional('control_id'): str, | ||
rule_schema = Schema({'match_on': {Optional('rule_or_control_id'): str, | ||
Optional('security_control_id'): str, | ||
Optional('resource_ids'): [str], | ||
Optional('resource_id_regex_list'): [str], | ||
Optional('tags'): [{'key': str, | ||
'value': str}]}, | ||
'note': str, | ||
'action': lambda x: x in ('SUPPRESSED',)}) | ||
|
||
RULE_SUPPORTED_ACTIONS = ('SUPPRESSED',) | ||
RULE_MUTUALLY_EXCLUSIVE = [('security_control_id', 'control_id')] | ||
RULE_MUTUALLY_EXCLUSIVE = [('security_control_id', 'rule_or_control_id')] | ||
|
||
|
||
def validate_rule_data(rule_data) -> Dict: | ||
|
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 |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
"Text": "Maybe later", | ||
"UpdatedBy": "FindingsManager" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -187,4 +187,4 @@ | |
"AwsAccountName": "account2" | ||
} | ||
] | ||
} | ||
} |
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,12 +1,12 @@ | ||
# Comments | ||
Rules: | ||
- note: 'Maybe later' | ||
action: 'SUPPRESSED' | ||
match_on: | ||
security_control_id: 'GuardDuty.1' | ||
- note: 'Public' | ||
action: 'SUPPRESSED' | ||
match_on: | ||
resource_ids: | ||
- '^arn:aws:s3:::public-bucket$' | ||
- '^arn:aws:s3:::bucket-public$' | ||
- note: 'Maybe later' | ||
action: 'SUPPRESSED' | ||
match_on: | ||
security_control_id: 'GuardDuty.1' | ||
- note: 'Public' | ||
action: 'SUPPRESSED' | ||
match_on: | ||
resource_id_regex_list: | ||
- '^arn:aws:s3:::public-bucket$' | ||
- '^arn:aws:s3:::bucket-public$' |