Skip to content

Commit

Permalink
[IT-2431] Require secure access for ConfigAuditBucket
Browse files Browse the repository at this point in the history
Secure the `ConfigAuditBucket` by denying any S3 API calls for the
bucket that do not use TLS/HTTPS.

This addresses a Security Hub finding from
`cis-aws-foundations-benchmark/v/1.4.0/2.1.2`.

Ref: https://repost.aws/knowledge-center/s3-bucket-policy-for-config-rule
  • Loading branch information
ConsoleCatzirl committed Jan 9, 2025
1 parent 2bdadd1 commit 14a3519
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions org-formation/080-aws-config-inventory/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ Resources:
Condition:
StringEquals:
's3:x-amz-acl': 'bucket-owner-full-control'
- Sid: AWSConfigBucketDenyInsecure
Effect: Deny
Principal: '*'
Action: 's3:*'
Resource:
- !Sub '${ConfigAuditBucket.Arn}'
- !Sub '${ConfigAuditBucket.Arn}/*'
Condition:
Bool:
'aws:SecureTransport': 'false'

ConfigurationRecorder:
Type: 'AWS::Config::ConfigurationRecorder'
Expand Down

0 comments on commit 14a3519

Please sign in to comment.