π AWS EBS Attached Volume is not encrypted π’
- Contextual name: π EBS Attached Volume is not encrypted π’
- ID:
/ce/ca/aws/ec2/ebs-volume-encryption
- Located in: π AWS EC2
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Similar Policiesβ
- AWS Security Hub
- [[EC2.3] Attached Amazon EBS volumes should be encrypted at-rest]([EC2.3] Attached Amazon EBS volumes should be encrypted at-rest (https://docs.aws.amazon.com/securityhub/latest/userguide/ec2-controls.html#ec2-3)]
Logicβ
- π§ prod.logic.yaml π’
- π AWS EBS Volume
- π AWS EBS Volume - object.extracts.yaml
- π§ͺ test-data.json
Descriptionβ
Descriptionβ
Ensure that all attached AWS EBS volumes are encrypted at rest using AWS-managed or customer-managed keys. Encryption provides a critical layer of data protection and should be enforced for all in-use volumes.
Rationalβ
Encrypting EBS volumes at rest helps safeguard sensitive data from unauthorized access in the event of physical compromise or internal misuse. Enforcing encryption for all attached volumes ensures that data is protected during operation and aligns with security best practices and compliance requirements.
Auditβ
This policy flags an AWS EBS Volume as
INCOMPLIANT
if theEncrypted
checkbox is set to false and the Volume is currently attached to an EC2 instance.Volumes that are not attached to any instance are marked as
INAPPLICABLE
.
Remediationβ
Remediationβ
AWS EBS does not support in-place encryption of existing unencrypted volumes. To encrypt an unencrypted volume, you must create a snapshot of the volume and then use that snapshot to create a new encrypted volume.
Optionally, you can enable encryption by default to ensure that all future EBS volumes are automatically encrypted, including those created from unencrypted snapshots.
From Command Lineβ
Enable Default Encryptionβ
This ensures that all new volumes created in the specified region are encrypted by default:
aws ec2 enable-ebs-encryption-by-default --region {{region}}
Create a Snapshot of the Unencrypted Volumeβ
aws ec2 create-snapshot \
--volume-id {{volume-id}} \
--description "{{Snapshot description}}"Wait until the snapshot status is
completed
before proceeding.Create a New Encrypted Volume from the Snapshotβ
aws ec2 create-volume
--snapshot-id {{snapshot-id}}
--availability-zone {{us-east-1a}}
--encrypted