Take over a SAML provider to assume trusting roles
Can replace the SAML provider a role trusts, forging federated logins as it.
Grants escalation on its own.
iam:UpdateSAMLProviderOn its own, iam:UpdateSAMLProvider can replace the SAML provider a role trusts, forging federated logins as it. On a wide resource scope that alone reaches a standing way back in.
Why it is dangerous
A principal can call iam:UpdateSAMLProvider to replace the SAML metadata document that the target role trusts, making attacker-minted SAML assertions valid. It then calls sts:AssumeRoleWithSAML to assume the target role directly - that STS call is authorised by the target role's trust policy (which already trusts the provider), not by any identity permission, so no secondary action is needed. If the target role is privileged this is a full federation takeover.
In MITRE ATT&CK terms this maps to T1556, Modify Authentication Process, under the persistence tactic. AWS records it in CloudTrail as UpdateSAMLProvider. The call shows up in CloudTrail but blends into normal administration, so it needs a rule to stand out. It also gives an attacker a way to keep access after the first foothold is closed, so it is worth watching even when it looks like routine administration.
Detection
UpdateSAMLProviderPrerequisites
iam:UpdateSAMLProvider on a SAML provider that at least one role trusts (same account). No identity permission is needed for the subsequent AssumeRoleWithSAML - the role's trust authorises it.
MITRE ATT&CK
T1556 · Modify Authentication ProcessTactic
Persistence
A control that would remove it: Restrict iam:UpdateSAMLProvider to break-glass admins; alarm on it (CloudTrail); pin role trust to specific SAML attributes.
Whether to apply it depends on how the permission is used in your environment, so it is a business decision rather than an automatic fix. The same permission can be load-bearing in one account and pure risk in another.
Pathbreak confirms whether this path resolves in your account, ranks it against the others by how much it opens up, and uses your threat model and business context to show which paths are worth cutting.
Questions
What does iam:UpdateSAMLProvider allow?
Can replace the SAML provider a role trusts, forging federated logins as it.
Can iam:UpdateSAMLProvider escalate privileges on its own?
Yes. Held on a broad enough resource it reaches a standing way back in with no other permission.
How is take over a SAML provider to assume trusting roles detected?
Watch for UpdateSAMLProvider in CloudTrail. The call shows up in CloudTrail but blends into normal administration, so it needs a rule to stand out.
How do you break this path?
A control that would remove it is: Restrict iam:UpdateSAMLProvider to break-glass admins; alarm on it (CloudTrail); pin role trust to specific SAML attributes. Whether to apply it depends on how the permission is used in your account, so it is a business decision rather than an automatic fix.
Which MITRE ATT&CK technique is this?
T1556, Modify Authentication Process, under the persistence tactic.
Related paths
References
- https://attack.mitre.org/techniques/T1556/
- https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html
Find this in your own account
We run a read-only scan of one AWS account and show you which of these paths exist, ranked by blast radius, with the change that breaks each one. First validated paths within the hour.