-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gcp): add CIS checks #2544
Conversation
d3cccd5
to
2b2ef33
Compare
50b7ca5
to
2a311a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remember to update the Description table on README.md
README.md
Outdated
@@ -40,7 +40,7 @@ It contains hundreds of controls covering CIS, NIST 800, NIST CSF, CISA, RBI, Fe | |||
| Provider | Checks | Services | [Compliance Frameworks](https://docs.prowler.cloud/en/latest/tutorials/compliance/) | [Categories](https://docs.prowler.cloud/en/latest/tutorials/misc/#categories) | | |||
|---|---|---|---|---| | |||
| AWS | 283 | 55 -> `prowler aws --list-services` | 21 -> `prowler aws --list-compliance` | 5 -> `prowler aws --list-categories` | | |||
| GCP | 59 | 10 -> `prowler gcp --list-services` | CIS soon | 0 -> `prowler gcp --list-categories`| | |||
| GCP | 73 | 11 -> `prowler gcp --list-services` | 1 -> `prowler aws --list-compliance` | 0 -> `prowler gcp --list-categories`| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| GCP | 73 | 11 -> `prowler gcp --list-services` | 1 -> `prowler aws --list-compliance` | 0 -> `prowler gcp --list-categories`| | |
| GCP | 73 | 11 -> `prowler gcp --list-services` | 1 -> `prowler gcp --list-compliance` | 0 -> `prowler gcp --list-categories`| |
prowler/config/config.py
Outdated
with os.scandir(compliance_gcp_dir) as files: | ||
files = [ | ||
file.name | ||
for file in files | ||
if file.is_file() | ||
and file.name.endswith(".json") | ||
and available_compliance_frameworks.append(file.name.removesuffix(".json")) | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please reutilise the above code to iterate through the compliance directories?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Description
Add 14 GCP checks to complete CIS.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.