Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Rule: S3 Buckets should enforce SSL

This rule ensures that S3 buckets enforce SSL for secure data transfer.

RuleS3 buckets should enforce SSL
FrameworkHIPAA
Severity
Medium

Rule Description:

S3 buckets storing sensitive data for HIPAA compliance should enforce Secure Socket Layer (SSL) to ensure data encryption during transmission. This rule helps protect the confidentiality and integrity of data being transferred to and from the S3 buckets.

Troubleshooting Steps (if applicable):

  1. 1.
    Ensure that the S3 bucket is properly configured to accept SSL requests.
  2. 2.
    Verify that the SSL certificate used for the S3 bucket is valid and up to date.
  3. 3.
    Check if the S3 bucket policy or bucket ACL settings are correctly configured to enforce SSL.
  4. 4.
    Verify that the client applications accessing the S3 bucket are properly configured to use SSL/TLS when communicating with the bucket.

Necessary Codes/Configuration (if applicable):

To enforce SSL for S3 bucket, you can update the bucket policy or bucket ACL with the following code:

For Bucket Policy:

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

For Bucket ACL:

  1. 1.
    Go to the S3 Management Console.
  2. 2.
    Select the desired bucket.
  3. 3.
    Click on the "Permissions" tab.
  4. 4.
    Under "Access for other AWS accounts" or "All public access" (depending on your bucket configuration), click on "Edit".
  5. 5.
    Deny the permissions to "Everyone" to "List" and "Write" unless the request is made over SSL.
  6. 6.
    Save the ACL settings.

Remediation Steps:

  1. 1.
    Access the AWS Management Console.
  2. 2.
    Go to the S3 service.
  3. 3.
    Select the bucket(s) you want to enforce SSL for.
  4. 4.
    Update the bucket policy or bucket ACL to deny access if the request is not made over SSL.
  5. 5.
    Save the changes.
  6. 6.
    Verify that the SSL enforcement is working by attempting to access the bucket without SSL, which should result in an access denial.
  7. 7.
    Ensure that all relevant client applications or services are configured to use SSL/TLS when communicating with the S3 bucket.
  8. 8.
    Test the access to the S3 bucket using SSL/TLS-enabled connections to ensure successful and secure communication.

By following these steps, you can enforce SSL for S3 buckets storing sensitive HIPAA data, ensuring data security during transmission.

Is your System Free of Underlying Vulnerabilities?
Find Out Now