Skip to content
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/use security hub severity levels #41

Merged
merged 17 commits into from
May 30, 2024

Conversation

bensonce
Copy link
Contributor

@bensonce bensonce commented May 23, 2024

Currently, new Config Rules are added with a Medium severity by default because AWS doesn't set severity levels for the rules themselves. However, AWS Security Hub does maintain a list of security controls and standards that reference Config Rules, and that list does include severity levels for the corresponding rules. It's possible that setting a rule severity to Medium by default masks the suggested severity set by the Security Hub controls.

This PR scrapes the Security Hub controls references and matches the severities to the appropriate rules. A new list of rules and severities is generated when the automation is run so any severities set manually are overwritten. The changes here are a result of running the updated scripts.

@bensonce bensonce self-assigned this May 23, 2024
@bensonce bensonce added the enhancement New feature or request label May 23, 2024
@bensonce bensonce marked this pull request as ready for review May 24, 2024 10:30
@bensonce bensonce requested review from duraikkannuv2 and yangx17 May 24, 2024 10:30
Copy link
Contributor

@yangx17 yangx17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks a lot for your great work!

@bensonce bensonce merged commit 13c7ed6 into main May 30, 2024
5 checks passed
@bensonce bensonce deleted the feat/use-security-hub-severity-levels branch May 30, 2024 18:21
@bensonce bensonce added the ci Improvement or fix for CI label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Improvement or fix for CI enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants