forked from p15670423/monkey
* Added a check to no issues list
* Changed the productARN to the monkey's ARN
This commit is contained in:
parent
0a6b3a12fa
commit
af97fb6ffc
|
@ -21,6 +21,9 @@ class AWSExporter(Exporter):
|
|||
|
||||
findings_list = []
|
||||
issues_list = report_json['recommendations']['issues']
|
||||
if not issues_list:
|
||||
logger.info('No issues were found by the monkey, no need to send anything')
|
||||
return True
|
||||
for machine in issues_list:
|
||||
for issue in issues_list[machine]:
|
||||
findings_list.append(AWSExporter._prepare_finding(issue))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"server_config": "standard",
|
||||
"aws": {
|
||||
"sec_hub_product_arn": "arn:aws:securityhub:us-west-2:324264561773:product/aws/guardduty"
|
||||
"sec_hub_product_arn": "arn:aws:securityhub:eu-west-2:324264561773:product/guardicore/aws-infection-monkey"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue