mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
feat(compliance): Loader and Execute (#1465)
This commit is contained in:
@@ -30,6 +30,5 @@
|
||||
},
|
||||
"DependsOn": [],
|
||||
"RelatedTo": [],
|
||||
"Notes": "",
|
||||
"Compliance": []
|
||||
"Notes": ""
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ class ssm_document_secrets(Check):
|
||||
def execute(self):
|
||||
findings = []
|
||||
for document in ssm_client.documents.values():
|
||||
report = Check_Report(self.metadata)
|
||||
report = Check_Report(self.metadata())
|
||||
report.region = document.region
|
||||
report.resource_arn = f"arn:aws:ssm:{document.region}:{ssm_client.audited_account}:document/{document.name}"
|
||||
report.resource_id = document.name
|
||||
|
||||
@@ -30,6 +30,5 @@
|
||||
},
|
||||
"DependsOn": [],
|
||||
"RelatedTo": [],
|
||||
"Notes": "",
|
||||
"Compliance": []
|
||||
"Notes": ""
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ class ssm_documents_set_as_public(Check):
|
||||
def execute(self):
|
||||
findings = []
|
||||
for document in ssm_client.documents.values():
|
||||
report = Check_Report(self.metadata)
|
||||
report = Check_Report(self.metadata())
|
||||
report.region = document.region
|
||||
report.resource_arn = f"arn:aws:ssm:{document.region}:{ssm_client.audited_account}:document/{document.name}"
|
||||
report.resource_id = document.name
|
||||
|
||||
@@ -30,6 +30,5 @@
|
||||
},
|
||||
"DependsOn": [],
|
||||
"RelatedTo": [],
|
||||
"Notes": "",
|
||||
"Compliance": []
|
||||
"Notes": ""
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ class ssm_managed_compliant_patching(Check):
|
||||
def execute(self):
|
||||
findings = []
|
||||
for resource in ssm_client.compliance_resources.values():
|
||||
report = Check_Report(self.metadata)
|
||||
report = Check_Report(self.metadata())
|
||||
report.region = resource.region
|
||||
report.resource_arn = f"arn:aws:ec2:{resource.region}:{ssm_client.audited_account}:instance/{resource.id}"
|
||||
report.resource_id = resource.id
|
||||
|
||||
Reference in New Issue
Block a user