Cloud Security Wire
AWS Azure GCP RSS
AWS Hardening Guide low

AWS Trusted Identity Propagation Now Covers IAM Federation and Roles Anywhere: Policy and CloudTrail Guide

AWS extended trusted identity propagation to IAM federation and IAM Roles Anywhere on 24 November 2026. What AWS says it does, where it can fail open, and untested policy and CloudTrail suggestions.

By Cloud Security Wire · ·
#AWS#IAM#trusted identity propagation#IAM Roles Anywhere#OIDC federation#CloudTrail#GitHub Actions#least privilege

On 24 November 2026 (UTC; 23 November in US Pacific time) the AWS Security Blog published “Know the identity behind the role: Authorize and audit with trusted identity propagation” (authors per the blog’s RSS feed: Laura Reith, Rishi Tripathy, Songzhi Liu and Shweta Motwani). It announces that trusted identity propagation (TIP), previously available only to users arriving through IAM Identity Center, now also works for IAM federation (SAML or OIDC) and IAM Roles Anywhere. This is a product announcement, not a vulnerability report. Below we summarise what AWS says, then add suggestions of our own, which are labelled and have not been run in a live account.

The problem AWS describes

Access decisions apply to the role, and CloudTrail attributes each action to the role session. To give two users or workloads different access you either create separate roles or share one role and write policies on session attributes. AWS says the first leads to role proliferation, and that session attributes carry across role sessions only when you grant additional permissions, and the session does not record who set each attribute.

What TIP does, per AWS

  • Identity context at issuance. AWS attaches identity context from a trusted source (an external SAML/OIDC IdP, IAM Identity Center, or an X.509 certificate for Roles Anywhere) when credentials are issued. It cannot be changed for the life of the session.
  • Propagation. The context carries into a new role session when the TIP session assumes another role, and into forward access sessions (FAS) when an AWS service calls downstream on your behalf. AWS notes this applies only when the target role is in the account where the IdP is configured or elsewhere in the same AWS organization.
  • Context keys. aws:OriginIdentity/Subject, SubjectType and Issuer (plus FederatedProviderArn for federation and Roles Anywhere); aws:TransactionContext/IdentityProvider/* for optional IdP claims such as a risk score or CI/CD workflow name (IAM federation only); and aws:IdentityCenterInstanceArn / aws:IdentityStoreArn.
  • Defaults. TIP is on by default for new IAM IdPs and new Roles Anywhere profiles; existing ones must be switched on and have claims mapped. For Roles Anywhere, Subject defaults to the certificate’s Subject common name, or its URI SAN.
  • CloudTrail. userIdentity.onBehalfOf holds the origin identity and userIdentity.transactionContext holds the IdP claims. AWS’s worked example maps GitHub OIDC repository, workflow_ref and run_id so an UpdateFunctionCode event on a shared deploy role names the exact workflow run.
  • Outbound. A TIP session can call sts:GetWebIdentityToken for a signed JWT carrying the context to an external service.

Where this can go wrong

AWS lists two caveats that matter for defenders.

  1. Missing keys and IfExists. A TIP key is absent when the session has no identity context or the service does not support TIP. AWS says to use operators without IfExists (such as StringEquals) in Allow statements, because StringEqualsIfExists evaluates true when the key is missing. In a Deny, add IfExists if the Deny should also hit sessions without the key, but that also affects services that do not support TIP, so confirm support first.
  2. Cached KMS data keys. AWS says services such as Amazon SQS may reuse cached KMS data keys across sessions of the same role, so KMS does not evaluate the later session’s TIP context. Enforce TIP conditions on the resource policy (for example the S3 bucket policy), not only the KMS key policy.

AWS also notes the risk score is fixed for the session lifetime, so session duration should match data sensitivity.

Our suggestions (illustrative, untested)

AWS’s own example is an Allow in a bucket policy. A complementary guardrail, which is our idea and not from the post, is an explicit Deny so that a later, broader Allow cannot be satisfied by a session lacking the expected issuer. Test in a non-production bucket first, and check that every service touching the bucket supports TIP, since the Deny applies to unsupported services too.

{
  "Sid": "DenyDataAccessRoleWithoutExpectedIssuer",
  "Effect": "Deny",
  "Principal": {"AWS": "arn:aws:iam::111122223333:role/DataAccessRole"},
  "Action": "s3:GetObject",
  "Resource": "arn:aws:s3:::amzn-s3-demo-bucket/restricted/*",
  "Condition": {
    "StringNotEqualsIfExists": {
      "aws:OriginIdentity/Issuer": "idp.example.com"
    }
  }
}

AWS says IfExists makes the condition evaluate true when the key is absent. The IAM documentation on condition operators states the consequence for a Deny with a negated operator such as StringNotEqualsIfExists: the request is still denied even if the condition key is not present. So this Deny also catches sessions with no TIP context, and sessions from services that do not support TIP. It will also hit any other path into the same role, such as Identity Center, if the role is shared.

To find TIP-attributed activity, a starting point for CloudTrail (our sketch; lookup-events is per-Region, limited in history, and we did not test the field paths against real events):

aws cloudtrail lookup-events \
  --lookup-attributes AttributeKey=EventName,AttributeValue=UpdateFunctionCode20150331v2 \
  --max-results 50 --query 'Events[].CloudTrailEvent' --output text \
 | jq -r 'select(.userIdentity.onBehalfOf != null)
     | [.eventTime, .userIdentity.arn, .userIdentity.onBehalfOf.subject,
        (.userIdentity.transactionContext.IdentityProvider.run_id // "-")] | @tsv'

Practical checklist:

  • Inventory IAM OIDC/SAML providers and Roles Anywhere profiles; turn on TIP for existing ones and map only the claims your policies need.

What we could not verify

We opened the IAM User Guide page on condition operators to confirm the IfExists behaviour, but not the other linked IAM pages, so the supported-service list and Roles Anywhere details rest on the AWS blog post alone. We did not test any policy or command. The post reports no abuse or vulnerability.

Sources

← All Analysis Subscribe via RSS