Skip to main content

More Info:

AWS S3 buckets should protect their sensitive data at rest by enforcing Server-Side Encryption (SSE).

Risk Level

High

Address

Security

Compliance Standards

  • APRA CPS 234 (Australia)
  • AWS Well Architected Framework
  • BSI C5 (Germany)
  • Brazil LGPD
  • CCPA / CPRA (California)
  • CIS Critical Security Controls v8
  • CMMC 2.0
  • CSA Cloud Controls Matrix v4
  • DPDPA
  • Digital Operational Resilience Act (EU)
  • Essential 8
  • GDPR
  • HIPAA
  • HITRUST CSF
  • ISO 27001
  • ISO/IEC 27017
  • ISO/IEC 27018
  • ISO/IEC 27701
  • KSA PDPL
  • MAS Technology Risk Management (Singapore)
  • MITRE ATT&CK (Cloud)
  • NIS2 Directive
  • NIST
  • NIST CSF
  • NIST SP 800-171
  • NYDFS 23 NYCRR 500
  • PCI
  • Reserve Bank of India (RBI) Cyber Security Framework
  • SOC2
  • SWIFT Customer Security Controls Framework
  • Sarbanes-Oxley IT General Controls
  • Securities and Exchange Board of India (SEBI) - Cloud Security Adoption Framework
  • UK NCSC Cyber Assessment Framework

Triage and Remediation

Remediation

Using Console

Sure, here are the step-by-step instructions to remediate the S3 Buckets Should Enforce Server Side Encryption misconfiguration in AWS using the AWS console:
  1. Login to your AWS Management Console.
  2. Navigate to the S3 service.
  3. Select the bucket that you want to remediate.
  4. Click on the “Properties” tab.
  5. Under the “Default encryption” section, click on the “Edit” button.
  6. Select “AES-256” or “AWS-KMS” as the encryption type.
  7. Click on the “Save” button.
  8. Repeat the above steps for all the S3 buckets that need to be remediated.
By following the above steps, you can enforce server-side encryption for your S3 buckets in AWS, which will help you remediate the S3 Buckets Should Enforce Server Side Encryption misconfiguration.

To remediate the misconfiguration “S3 Buckets Should Enforce Server Side Encryption” for AWS using AWS CLI, you can follow the below steps:
  1. Open the AWS CLI on your local machine.
  2. Run the following command to list all the S3 buckets in your AWS account:
  1. Identify the S3 bucket that needs to be remediated.
  2. Run the following command to enable server-side encryption on the identified bucket:
Note: Replace <bucket-name> with the name of the identified S3 bucket.
  1. Once the command is executed successfully, the identified S3 bucket will enforce server-side encryption.
  2. To verify if the server-side encryption is enabled, run the following command:
Note: Replace <bucket-name> with the name of the identified S3 bucket.
  1. If the server-side encryption is enabled, the output of the above command will show the encryption configuration for the S3 bucket.
By following these steps, you can remediate the misconfiguration “S3 Buckets Should Enforce Server Side Encryption” for AWS using AWS CLI.
To remediate the misconfiguration in AWS, you can use the AWS SDK for Python (Boto3) to enforce server-side encryption on all S3 buckets. Here are the steps to follow:
  1. Install Boto3 using pip:
  1. Create a Python script and import the required modules:
  1. Instantiate a Boto3 S3 client:
  1. Retrieve a list of all S3 buckets:
  1. For each bucket, check if server-side encryption is already enabled:
  1. Run the script to enable server-side encryption on all S3 buckets.
Note: Before running the script, make sure you have the necessary permissions to modify S3 bucket settings.
Enabling or changing aws_s3_bucket_server_side_encryption_configuration updates the bucket in place; it does not force bucket replacement, but it will overwrite any existing default encryption configuration.To verify, terraform plan should show either:
  • + aws_s3_bucket_server_side_encryption_configuration.this_aes256 with sse_algorithm: "AES256", or
  • + aws_s3_bucket_server_side_encryption_configuration.this_kms with sse_algorithm: "aws:kms" and the CMK ARN,
    and no - (destroy) for the aws_s3_bucket.this resource.

Additional Reading: