This rule ensures that S3 buckets enforce SSL encryption for secure data transfer.
Rule | S3 buckets should enforce SSL |
Framework | NIST 800-171 Revision 2 |
Severity | ✔ Medium |
Rule Description:
This rule ensures that all S3 buckets within an organization enforce SSL (Secure Sockets Layer) encryption in accordance with NIST (National Institute of Standards and Technology) guidelines. More specifically, it aligns with the requirements specified in NIST 800-171 Revision 2, which focuses on protecting controlled unclassified information (CUI) in nonfederal systems and organizations.
Enforcing SSL encryption for S3 buckets helps protect sensitive data during transmission between the client and the S3 service, thereby reducing the risk of data interception and unauthorized access.
Troubleshooting Steps:
If SSL enforcement is not configured correctly, the following troubleshooting steps can be followed:
Code Example:
The following is an example of bucket policy code that enforces SSL for an S3 bucket:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "EnforceSSL",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::your-bucket/*",
"arn:aws:s3:::your-bucket"
],
"Condition": {
"Bool": {
"aws:SecureTransport": "false"
}
}
}
]
}
This bucket policy denies any actions on the specified S3 bucket resources if the request is not made over SSL.
Remediation Steps:
To remediate the non-compliance of S3 bucket SSL enforcement, follow these step-by-step actions:
By following these steps, SSL enforcement for S3 buckets in compliance with NIST 800-171 Revision 2 will be achieved.