Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Rule: S3 Bucket Default Encryption with KMS

Check if S3 bucket default encryption is enabled with KMS.

RuleS3 bucket default encryption should be enabled with KMS
FrameworkCISA-cyber-essentials
Severity
Medium

Rule: S3 Bucket Default Encryption with KMS for CISA-Cyber Essentials

Description:

The S3 bucket default encryption with Key Management Service (KMS) rule ensures that any new objects uploaded to an S3 bucket are automatically encrypted using KMS. This rule helps to protect sensitive data and meet compliance requirements, specifically for CISA-Cyber Essentials.

Troubleshooting Steps:

  1. 1.
    Verify that you have the necessary AWS permissions to configure default encryption for S3 buckets.
  2. 2.
    Check if an S3 bucket already exists that does not have default encryption enabled with KMS. If so, follow the remediation steps to enable the default encryption.

Remediation:

Step 1: Enable Default Encryption for an Existing S3 Bucket:

  1. 1.
    Identify the existing S3 bucket that needs to have default encryption enabled with KMS.
  2. 2.
    Open the AWS Management Console.
  3. 3.
    Navigate to the S3 service.
  4. 4.
    Select the desired bucket from the list.
  5. 5.
    Click on the "Properties" tab.
  6. 6.
    Scroll down to the "Default encryption" section and click on the "Edit" button.
  7. 7.
    Select the "Enable default encryption" checkbox.
  8. 8.
    Choose "Amazon S3 Key Management Service (S3 KMS)" as the encryption type.
  9. 9.
    Select the desired KMS key from the drop-down menu.
  10. 10.
    Click on the "Save changes" button to enable default encryption with KMS for the selected S3 bucket.

Step 2: Enable Default Encryption for New S3 Buckets (AWS CLI):

  1. 1.
    Install and configure the AWS CLI on your local machine (if not already done).
  2. 2.
    Open a terminal or command prompt.
  3. 3.
    Run the following command to enable default encryption with KMS for new S3 buckets:
aws s3api put-bucket-encryption --bucket <bucket-name> --server-side-encryption-configuration '{"Rules": [{"ApplyServerSideEncryptionByDefault": {"SSEAlgorithm": "aws:kms"}}]}'

Replace

<bucket-name>
with the name of the new S3 bucket you want to enable default encryption for.

Additional Notes:

  • By enabling default encryption with KMS for S3 buckets, you ensure that all new objects uploaded to those buckets are automatically encrypted.
  • Using KMS for encryption provides the benefits of centralized key management and fine-grained access control to encryption keys.
  • Regularly audit your S3 buckets to ensure compliance with the default encryption rule and address any non-compliant buckets.

Please note that SEO optimization is a continuous process and may require additional steps specific to your website content and target keywords.

Is your System Free of Underlying Vulnerabilities?
Find Out Now