Free tool
Which of your IAM roles can the wrong account assume?
Paste the output of aws iam list-roles or aws iam get-role. It runs in your browser. Nothing is uploaded, and there is no sign-up.
aws iam list-roles --output jsonPaste the JSON here
Two rules only. A role that anyone in any AWS account can assume (the principal is *, with no condition), and a role that trusts another account without an sts:ExternalId condition. AWS says an external ID is optional: it matters when the other account belongs to a vendor or another third party, and not when it is your own. You can paste one role from aws iam get-role or a bare trust policy too, but then the page cannot tell which account owns the role. An ExternalId only counts when a StringEquals, StringEqualsIgnoreCase or StringLike condition (or ForAnyValue: of those) names a fixed value: Null, Not operators, wildcards and ForAllValues do not enforce one. It does not read what a role is allowed to do, only who can assume it. OpsAgent runs the same check every night on connected accounts, once their read role is on the current template.
AWS on the external ID and on the Principal element. To change a trust policy, run aws iam update-assume-role-policy.
Get your ops teammate.
Start a 14-day free trial. Card required, cancel any time.
Start free trial