Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Rule: RDS DB Snapshots Should Be Encrypted at Rest

This rule ensures that RDS DB snapshots are encrypted at rest to maintain data security and compliance.

RuleRDS DB snapshots should be encrypted at rest
FrameworkGeneral Data Protection Regulation (GDPR)
Severity
Medium

Rule Description

The rule mandates that all RDS DB snapshots should be encrypted at rest in order to comply with the requirements of the General Data Protection Regulation (GDPR). Encrypting the snapshots helps to protect sensitive data stored in the database and ensures its confidentiality and integrity even if the snapshots are stolen or compromised.

Troubleshooting Steps

If the RDS DB snapshots are not encrypted at rest, follow the steps below to troubleshoot and enable encryption:

  1. 1.

    Verify RDS Snapshot Encryption Status: Check whether the RDS DB snapshots are currently encrypted or not. You can do this by accessing the AWS Management Console or using the AWS Command Line Interface (CLI).

  2. 2.

    Enable RDS Snapshot Encryption: If the snapshots are not encrypted, enable encryption for all existing and future RDS DB snapshots. You can choose to either use the default AWS Key Management Service (KMS) key or a custom KMS key.

  3. 3.

    Update Snapshot Copying: In case you have enabled manual or automated snapshot copying to another AWS region, ensure that the copied snapshots are also encrypted.

Note: It is recommended to perform these steps during a maintenance window or non-peak hours to minimize any impact on RDS performance.

Necessary Codes

Here is an example of the AWS CLI command using the

modify-db-snapshot
command to enable encryption for an RDS DB snapshot:

aws rds modify-db-snapshot \
  --db-snapshot-identifier <snapshot-identifier> \
  --option-group-name <option-group-name> \
  --region <region> \
  --enable-db-snapshot-encryption \
  --db-snapshot-encryption-alias <kms-key-alias>

Replace the following placeholders:

  • <snapshot-identifier>
    : The identifier of the RDS DB snapshot.
  • <option-group-name>
    : The option group associated with the DB instance. It should have the necessary settings for enabling encryption.
  • <region>
    : The AWS region where the RDS DB snapshot is located.
  • <kms-key-alias>
    : The alias of the AWS KMS key that will be used for encrypting the snapshots.

Step-by-Step Guide for Remediation

Follow the steps below to enable encryption for RDS DB snapshots:

  1. 1.

    Step 1: Access the AWS Management Console: Log in to the AWS Management Console using your AWS account credentials.

  2. 2.

    Step 2: Open the Amazon RDS Console: Navigate to the Amazon RDS service.

  3. 3.

    Step 3: Select the Region: Choose the AWS region where your RDS DB snapshot is located.

  4. 4.

    Step 4: Choose "Snapshots": From the left-hand navigation menu, click on "Snapshots" to view all your RDS DB snapshots.

  5. 5.

    Step 5: Identify the Snapshot: Locate the RDS DB snapshot that needs encryption.

  6. 6.

    Step 6: Enable Encryption: Select the snapshot and click on the "Actions" dropdown menu. Choose "Enable encryption" to open the encryption configuration page.

  7. 7.

    Step 7: Choose Encryption Type: Select the encryption option you prefer. You can either use the default AWS KMS key or choose a custom KMS key.

  8. 8.

    Step 8: Confirm Encryption: Review the details and click on the "Enable Encryption" button to confirm the encryption process.

  9. 9.

    Step 9: Monitor Encryption Progress: Monitor the progress of the encryption process. It may take some time depending on the size of the snapshot.

  10. 10.

    Step 10: Validate Encrypted Snapshot: Once the encryption is complete, verify that the RDS DB snapshot shows as encrypted in the AWS Management Console. You can also use the CLI command mentioned earlier to confirm the encryption status.

Repeat these steps for all other RDS DB snapshots that need to be encrypted.

Conclusion

Enabling encryption for RDS DB snapshots ensures compliance with the GDPR requirements by securing sensitive data at rest. By carefully following the troubleshooting steps and the step-by-step guide for remediation, you can ensure that all your RDS DB snapshots are appropriately encrypted.

Is your System Free of Underlying Vulnerabilities?
Find Out Now