Using Shared AMIs

This section describes how to find and safely use shared AMIs. One of the easiest ways to get started with Amazon EC2 is to use a shared AMI that has the components you need and add custom content.


AMIs are launched at the user's own risk. Amazon cannot vouch for the integrity or security of AMIs shared by other users. Therefore, you should treat shared AMIs as you would any foreign code that you might consider deploying in your own data center and perform the appropriate due diligence.

Ideally, you should get the AMI ID from a trusted source (a website, another user, etc). If you do not know the source of an AMI, we recommended that you search the forums for comments on the AMI before launching it. Conversely, if you have questions or observations about a shared AMI, feel free to use the AWS forums to ask or comment.

Amazon's public images have an aliased owner and display amazon in the userId field. This allows you to find Amazon's public images easily.

[Note]Note

Users cannot alias an AMI's owner.

If you choose to launch a shared AMI, take the following minimum steps after launch to confirm the AMI is not doing anything malicious:

  1. Check the ssh authorized keys file. The only key in the file should be the key you used to launch the AMI.

  2. Check open ports and running services.

  3. Change the root password if is not randomized on startup. For more information on randomizing the root password on startup, see Disable Password-Based Logins for Root.

  4. Check if ssh allows root password logins. See Disable Password-Based Logins for Root for more information on disabling root based password logins.

  5. Check whether there are any other user accounts that might allow backdoor entry to your instance. Accounts with super user privileges are particularly dangerous.

  6. Verify that all cron jobs are legitimate.