OpenParable
Skip to content
← Back to skills

Cis AWS Compute 2.2.3

DevOps & Security
cis-aws-compute-2.2.3

Cis AWS Compute 2.2.3 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 snapshots are encrypted

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
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.3/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-3, 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 snapshots are encrypted

Description

Elastic Compute Cloud (EC2) supports encryption at rest when using the Elastic Block Store (EBS) service.

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

Existing unencrypted snapshots must be copied with encryption enabled. The original unencrypted snapshots should then be deleted. EBS snapshot volume encryption is configured per snapshot.

Audit Procedure

Using AWS CLI

  1. Run describe-snapshots:
aws ec2 describe-snapshots --owner-ids <account number> --filter Name=status,Values=completed --query "Snapshots[*].{ID:SnapshotId}"
  1. This will provide a list of all the snapshots associated with that account in the region.

  2. For every snapshot listed - Run describe-snapshots:

aws ec2 describe-snapshots --snapshot-id <snap-name> --query "Snapshots[*].{Encrypt:Encrypted}"
  1. If the output reads "Encrypt": true, Encryption is set on the snapshot.

If the output reads "Encrypt": false refer to the remediation below.

Note: EBS snapshot volume encryption is configured per snapshot.

Using AWS Console

  1. Login to the EC2 console using https://console.aws.amazon.com/ec2/
  2. Under Elastic Block Store, click Snapshots.
  3. Click the snapshot you want to review.
  4. Select the Description tab.
  5. Review the Encryption setting.
  6. If it reads encrypted you are all set.

If it is set to Not Encrypted refer to the remediation below.

Note: EBS snapshot volume encryption is configured per snapshot.

Expected Result

All snapshots should return "Encrypt": true from the CLI. In the console, all snapshots should show as encrypted in the Encryption field.

Remediation

Using AWS CLI

Using the snapshot ids gathered from the Audit section:

  1. Run copy-snapshot:
aws ec2 copy-snapshot --source-region <region> --source-snapshot-id <snap-id> --description "Name of the new snapshot" --encrypted
  1. This will copy the existing unencrypted snapshot and set it to encrypted. The output will show the new SnapshotId.

  2. Run describe-snapshots:

aws ec2 describe-snapshots --owner-ids <account id> --filter Name=status,Values=completed --query "Snapshots[*].{ID:SnapshotId}"

Once the new Snapshot shows in the list confirm encryption is set:

  1. Run describe-snapshots:
aws ec2 describe-snapshots --snapshot-id <snap-name> --query "Snapshots[*].{Encrypt:Encrypted}"
  1. Repeat steps 1-4 for the snapshots that need to be encrypted.

Delete snapshots that are no longer needed:

  1. Run delete-snapshot:
aws ec2 delete-snapshot --snapshot-id <snap-name>
  1. Repeat for all unencrypted snapshots that have been copied and encrypted.

Note: EBS snapshot volume encryption is configured per snapshot.

Using AWS Console

  1. Login to the EC2 console using https://console.aws.amazon.com/ec2/
  2. Under Elastic Block Store, click Snapshots.
  3. Select the snapshot you want to encrypt.
  4. Click on Actions select Copy.
Confirm `Snapshot ID`
Set the `Destination Region`
Update the `Description`
Select the check box for `Encryption`
  1. Check the box for Encrypt this snapshot.
  2. Set the Master Key.
  3. Click on Copy.
  4. Repeat steps 3-7 for the snapshots that need to be encrypted.
  5. Delete any of the unencrypted snapshots that are not longer needed.

Note: EBS snapshot volume encryption is configured per snapshot.

Default Value

By default, EBS snapshots are not encrypted. Encryption must be explicitly enabled when creating or copying snapshots.

References

  1. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html
  2. https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-snapshots.html
  3. https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/delete-snapshot.html
  4. https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/copy-snapshot.html

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v83.11 Encrypt Sensitive Data at Restxx
v714.8 Encrypt Sensitive Information at Restx

Profile

Level 1 | Automated