All checks
Critical
S3 general purpose buckets should block public write access
Confirms that S3 buckets block public write access through both ACLs and bucket policies.
- service
- S3
- severity
- Critical
- scope
- evaluated once per account
How to fix it
Block public write access to the bucket.
In the console
S3 → the bucket → Permissions → Block public access (bucket settings)
With the AWS CLI
aws s3api put-public-access-block --bucket <bucket> --public-access-block-configuration BlockPublicAcls=true,BlockPublicPolicy=true,IgnorePublicAcls=true,RestrictPublicBuckets=trueWith Terraform
resource "aws_s3_bucket_public_access_block" "this" {
bucket = aws_s3_bucket.this.id
block_public_acls = true
block_public_policy = true
ignore_public_acls = true
restrict_public_buckets = true
}
See which of your accounts this check is failing on.
Book a demo