AKIA…

Exposed AWS Access Key? Here's how to detect and rotate it

Leaked an AWS key (AKIA…)? Attackers spin up crypto-mining on your bill in minutes. Scan free with Trust, then deactivate & delete the key in IAM.

An AWS access key (an ID starting with AKIA plus its secret) authenticates programmatic calls to your AWS account. Anyone holding the pair can do whatever that IAM user or role can — often your entire cloud infrastructure and its billing.

What an attacker can do with a leaked AWS Access Key

How AWS Access Keys get exposed

Scan your repo and live site for exposed AWS Access Keys — free

Trust checks your code, git history, and shipped JavaScript. No signup, results in about a minute.

Run a free scan →

How to rotate a leaked AWS Access Key

  1. Sign in to the IAM console → Users → select the affected user → Security credentials tab.
  2. Under Access keys, create a NEW access key (you can have two active at once) and store it safely.
  3. Update every app/service to the new key and confirm they work.
  4. On the old key, choose Actions → Deactivate (stops it immediately, but is reversible).
  5. After confirming nothing broke, choose Actions → Delete on the old key (irreversible).
  6. Review CloudTrail for unauthorized activity and check IAM for any users/keys the attacker created.

Open the AWS Access Key dashboard →