turbot/aws_compliance

Control: 3 S3 buckets should prohibit public write access

Description

This control checks whether your S3 buckets allow public write access by evaluating the Block Public Access settings, the bucket policy, and the bucket access control list (ACL).

It does not check for write access to the bucket by internal principals, such as IAM roles. You should ensure that access to the bucket is restricted to authorized principals only.

Remediation

  1. Open the Amazon S3 console.
  2. Choose the name of the bucket identified in the finding.
  3. Choose Permissions and then choose Public access settings.
  4. Choose Edit, select all four options, and then choose Save.
  5. If prompted, enter confirm and then choose Confirm.

Usage

steampipe check aws_compliance.control.foundational_security_s3_3

SQL

This control uses a named query:

s3_bucket_restrict_public_write_access

Tags