This rule ensures that RDS database snapshots are encrypted at rest for security reasons.
Rule | RDS DB snapshots should be encrypted at rest |
Framework | NIST 800-53 Revision 5 |
Severity | ✔ Medium |
Rule Description
This rule requires that all Amazon RDS (Relational Database Service) DB snapshots are encrypted at rest in order to comply with the NIST 800-53 Revision 5 security standard. Encryption at rest means that the data stored in the snapshot is protected by encryption algorithms, making it unreadable without the decryption key.
Troubleshooting Steps
If RDS DB snapshots are not encrypted at rest, follow these troubleshooting steps:
Check the default encryption setting for your RDS instance or snapshot:
Confirm whether encryption is enabled for your RDS instance:
Verify the KMS (Key Management Service) key used for encryption:
Ensure that all existing unencrypted DB snapshots are encrypted:
Necessary Codes
If you encounter the issue of RDS DB snapshots not being encrypted at rest, you can use the following AWS CLI command:
aws rds modify-db-snapshot --db-snapshot-identifier YOUR_SNAPSHOT_IDENTIFIER --option-group-name "default:your-option-group" --storage-encrypted
Replace
YOUR_SNAPSHOT_IDENTIFIER
with the actual identifier of the DB snapshot you want to modify. This command will enable encryption for the specified snapshot.Step-by-Step Guide for Remediation
Follow these steps to remediate the issue of RDS DB snapshots not being encrypted at rest:
Log in to the AWS Management Console.
Open the Amazon RDS service.
Select "Snapshots" from the left-hand navigation menu.
Identify the DB snapshot that needs encryption and make a note of its identifier.
Open the AWS Command Line Interface (CLI) or use the AWS CLI online shell.
Execute the following command to modify the DB snapshot and enable encryption:
aws rds modify-db-snapshot --db-snapshot-identifier YOUR_SNAPSHOT_IDENTIFIER --option-group-name "default:your-option-group" --storage-encrypted
Replace
YOUR_SNAPSHOT_IDENTIFIER
with the actual identifier of the DB snapshot you want to modify.aws rds describe-db-snapshots --db-snapshot-identifier YOUR_SNAPSHOT_IDENTIFIER
Verify that the DB snapshot is now encrypted by checking its encryption status.
Repeat these steps for any other DB snapshots that need to be encrypted at rest.
By following these steps, you will ensure that all RDS DB snapshots are encrypted at rest in compliance with the NIST 800-53 Revision 5 security standard.