This rule ensures that S3 buckets enforce SSL for secure data transfer.
Rule | S3 buckets should enforce SSL |
Framework | FedRAMP Moderate Revision 4 |
Severity | ✔ Medium |
Rule Description
S3 buckets storing data classified under FedRAMP Moderate Revision 4 should enforce SSL (Secure Sockets Layer) encryption for secure data transmission.
Enforcing SSL ensures that data transferred between clients and S3 buckets is encrypted, preventing unauthorized access and enhancing the overall security posture of the system.
Troubleshooting Steps
If SSL enforcement for S3 buckets is not working as expected, follow these troubleshooting steps:
Necessary Codes
The following code snippet can be used to enforce SSL encryption for S3 buckets:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "EnforceSSL",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": "arn:aws:s3:::your-bucket-name/*",
"Condition": {
"Bool": {
"aws:SecureTransport": "false"
}
}
}
]
}
This policy denies any actions on the S3 bucket if the request is not made over a secure SSL connection.
Step-by-Step Guide for Remediation
Follow the steps below to enforce SSL for an S3 bucket:
By enforcing SSL encryption for the S3 bucket, all data transferred to and from the bucket will be secured with SSL, complying with the FedRAMP Moderate Revision 4 requirements.