Skip to main content
Five Steps for Cloud Compliance Readiness·A practical playbook for security teamsDownload
CIS Amazon Web Services Foundations v7.0.0 · 3.2.1

RDS database instances should be encrypted at rest

  • Level 1

This check looks at every Amazon RDS database instance in the accounts in scope and whether storage encryption is switched on. The safe setting is encryption at rest enabled on each instance, so storage, logs, backups and snapshots are protected with a KMS key.

Why it matters

Without encryption at rest, anyone who gets hold of the underlying storage, a backup or a snapshot can read the data in it. Amazon RDS encryption covers the instance storage, its logs, automated backups, read replicas and snapshots, and it uses AWS KMS keys. Amazon documents that clients need no changes to use it, so the main cost of turning it on is the migration work for an instance that already exists (Amazon RDS documentation).

A database holding customer records, credentials or business data is the usual target of this setting, so it is worth checking every instance, including old test and staging databases that were created before the team made encryption a habit.

How to check it yourself

In the AWS console open RDS, choose Databases, open an instance and look at the Configuration tab. Under Storage the Encryption value reads Enabled or Not enabled.

To list every instance in a region with a read-only command, run this on a test account first:

aws rds describe-db-instances --region eu-west-1 \
  --query "DBInstances[].{Id:DBInstanceIdentifier,Encrypted:StorageEncrypted}" \
  --output table

Repeat for each region you use. Any row showing False fails the check.

How to fix it

An existing unencrypted instance cannot be switched to encrypted in place. According to the Amazon documentation you encrypt a copy of a snapshot and restore from it:

  • Create a manual snapshot of the instance (console: Actions > Take snapshot).
  • Copy the snapshot and tick Enable encryption, choosing a KMS key.
  • Restore a new instance from the encrypted copy, then point your applications at the new endpoint.
  • Delete the old unencrypted instance and its unencrypted snapshots once you have confirmed the new one works.
aws rds create-db-snapshot --db-instance-identifier mydb --db-snapshot-identifier mydb-pre-encrypt
aws rds copy-db-snapshot --source-db-snapshot-identifier mydb-pre-encrypt \
  --target-db-snapshot-identifier mydb-encrypted --kms-key-id alias/aws/rds
aws rds restore-db-instance-from-db-snapshot --db-instance-identifier mydb-new \
  --db-snapshot-identifier mydb-encrypted

Amazon also describes a blue/green deployment as a way to encrypt an unencrypted instance. ConfigCobra itself only reads your account and never makes these changes; the steps above are yours to run, ideally first in a non-production account.

What changes when you fix it

The encrypted copy is a new instance with a new endpoint name, so applications, connection strings and any DNS aliases that point at the old one must be updated. Writes made after you take the snapshot are not in the copy, so plan a short cut-over window and stop writes while you switch.

Read replicas of the old instance do not carry over: a replica must match the encryption state of its source, so recreate them from the new instance. The KMS key is also a new dependency. Amazon notes that disabling the key makes the instance inaccessible, so the people who manage KMS keys should know that this database now relies on one, and the instance's own key cannot be changed later without another snapshot copy.

Once running, Amazon describes the performance impact as minimal. Users of the application should notice nothing beyond the cut-over.

Included in

BenchmarkCIS IDProfile
CIS Amazon Web Services Foundations v7.0.03.2.1Level 1

Check this on your AWS

ConfigCobra runs this check with every other control of the CIS Amazon Web Services Benchmarks, read-only.

Get in touch

Let's talk.

Whether you're evaluating ConfigCobra, running an audit, or managing a client fleet — we respond within one business day.

Free trial