More Info:

AWS AMIs should not be shared publicly with the other AWS accounts to prevent exposing sensitive data.

Risk Level

High

Address

Security

Compliance Standards

HITRUST, SOC2, NISTCSF, PCIDSS

Triage and Remediation

Remediation

Sure, here are the steps to remediate the issue of EC2 AMIs being public in AWS using the AWS console:

  1. Login to your AWS console.

  2. Go to the EC2 dashboard.

  3. Click on the “AMIs” option in the left-hand menu.

  4. Select the AMI that you want to remediate.

  5. Click on the “Modify Image Permissions” button.

  6. In the “Modify Image Permissions” dialog box, select “Private” as the new permission.

  7. Click on the “Save” button to apply the new permission.

  8. Repeat the above steps for all the public AMIs that you want to remediate.

  9. Once you have changed the permissions for all the public AMIs, verify that they are no longer public by checking the “Permissions” column in the AMIs dashboard.

  10. If any AMIs are still public, repeat the above steps for those AMIs.

By following the above steps, you can remediate the issue of EC2 AMIs being public in AWS and ensure that your AMIs are only accessible to authorized users.

Additional Reading: