Azure user-assigned managed identity trusts an external OIDC issuer and has administrator-equivalent RBAC rights

Description

An Azure user-assigned managed identity has a federated identity credential that trusts an OIDC issuer associated with another Microsoft Entra tenant or a non-Entra identity provider, and its service principal has administrator-equivalent Azure RBAC rights at the tenant root, a management group, or a subscription. An attacker who can obtain a matching token from the external issuer could exchange it for an Azure access token and use the managed identity’s administrative permissions.

Remediation

  1. Verify that the federated identity credential’s issuer, subject, and audience are expected. Delete the credential if the external trust is unnecessary. See Configure a user-assigned managed identity to trust an external identity provider.
  2. Remove administrator-equivalent role assignments from the managed identity and grant only the permissions required by the workload. See Remove Azure role assignments.