This rule ensures that S3 buckets enforce SSL for secure data transfer.
Rule | S3 buckets should enforce SSL |
Framework | NIST 800-53 Revision 4 |
Severity | ✔ Medium |
Rule Description:
The rule requires that all S3 buckets enforce SSL (Secure Sockets Layer) encryption to comply with the security standard defined in NIST 800-53 Revision 4. By enforcing SSL for S3 buckets, data transmitted between the client and the bucket will be encrypted, enhancing the security and privacy of the stored data.
Troubleshooting Steps:
Necessary Codes:
To enforce SSL for S3 buckets, you can use the following bucket policy code snippet:
{
"Version": "2012-10-17",
"Id": "EnforceSSL",
"Statement": [
{
"Sid": "EnforceSSLOnly",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::your-bucket-name/*",
"arn:aws:s3:::your-bucket-name"
],
"Condition": {
"Bool": {
"aws:SecureTransport": "false"
}
}
}
]
}
This policy denies all actions on the S3 bucket that do not use SSL.
Step-by-Step Guide for Remediation:
Note: Ensure that you have the necessary permissions to modify the bucket policy and enforce SSL for S3 buckets.