More Info:
Ensure EBS volumes are encrypted by default in AWS AccountRisk Level
HighAddress
SecurityCompliance Standards
- APRA CPS 234 (Australia)
- AWS Startup Security Baseline
- AWS Well Architected Framework
- BSI C5 (Germany)
- Brazil LGPD
- CCPA / CPRA (California)
- CIS AWS
- CIS Critical Security Controls v8
- CMMC 2.0
- CSA Cloud Controls Matrix v4
- Cloudanix Best Practice
- DPDPA
- Digital Operational Resilience Act (EU)
- GDPR
- HITRUST CSF
- ISO/IEC 27017
- ISO/IEC 27018
- ISO/IEC 27701
- KSA PDPL
- MAS Technology Risk Management (Singapore)
- MITRE ATT&CK (Cloud)
- NIS2 Directive
- NIST SP 800-171
- NYDFS 23 NYCRR 500
- PCI
- Reserve Bank of India (RBI) Cyber Security Framework
- SOC2
- SWIFT Customer Security Controls Framework
- Sarbanes-Oxley IT General Controls
- Securities and Exchange Board of India (SEBI) - Cloud Security Adoption Framework
- UK NCSC Cyber Assessment Framework
Triage and Remediation
- Remediation
Remediation
Using Console
Using Console
- Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
- From the navigation bar, select the Region.
- From the navigation pane, select EC2 Dashboard.
- In the upper-right corner of the page, choose Account Attributes, Data protection and security.
- Choose Manage.
- Select Enable. You keep the AWS managed key with the alias alias/aws/ebs created on your behalf as the default encryption key, or choose a symmetric customer managed encryption key.
- Choose Update EBS encryption.
Using CLI
Using CLI
- To view the encryption by default setting
a. For a specific Region
b.For all Regions in your account
- To enable encryption by default
a. For a specific Region
b. For all Regions in your account
Using Python
Using Python
To enable encryption by default for a region using Python, you can use the Replace
boto3 library to interact with AWS resources. Here’s a Python script equivalent to the steps mentioned:'your-region' with the AWS region where you want to enable default encryption. You can find a list of AWS region codes here.Make sure you have appropriate AWS credentials configured either through environment variables, AWS CLI configuration, or IAM roles assigned to your EC2 instance if you’re running this script on an EC2 instance.Using Terraform
Using Terraform
aws ec2 enable-ebs-encryption-by-default for the configured region: it is regional, only affects new volumes and snapshots, and does not retroactively encrypt existing volumes (which must be handled manually as described in the warning).terraform plan should show creation or update of aws_ebs_encryption_by_default.this with enabled changing to true.
