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

[IT-4071] Suppress CIS 2.1.2 for Bridge buckets #1335

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions org-formation/075-security-hub/security-hub-suppress-infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ Resources:
# Below this point, rules are defined to send findings to the SecurityHubFindingsQueue above
# The findings on the queue will be processed by a lambda that will suppress them in SecurityHub

# Event format: https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-cwe-event-formats.html

# This rule suppresses findings for the given controls (GeneratorId) in all the accounts
SuppressFindingsInAllAccountsRule:
Type: AWS::Events::Rule
Expand Down Expand Up @@ -496,3 +498,34 @@ Resources:
- SecurityHubFindingsQueue
- Arn
Id: Target0

# Suppress all findings for insecure access to S3 buckets in the bridge accounts
# because consent forms are accessed via HTTP
SuppressFindingsForBridgeAccounts:
Type: AWS::Events::Rule
Properties:
Description: SecHubSuppress findings for HTTP access in Bridge
EventPattern:
detail:
findings:
GeneratorId:
# Ensure S3 Bucket Policy is set to deny HTTP requests
- 'cis-aws-foundations-benchmark/v/1.4.0/2.1.2'
Workflow:
Status:
- NEW
- NOTIFIED
account:
- '420786776710' # bridge-dev
- '649232250620' # bridge-prod
detail-type:
- Security Hub Findings - Imported
source:
- aws.securityhub
State: ENABLED
Targets:
- Arn:
Fn::GetAtt:
- SecurityHubFindingsQueue
- Arn
Id: Target0
Loading