This rule ensures that EBS default encryption is enabled to secure data at rest.
Rule | EBS default encryption should be enabled |
Framework | NIST 800-53 Revision 5 |
Severity | ✔ Medium |
Rule Description:
This rule ensures that AWS Elastic Block Store (EBS) default encryption is enabled for compliance with the NIST 800-53 Revision 5 security standard. Enabling default encryption helps protect sensitive data at rest within EBS volumes. It ensures that all newly created EBS volumes are automatically encrypted using AWS Key Management Service (KMS) encryption keys.
Troubleshooting Steps:
If default encryption for EBS volumes is not enabled, follow these troubleshooting steps to remediate the issue:
Necessary Code:
There is no explicit code required to enable default encryption for EBS volumes. However, you may need to use AWS CLI commands to update the default encryption setting and verify the encryption status of your EBS volumes.
Example CLI commands are provided below.
Enable Default Encryption for EBS volumes:
$ aws ec2 modify-default-credit-specification --region <region-name> --enable-default-encryption
Verify Encryption Status of EBS volumes:
$ aws ec2 describe-volumes --region <region-name> --query "Volumes[*].{ID:VolumeId, Encrypted:Encrypted}"
Remediation Steps:
Follow these step-by-step instructions to enable default encryption for EBS volumes:
Verify Default Encryption Status:
$ aws ec2 describe-account-attributes --query "AccountAttributes[?AttributeName=='default-vpc'].AttributeValues[0].AttributeValue"
true
, default encryption is already enabled. Proceed to the next step. If it is false
, continue with the remediation steps.Enable Default Encryption:
$ aws ec2 modify-default-credit-specification --region <region-name> --enable-default-encryption
<region-name>
with the appropriate AWS region where you want to enable default encryption.true
.Verify Encryption Status of EBS volumes:
$ aws ec2 describe-volumes --region <region-name> --query "Volumes[*].{ID:VolumeId, Encrypted:Encrypted}"
<region-name>
with the appropriate AWS region.Encrypted
value as true
, default encryption is successfully enabled. Otherwise, proceed to the next step.Troubleshoot Encryption Issues:
true
, check the AWS Key Management Service (KMS) encryption key policy to ensure it allows encryption and decryption operations. Adjust the policy if necessary.By following these steps, you can ensure that default encryption is enabled for EBS volumes in accordance with NIST 800-53 Revision 5 compliance requirements.