Aqua CSPM

Encrypted AMI

Quick Info

Plugin TitleEncrypted AMI
CloudAWS
CategoryEC2
DescriptionEnsures EBS-backed AMIs are configured to use encryption
More InfoAMIs with unencrypted data volumes can be used to launch unencrypted instances that place data at risk.
AWS Linkhttps://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html
Recommended ActionEnsure all AMIs have encrypted EBS volumes.

Detailed Remediation Steps

  1. Log into the AWS Management Console.
  2. Select the “Services” option and search for EC2.
  3. Scroll down the left navigation panel and choose “AMIs” under “Images”.
  4. Select the “AMI” that needs to be verified and under “Details” tab copy the “Snapshot ID” from the “Block Devices”.
  5. Scroll down the left navigation panel and choose “Snapshots” under “Elastic Block Store”.
  6. Click inside the “Filter by tags and attributes or search by keyword” and from the dropdown menu choose “Snapshot ID” and paste the “Snapshot ID”.
  7. Scroll down the “Description” tab and check “Encryption” value. If the “Encryption” value is set to “Not Encrypted” then the selected “AMI” is not encrypted.
  8. Repeat steps number 2 - 7 to verify other AMIs.
  9. Scroll down the left navigation panel and choose “AMIs” and select the “AMI” that needs to be encrypted.
  10. Click on the “Actions” button at the top and click on the “Copy AMI” option.
  11. In the “Copy AMI,” dialog box select the “Destination region” from the dropdown menu and click on the “Encryption” checkbox to “Encrypt target EBS snapshots” and choose the “Master Key” from the dropdown and click on the “Copy AMI” button.
  12. Select the new “Encrypted AMI” and click on the “Launch” button to create a new EC2 instance with encrypted “EBS volume”.
  13. Configure the “Instance Type”, “Configure Instance Details”, “Add Storage”, “Security Group” as per the requirements and click on the “Review and Launch” button to create a new “EC2 Instance” backed by encrypted “EBS Volume”.
  14. Repeat steps number 9 - 13 to create an “EC2 Instance” from “Encrypted AMI”.