Cis AWS Compute 2.2.1
DevOps & Securitycis-aws-compute-2.2.1Cis AWS Compute 2.2.1 is an Agent Skill for devops & security published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Ensure EBS volume encryption is enabled
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Cloud_Providers/AWS/CIS_AWS_Compute_Services_Benchmark_v1.1.0/cis-aws-compute-2.2.1/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-aws-compute-2-2-1, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Ensure EBS volume encryption is enabled
Description
Elastic Compute Cloud (EC2) supports encryption at rest when using the Elastic Block Store (EBS) service. While disabled by default, forcing encryption at EBS volume creation is supported.
Rationale
Encrypting data at rest reduces the likelihood that it is unintentionally exposed and can nullify the impact of disclosure if the encryption remains unbroken.
Impact
Enabling EBS encryption by default applies to all new volumes. Existing unencrypted volumes are not affected. This is configured per region.
Audit Procedure
Using AWS CLI
- Run:
aws --region <region> ec2 get-ebs-encryption-by-default
- Verify that
"EbsEncryptionByDefault": trueis displayed. - Review every region in-use.
Note: EBS volume encryption is configured per region.
Using AWS Console
- Login to the EC2 console using https://console.aws.amazon.com/ec2/
- Under
Account attributes, clickEBS encryption. - Verify
Always encrypt new EBS volumesdisplaysEnabled. - Review every region in-use.
Note: EBS volume encryption is configured per region.
Expected Result
The CLI should return "EbsEncryptionByDefault": true for every region in use. In the console, Always encrypt new EBS volumes should display Enabled.
Remediation
Using AWS CLI
- Run:
aws --region <region> ec2 enable-ebs-encryption-by-default
- Verify that
"EbsEncryptionByDefault": trueis displayed. - Repeat every region requiring the change.
Note: EBS volume encryption is configured per region.
Using AWS Console
- Login to the EC2 console using https://console.aws.amazon.com/ec2/
- Under
Account attributes, clickEBS encryption. - Click
Manage. - Click the
Enablecheckbox. - Click
Update EBS encryption. - Repeat for every region requiring the change.
Note: EBS volume encryption is configured per region.
Default Value
EBS encryption by default is disabled. It must be explicitly enabled per region.
References
- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html
- https://aws.amazon.com/blogs/aws/new-opt-in-to-default-encryption-for-new-ebs-volumes/
- AWS Config rule - ec2_ebs_encryption_by_default
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 3.11 Encrypt Sensitive Data at Rest | x | x | |
| v7 | 14.8 Encrypt Sensitive Information at Rest | x |
Profile
Level 1 | Automated