This rule ensures S3 buckets do not allow public write access.
Rule | S3 buckets should prohibit public write access |
Framework | GxP 21 CFR Part 11 |
Severity | ✔ High |
Rule Description:
According to the GxP 21 CFR Part 11 compliance regulations, S3 buckets should not allow public write access. This is to ensure the security and integrity of sensitive data stored in the S3 buckets, as public write access could potentially lead to unauthorized modifications or data breaches.
Troubleshooting Steps:
Necessary Code:
To deny public write access for S3 buckets, you can use the following bucket policy:
{ "Version": "2012-10-17", "Id": "DenyPublicWriteAccess", "Statement": [ { "Sid": "DenyPublicWriteACL", "Effect": "Deny", "Principal": "*", "Action": "s3:PutObject", "Resource": "arn:aws:s3:::YOUR_BUCKET_NAME/*", "Condition": { "Bool": { "aws:SecureTransport": "false" } } } ] }
Step-by-step Guide for Remediation:
"Resource": "arn:aws:s3:::YOUR_BUCKET_NAME/*"
line, replacing YOUR_BUCKET_NAME with the actual name of your bucket.