This rule ensures that S3 buckets restrict public write access, maintaining high security standards.
Rule | S3 buckets should prohibit public write access |
Framework | FedRAMP Moderate Revision 4 |
Severity | ✔ High |
Rule Description:
This rule is designed to ensure that S3 buckets in the AWS environment have the necessary access controls in place to prohibit public write access. It specifically applies to S3 buckets that are governed by the FedRAMP (Federal Risk and Authorization Management Program) Moderate Revision 4 compliance framework.
Troubleshooting Steps:
Necessary Codes:
Bucket Policy:
To explicitly deny public write access in the bucket policy, you can use the following code snippet:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "DenyPublicWrite", "Effect": "Deny", "Principal": "*", "Action": "s3:PutObject", "Resource": "arn:aws:s3:::bucket-name/*", "Condition": { "Bool": { "aws:SecureTransport": "false" } } } ] }
Block Public Access:
To enable block public access for the S3 bucket, follow these steps:
Step-by-Step Guide:
To remediate the public write access issue in an S3 bucket governed by FedRAMP Moderate Revision 4, you can follow these steps: