Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Rule: S3 Buckets Should Enforce SSL

This rule ensures all S3 buckets enforce SSL for secure data storage.

RuleS3 buckets should enforce SSL
FrameworkNIST 800-171 Revision 2
Severity
Medium

Rule Description

The rule states that all S3 buckets should enforce the use of SSL (Secure Sockets Layer) according to the NIST 800-171 Revision 2 requirements. SSL ensures secure communication between the client and the S3 bucket by encrypting data in transit, protecting it from eavesdropping and unauthorized access.

Enforcing SSL for S3 buckets is crucial for compliance with NIST 800-171 Revision 2 as it helps mitigate the risk of data breaches or unauthorized access to sensitive information.

Troubleshooting Steps (if necessary)

If SSL is not enforced for an S3 bucket, you may encounter the following issues:

  1. 1.

    Insecure Data Transfer: Data transferred between the client and S3 bucket will be vulnerable to interception, potentially leading to unauthorized access or data leaks.

  2. 2.

    Non-compliance: Failure to enforce SSL for S3 buckets can result in non-compliance with NIST 800-171 Revision 2, which may have legal and regulatory consequences.

Necessary Codes (if applicable)

To enforce SSL for S3 buckets, you need to set up the appropriate bucket policy. The following code snippet can be used:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "Principal": "*",
      "Action": "s3:*",
      "Resource": [
        "arn:aws:s3:::<bucket-name>",
        "arn:aws:s3:::<bucket-name>/*"
      ],
      "Condition": {
        "Bool": {
          "aws:SecureTransport": "false"
        }
      }
    }
  ]
}

In the above code, replace

<bucket-name>
with the actual name of your S3 bucket.

Remediation Steps

Follow these steps to enforce SSL for S3 buckets:

  1. 1.

    Log in to the AWS Management Console.

  2. 2.

    Navigate to the S3 service.

  3. 3.

    Select the desired bucket from the list.

  4. 4.

    Click on the "Permissions" tab.

  5. 5.

    Scroll down to the "Bucket Policy" section and click on the "Edit" button.

  6. 6.

    Copy the necessary code snippet mentioned above and replace

    <bucket-name>
    with the actual name of your S3 bucket.

  7. 7.

    Paste the modified code into the bucket policy editor.

  8. 8.

    Click on the "Save changes" button to apply the updated bucket policy.

Once the SSL enforcement bucket policy is in place, all incoming requests without SSL will be denied, ensuring that data transfer between the client and the S3 bucket remains secure and compliant with NIST 800-171 Revision 2.

Please note that enabling SSL for S3 buckets may require proper configuration and adjustments depending on your specific application and infrastructure setup. It is recommended to consult AWS documentation or seek assistance from AWS support if you encounter any issues or have additional requirements.

Is your System Free of Underlying Vulnerabilities?
Find Out Now