I see resources that I don’t remember creating in the AWS Management Console, or I received a notification that my AWS resources or account may be compromised. What should I do?

If you suspect that your account has been compromised, or if you have received a notification from AWS that the account has been compromised, perform the following tasks:

Change your AWS root account password and the passwords of any IAM users

To change your root AWS password, see Changing the AWS Account Root User Password.

To change the password of an IAM user, see Managing Passwords for IAM Users.

It’s a best practice to change your passwords on a regular basis to avoid unauthorized use of your account. For more information, see the AWS Security Best Practices whitepaper.

Delete or rotate all AWS access keys and IAM users

If you find AWS access keys that you no longer need or didn’t create, delete the access key.

If your application currently uses an access key, replace the key with a new one:

  1. Create a second key and modify your application to use the new key.
  2. Disable (but do not delete) the first key.
  3. If there are any problems with your application, reactivate the key temporarily. When your application is fully functional and the first key is in the disabled state, delete the first key.
  4. Delete any IAM users you didn't create.

Treat AWS access keys the same way you would treat an account password:

For AWS security best practices, see the AWS Security Best Practices whitepaper.

Delete any unrecognized or unauthorized resources

Sign in to your AWS account and check that all the resources on your account are resources that you launched. Make sure to check all AWS Regions, even regions in which you’ve never launched AWS resources. Pay special attention to the following:

If you’re not sure how to delete a resource associated with a particular AWS service, find the service's documentation at AWS Documentation.

Contact AWS Support

If you received correspondence from AWS about potential issues with your account, sign in to the AWS Support Center and respond to the notification with any information AWS Support requested from you.

If you can't sign in to your account, use the Contact Us form to request help from AWS Support.

If you have any additional questions or concerns, but didn’t receive a notification, create a new AWS support case in the AWS Support Center.

Note: Do not include potentially sensitive information in your correspondence, including full AWS access keys, passwords, or credit card information.

Use AWS Git projects to scan for evidence of compromise

AWS offers Git projects you can install that can help you protect your account:

  • Git Secrets can scan merges, commits, and commit messages for secret information (e.g. access keys). If it detects prohibited regular expressions, it can reject those commits from being posted to public repositories.
  • The AWS Health and AWS Trusted Advisor Exposed Keys CloudWatch Event Monitor can help you use AWS Step Functions and AWS Lambda to generate Amazon CloudWatch Events from AWS Health or by Trusted Advisor. If there is evidence that your access keys have been compromised, the projects can help you automatically detect, log, and mitigate the event.

Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2016-10-26

Updated: 2018-06-29