Critical
S3
S3 general purpose buckets should block public write access
PCI DSSNISTISO 27001HIPAA
Description
Checks if S3 buckets block public write access through both ACLs and bucket policies.
Remediation
To block public write access for S3 buckets, follow these steps:
Steps
- Sign in to the AWS Management Console and open the Amazon S3 console.
- Choose the name of the bucket to modify.
- Select the 'Permissions' tab.
- In 'Block Public Access' settings, enable 'Block public access to buckets and objects granted through new/any ACLs'.
- Review the 'Access Control List (ACL)' section to ensure no public 'WRITE' permissions are granted.
- Review the bucket policy to ensure it does not allow 's3:PutObject' or any overly permissive actions (such as 'Action: *' with 'Principal: *' or 'Principal: AWS: *').
- For specific write permissions, use IAM roles and policies to allow secure access.
Compliance
PCI DSSNISTISO 27001HIPAA