This rule ensures that S3 buckets enforce SSL for enhanced security measures.
Rule | S3 buckets should enforce SSL |
Framework | NIST Cybersecurity Framework (CSF) v1.1 |
Severity | ✔ Medium |
Rule Description:
This rule/policy enforces SSL (Secure Sockets Layer) for S3 buckets, in accordance with the NIST (National Institute of Standards and Technology) Cybersecurity Framework (CSF) version 1.
Enforcing SSL ensures that all communications between the client and the S3 bucket are encrypted, providing an added layer of security to protect sensitive data.
Troubleshooting Steps (if any):
Necessary Codes (if any):
To enforce SSL for an S3 bucket, you can add the following bucket policy:
{ "Version": "2012-10-17", "Id": "EnforceSSLOnly", "Statement": [ { "Sid": "RequireHTTPS", "Effect": "Deny", "Principal": "*", "Action": "s3:*", "Resource": "arn:aws:s3:::your-bucket/*", "Condition": { "Bool": { "aws:SecureTransport": "false" } } } ] }
This policy denies all actions (
s3:*
) for any principal accessing the bucket ("Principal": "*"
), if the connection is not using SSL/TLS ("aws:SecureTransport": "false"
). Replace "your-bucket"
with the name of your S3 bucket.Step-by-Step Guide for Remediation:
Note: Enforcing SSL ensures that all communications to and from the S3 bucket are encrypted, protecting sensitive data and enhancing overall security. It is recommended to regularly review and update security policies to align with best practices and industry standards.