By Vero SecurityBuilt and funded by Vero Security, the AI Security Engineering platform.Read the charter

Cutting off a compromised AWS role session

Role session credentials stay valid until they expire, up to 12 hours or 1 hour when chained, so deleting a key is not enough. Deny sessions issued before now with aws:TokenIssueTime, or one session by aws:userid. aws:PrincipalArn holds the role ARN, so it blocks every session of that role. Add an explicit deny on resource policies too.

Read in this order

  1. OfficialRevoke IAM role temporary security credentials (AWS IAM User Guide)The deny policy that cuts off every session issued before a set time.
  2. OfficialDisabling permissions for temporary security credentials (AWS IAM User Guide)Per-session condition keys, for when only one session must stop.

Save your progress

We email you a sign-in link. No password.

By signing in you agree to the terms. The privacy policy explains how we use your details.

Join the AI security engineering community

Free. Roadmap updates, chapters near you, and first word when credentials open.

We’ll email you community updates. Unsubscribe anytime. By sending this you agree to the terms. The privacy policy explains how we use your details.