| name | cis-aws-foundations-3.1.4 |
| description | Ensure that S3 is configured with 'Block Public Access' enabled |
| category | cis-storage |
| version | 7.0.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","storage","s3","public-access","block-public-access","access-control"] |
| cis_id | 3.1.4 |
| cis_benchmark | CIS AWS Foundations Benchmark v7.0.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-foundations-3.1.1","cis-aws-foundations-3.1.2","cis-aws-foundations-3.1.3"] |
| prerequisites | [] |
| severity_boost | {} |
Ensure that S3 is configured with 'Block Public Access' enabled
Description
Amazon S3 provides Block public access (bucket settings) and Block public access (account settings) to help you manage public access to Amazon S3 resources. By default, S3 buckets and objects are created with public access disabled. However, an IAM principal with sufficient S3 permissions can enable public access at the bucket and/or object level. While enabled, Block public access (bucket settings) prevents an individual bucket and its contained objects from becoming publicly accessible. Similarly, Block public access (account settings) prevents all buckets and their contained objects from becoming publicly accessible across the entire account.
Rationale
Amazon S3 Block public access (bucket settings) prevents the accidental or malicious public exposure of data contained within the respective bucket(s).
Amazon S3 Block public access (account settings) prevents the accidental or malicious public exposure of data contained within all buckets of the respective AWS account.
Whether to block public access to all or some buckets is an organizational decision that should be based on data sensitivity, least privilege, and use case.
Impact
When you apply Block Public Access settings to an account, the settings apply to all AWS regions globally. The settings may not take effect in all regions immediately or simultaneously, but they will eventually propagate to all regions.
Audit Procedure
Using AWS Console
If utilizing Block Public Access (bucket settings):
- Login to the AWS Management Console and open the Amazon S3 console using https://console.aws.amazon.com/s3/.
- Click Bucket name.
- Click on Permissions tab and check "Block public access (bucket settings)".
- Ensure that the block public access settings are configured appropriately for this bucket.
- Repeat for all the buckets in your AWS account.
If utilizing Block Public Access (account settings):
- Login to the AWS Management Console and open the Amazon S3 console using https://console.aws.amazon.com/s3/.
- Choose
Block public access (account settings).
- Ensure that the block public access settings are configured appropriately for your AWS account.
Using AWS CLI
Check bucket-level Block Public Access: