Ensure that the content of your Amazon S3 buckets can't be listed by anonymous users in order to protect your S3 data against unauthorized access. An Amazon S3 bucket that allows READ (LIST) access to everyone on the Internet will provide anonymous users the ability to list the objects within the bucket and use the information acquired to find potential objects with misconfigured permissions and exploit them.
This rule can help you with the following compliance standards:
- PCI
- GDPR
- APRA
- MAS
- NIST4
For further details on compliance standards supported by Conformity, see here.
This rule can help you work with the AWS Well-Architected Framework.
This rule resolution is part of the Conformity Security & Compliance tool for AWS.
Granting public READ access to your Amazon S3 buckets can allow unauthorized users to list all the objects within your buckets and use this information to gain access to your data. To meet security and compliance requirements, avoid granting READ (LIST) permissions to the "Everyone (public access)" grantee in production.
Audit
To determine if your Amazon S3 buckets are configured to allow public READ access, perform the following actions:
Remediation / Resolution
To deny public READ access to your Amazon S3 buckets using Access Control Lists (ACLs), perform the following actions:
Note: An S3 bucket can be deemed compliant if implements either "AccessControl": "Private" or sets the "PublicAccessBlockConfiguration" feature options to true. The following CloudFormation template uses both for added security.References
- AWS Documentation
- Amazon S3 FAQs
- Access Control List (ACL) Overview
- Managing ACLs in the AWS Management Console
- Identity and access management in Amazon S3
- AWS Command Line Interface (CLI) Documentation
- list-buckets
- get-bucket-acl
- put-bucket-acl
- CloudFormation Documentation:
- AccessControl
- Terraform Documentation:
- AWS Provider
Unlock the Remediation Steps
Free 30-day Trial
Automatically audit your configurations with Conformity
and gain access to our cloud security platform.
You are auditing:
S3 Bucket Public 'READ' Access
Risk Level: Very High