# Ensure Amazon Machine Images (AMIs) Are Encrypted

- Source: https://support.icompaas.com/support/solutions/articles/62000233948-ensure-amazon-machine-images-amis-are-encrypted
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [CIS AWS Compute Services Benchmark v1.1.0](https://support.icompaas.com/support/solutions/62000112682) › [AWS Compute Services Benchmark v1.1.0](https://support.icompaas.com/support/solutions/folders/62000169228)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

**Profile Applicability:**

-   **Level 1**

**Description:**  
Amazon Machine Images (AMIs) should utilize EBS encrypted snapshots to ensure that all data in the AMI is encrypted at rest. EBS (Elastic Block Store) encryption provides an additional layer of security for data stored on the disks of Amazon EC2 instances. When an AMI is created from an encrypted EBS snapshot, the AMI is also encrypted, protecting sensitive data in storage.

**Rationale:**  
Ensuring that AMIs are encrypted is crucial for protecting sensitive data and meeting security compliance requirements. Encryption of AMIs prevents unauthorized access to data at rest, ensures confidentiality, and provides enhanced data protection. Additionally, it ensures that sensitive data on instances created from these AMIs is secure. Using EBS encryption is the AWS recommended practice for securing storage volumes, and it is important to extend this security to AMIs.

**Impact:  
 Pros:**

-   Increased security of sensitive data by ensuring that it is encrypted at rest.
    
-   Compliance with security regulations that require encryption for data at rest.
    
-   Reduces the risk of data breaches or unauthorized access to EC2 instances created from unencrypted AMIs.
    
-   Simplifies auditing and compliance reporting by enforcing encryption.
    

**Cons:**

-   There may be some performance overhead associated with encryption, although AWS handles the encryption process efficiently.
    
-   Requires additional configuration and management to ensure all AMIs are encrypted.
    

**Default Value:** By default, AMIs created from unencrypted EBS snapshots will not be encrypted. It is important to configure AMIs to use encrypted snapshots, especially when they contain sensitive data.

**Pre-requisites:**

-   AWS IAM permissions to view and manage EC2 AMIs and EBS snapshots:  
    ec2:DescribeImages, ec2:CopyImage, ec2:DeregisterImage, ec2:DescribeSnapshots, ec2:CreateSnapshot  
    

**Remediation:**

**Test Plan:**

**Using AWS Console:**

1.  Log in to the AWS Management Console.
    
2.  In the left navigation pane, click Instances, then click AMIs under Images.
    
3.  For each AMI, check the Block Devices section in the Details tab.
    
    -   Confirm that the AMI’s block devices are encrypted.
        
4.  If any AMI is not encrypted, refer to the Remediation section to encrypt the AMI.
    

**Using AWS CLI:**

1.  Run the following AWS CLI command to list AMIs that are not encrypted:  
    
    aws ec2 describe-images --region us-east-1 --owner self --filter "Name=blockdevice-mapping.encrypted,Values=false" --query "Images\[\*\].\[ImageId\]"
    
2.  If the command returns any non-encrypted AMIs, note them for remediation.  
      
    

**Implementation Plan:**

**Using AWS Console:**

1.  Log in to the EC2 Console at [AWS EC2 Console](https://console.aws.amazon.com/ec2/).
    
2.  In the left pane, click AMIs under Images.
    
3.  Select the AMI that does not comply with the encryption policy.
    
4.  Click Actions and select Copy AMI.
    
    -   Destination Region: Select the region where the AMI is currently located.
        
    -   Name: Enter the new name for the AMI, following your organization’s naming convention.
        
    -   Description: Enter a description for the AMI, ensuring it complies with your image policy.
        
    -   Encryption: Select Encrypt target EBS snapshots.
        
5.  Click Copy AMI.
    
6.  Once the AMI has finished copying, verify that the new AMI is encrypted.
    
7.  Select the original AMI that does not comply and click Actions > Deregister to remove the old, non-compliant AMI.
    

**Using AWS CLI:**

1.  To copy an AMI with encrypted block devices, run:  
    
    aws ec2 copy-image --name "<New\_AMI\_Name>" --source-image-id <Image-ID> --source-region <region> --encrypted
    
2.  Once the new AMI is copied and encrypted, deregister the old, unencrypted AMI:  
    
    aws ec2 deregister-image --image-id <Image-ID>
    

**Backout Plan:**

**Using AWS Console:**

1.  If copying and encrypting the AMI causes issues, sign in to the AWS Management Console.
    
2.  Re-enable the original AMI if necessary by following the steps to copy and rename it again.
    
3.  Ensure that the re-encrypted AMI complies with the naming policy and encryption settings.
    

**Using AWS CLI:**

1\. If the encryption process disrupts services, restore the previous AMI by copying it again without encryption:  

aws ec2 copy-image --name "<Original\_AMI\_Name>" --source-image-id <Image-ID> --source-region <region>

2\. Verify that the old AMI is restored, ensuring it is re-registered correctly:  

aws ec2 describe-images --image-id <Image-ID>

**References:**

1.  [AWS EC2: AMI Encryption Details](https://aws.amazon.com/premiumsupport/knowledge-center/view-ami-snapshot-encryption-details/)
    
2.  [AWS EC2: AMI Encryption Documentation](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/AMIEncryption.html)
    
3.  [AWS CLI: copy-image](https://docs.aws.amazon.com/cli/latest/reference/ec2/copy-image.html)
    
4.  [AWS CLI: deregister-image](https://docs.aws.amazon.com/cli/latest/reference/ec2/deregister-image.html)
    

**CIS Controls:**

<table style="border:none;border-collapse:collapse;font-family:&quot;Helvetica Neue&quot;"><colgroup style="font-family:&quot;Helvetica Neue&quot;"><col style="font-family:&quot;Helvetica Neue&quot;"><col style="font-family:&quot;Helvetica Neue&quot;"><col style="font-family:&quot;Helvetica Neue&quot;"></colgroup><tbody style="font-family:&quot;Helvetica Neue&quot;"><tr style="height:38.5pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Version</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Control ID</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Control Description</span></span></span></p></td></tr><tr style="height:38.5pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">v8</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">3.11</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Encrypt sensitive data at rest, including&nbsp;EBS volumes&nbsp;used for AMIs, to prevent unauthorized access to data at rest.</span></span></span></p></td></tr><tr style="height:51.25pt;font-family:&quot;Helvetica Neue&quot;"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">v7</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">14.8</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-family:&quot;Helvetica Neue&quot;">Encrypt all sensitive information at rest using tools that require a secondary authentication mechanism to access, such as&nbsp;EBS encryption</span><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">&nbsp;for AMIs.</span></span></span></p></td></tr></tbody></table>

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
