Documentation
README
Ensure Only Approved Amazon Machine Images (AMIs) are Used
Description
Ensure that all base AMIs utilized are approved for use by your organization.
Rationale
An approved AMI is a base EC2 machine image that is a pre-configured OS configured to run your application. Using approved AMIs helps enforce consistency and security.
Impact
Instances running on unapproved AMIs may need to be replaced with instances built from approved AMIs, which could cause temporary service disruption.
Audit Procedure
Using AWS CLI
No specific CLI audit command is provided for this control. Use the console method to manually verify AMI approval status.
Using AWS Console
- Login to the EC2 console at https://console.aws.amazon.com/ec2/.
- In the left pane click on
Images. - Then choose
AMIs. - Confirm that
Owned by meis selected. - Review the list of AMIs.
- Confirm that the AMIs listed are all approved for use.
- In the left pane click on
Instances. - Then choose
Instances. - Select the EC2 instance for review.
- In the Details tab review:
AMI Name
AMI location
- Confirm that the AMI name matches an approved AMI and the AMI location is within your account.
- Repeat steps 9 - 11 to verify the AMI is approved.
Repeat the process for all other regions. If any of the AMIs are not approved refer to the remediation below.
Expected Result
All EC2 instances should be running on organization-approved AMIs. The AMI Name and AMI location should match entries in the organization's approved AMI list.
Remediation
Using AWS CLI
No specific CLI remediation command is provided. Use the console method below.
Using AWS Console
Remove unauthorized AMIs:
- Login to the EC2 console at https://console.aws.amazon.com/ec2/.
- In the left pane click on
Images. - Then choose
AMIs. - Confirm that
Owned by meis selected. - Review the list of AMIs.
- Confirm that the AMIs listed are all approved for use.
- If an AMI is listed that is not approved select it.
- Click on
Actionsand chooseDeregister.
After all unauthorized AMIs have been De-registered review all EC2 instances:
- Click on
Instances. - Then choose
Instances. - Select the
EC2 instancefor review. - In the
Detailstab review:
AMI Name
AMI location
- If this information is listed as not available this instance was built with an unauthorized AMI.
- Follow organization steps to secure this instance and replace it with an instance built from an approved AMI if applicable.
- Repeat steps 3 - 6 to verify all instance have been created with approved AMIs.
Repeat the process for all other regions.
Default Value
AWS does not enforce any default AMI approval process. Any AMI can be used to launch instances.
References
No specific references provided in the benchmark for this control.
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 1.1 Establish and Maintain Detailed Enterprise Asset Inventory | x | x | x |
| v7 | 1.4 Maintain Detailed Asset Inventory | x | x | x |
Profile
Level 1 | Manual