1. Resources
  2. Identity Threats
  3. Microsoft Entra ID

Exchange Hybrid and Actor Token Abuse (CVE-2025-55241)

Also known as: Actor token impersonation, CVE-2025-55241, CVE-2025-53786, Exchange hybrid service principal abuse, S2S actor tokens, Exchange hybrid impersonation

An attacker who holds the on-premises Exchange hybrid certificate signs in as the shared Exchange Online service principal and impersonates users in the cloud; a fixed flaw extended this to any tenant.

Platform
Microsoft Entra ID
Impact
Critical
Last updated
Attack difficulty
High
Detection difficulty
High
Privileges required: Specific rights or roles
Administrative access to an on-premises Exchange hybrid server, to reach the Auth Certificate's private key. The fixed CVE-2025-55241 needed only an attacker-owned tenant.
What the attacker gains
Tokens that act as any user of the tenant toward Exchange Online and SharePoint, unaffected by Conditional Access. Before the fix: Global Administrator in other tenants.
Threat groups
APT28HAFNIUMShinyHuntersTeamPCPAPT29APT33APT38APT5Ke3changLAPSUS$NIMBUS MANTICOREScattered SpiderStorm-0501VOID MANTICOREGroups that MITRE ATT&CK records using T1550.001, T1606, T1528, T1078.004.

How it works

This page covers two related things that are often mixed up. Both involve Exchange acting on behalf of a user with a service-to-service token; they differ in who can do it and whose tenant is affected.

Part 1: the shared Exchange hybrid service principal (CVE-2025-53786)

In a classic or modern Exchange hybrid deployment, on-premises Exchange needs to call Exchange Online for features such as free/busy lookups, MailTips and profile pictures. For years it did this as Exchange Online itself. The Hybrid Configuration wizard uploaded the on-premises Auth Certificate to the keyCredentials of the first-party Office 365 Exchange Online service principal (application ID 00000002-0000-0ff1-ce00-000000000000) in the customer's tenant. Whoever holds that certificate's private key can authenticate to Entra ID as that Microsoft service principal.

The private key sits in the certificate store of the on-premises Exchange servers. An attacker with administrative access to one of them can therefore sign in as Exchange Online in the organization's tenant, request service-to-service tokens, and act as any user toward the services that accept them. Microsoft tracks this as CVE-2025-53786, "Microsoft Exchange Server Hybrid Deployment Elevation of Privilege Vulnerability": administrative access on-premises becomes significant control of the organization's Exchange Online.

Microsoft's fix is architectural. Hybrid now uses a dedicated application registered in the customer's tenant, and since 31 October 2025 Exchange Web Services access through the shared service principal is permanently blocked. Certificates uploaded earlier stay on the shared service principal until the customer removes them.

Part 2: actor tokens and CVE-2025-55241

The tokens behind this are called actor tokens. Exchange Online requests them from the Access Control Service, a legacy token service, to act on behalf of users when it talks to Exchange Online, SharePoint and the legacy Azure AD Graph. The researcher who documented them, Dirk-jan Mollema, describes these properties:

  • The actor token is issued to the service and is valid for 24 hours. A claim (trustedfordelegation) marks it as allowed to impersonate.
  • To act as a user, the service wraps the actor token in a second JWT, the impersonation token, that names the user. That outer token is unsigned (alg: none). The service builds it itself, for any user, without going back to Entra ID.
  • No log is written when an actor token is issued or when an impersonation token is created or used. Conditional Access does not apply. The token cannot be revoked during its validity.

Within one tenant this is the design that Part 1 abuses. CVE-2025-55241 was a validation flaw that broke the tenant boundary: the Azure AD Graph API (graph.windows.net) did not check that the actor token came from the same tenant as the user in the impersonation token. An actor token requested in a tenant the attacker owned, wrapped in an impersonation token that named a victim tenant and one of its users, was accepted. The only inputs were the victim's tenant ID, which is public, and the user's internal identifier (netId), which could be read from tokens, brute forced because the values are sequential, or taken from the alternativeSecurityIds attribute of B2B guest objects. Impersonating a Global Administrator gave full control of the other tenant.

Microsoft fixed the service. No customer action was needed for this CVE.

Prerequisites

For the hybrid service principal abuse (your own tenant):

  • An Exchange hybrid deployment, current or past, whose Auth Certificate was uploaded to the shared Office 365 Exchange Online service principal and never removed.
  • Administrative access to an on-premises Exchange server that holds the Auth Certificate's private key.

For CVE-2025-55241 (fixed, historical):

  • Any Entra tenant under the attacker's control in which an actor token could be requested.
  • The victim's tenant ID and the netId of one user in it.
  • No account, guest object or sign-in in the victim tenant.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

The cross-tenant flaw is closed, and no exploit code for it was published. The steps below show the hybrid trust as it can still exist in a tenant, the published sequence of the fixed attack, and the clean-up.

1. Check whether hybrid certificates are still on the shared service principal

Connect-MgGraph -Scopes "Application.Read.All"

# Certificates registered on the first-party Office 365 Exchange Online service principal
Get-MgServicePrincipal -Filter "appId eq '00000002-0000-0ff1-ce00-000000000000'" `
    -Property Id, DisplayName, KeyCredentials |
    Select-Object -ExpandProperty KeyCredentials |
    Select-Object DisplayName, KeyId, StartDateTime, EndDateTime

Any unexpired entry is a credential that lets its holder sign in as Exchange Online in this tenant.

2. Locate the Auth Certificate on the Exchange server

From an elevated Exchange Management Shell on a hybrid server:

$authConfig = Get-AuthConfig
$authConfig.CurrentCertificateThumbprint
Get-ChildItem -Path Cert:\LocalMachine\My\$($authConfig.CurrentCertificateThumbprint)

An administrator of the server can use this certificate's private key. That is the whole precondition of CVE-2025-53786: the on-premises server is trusted as a cloud service identity.

3. Sign in as the service principal and impersonate a user

With the certificate, the attacker authenticates to Entra ID as the Exchange Online service principal using the client credentials flow with a certificate assertion, and requests an actor token for the target service. They then build the impersonation token for the user they want. Decoded, an impersonation token for Azure AD Graph has this shape (values replaced):

{
  "alg": "none",
  "typ": "JWT"
}
{
  "actortoken": "<signed actor token issued to the service>",
  "aud": "00000002-0000-0000-c000-000000000000/graph.windows.net@00000000-0000-0000-0000-000000000000",
  "iss": "00000002-0000-0ff1-ce00-000000000000@00000000-0000-0000-0000-000000000000",
  "nameid": "1003200000000000",
  "nii": "urn:federation:MicrosoftOnline",
  "upn": "alice@corp.example.com",
  "smtp": "alice@corp.example.com"
}

The token is presented as a bearer token to the service. For Azure AD Graph only nameid identified the user.

4. The fixed cross-tenant sequence (CVE-2025-55241)

As published by the researcher:

  1. Find the victim's tenant ID from its domain name.
  2. Find a valid netId of an ordinary user in that tenant.
  3. Build an impersonation token from an actor token of the attacker's tenant, with the victim's tenant ID and that netId.
  4. Query Azure AD Graph as that user and list the Global Administrators and their netId values.
  5. Build an impersonation token for a Global Administrator.
  6. Read or change anything in the tenant through Azure AD Graph.

Guest accounts made it chain: a compromised tenant's guest objects exposed the netId of each guest's home identity, which gave a starting user in the next tenant.

5. Remove the trust (clean-up)

After configuring the dedicated Exchange hybrid application, purge the certificates from the shared service principal with Microsoft's script:

# Create and enable the dedicated hybrid application (run on a supported Mailbox server)
.\ConfigureExchangeHybridApplication.ps1 -FullyConfigureExchangeHybridApplication

# Remove all keyCredentials from the first-party Office 365 Exchange Online service principal
.\ConfigureExchangeHybridApplication.ps1 -ResetFirstPartyServicePrincipalKeyCredentials

Re-running the Hybrid Configuration wizard with the OAuth option selected uploads the Auth Certificate to the first-party service principal again, so repeat the check in step 1 afterwards.

Impact

Through the hybrid service principal, an attacker who controls an on-premises Exchange server acts as any user of the same organization toward Exchange Online and SharePoint: reading and sending mail, opening files, and doing so for 24 hours per token with no user sign-in, no MFA and no Conditional Access evaluation. An on-premises compromise becomes a cloud compromise, in the same family as Entra Connect sync account abuse and Golden SAML.

CVE-2025-55241, while it was open, was a compromise of any tenant by any other tenant. As an impersonated Global Administrator the attacker could read every user, group, role, application, device and BitLocker key through Azure AD Graph, and write: create users, add credentials to applications as in application credential abuse, and assign roles. According to the researcher, Microsoft's internal telemetry did not detect any abuse of the vulnerability. A tenant can check its own audit logs for the write pattern described below; reads left nothing to check.

OPSEC and artifacts

  • No sign-in for the impersonated user. Nothing appears in the user's interactive or non-interactive sign-in logs, and Conditional Access is not evaluated. A missing sign-in is consistent with this technique and does not prove it.
  • No issuance log. The researcher found no log when an actor token is issued or when an impersonation token is built or used. Only the receiving resource can record the request.
  • Reads were invisible. During the CVE-2025-55241 window, reading the directory through Azure AD Graph left no entry in the victim tenant's own logs. Microsoft Graph activity logs cover Microsoft Graph only. Azure Monitor now offers an AADGraphActivityLogs table for the legacy API, which helps going forward and cannot reconstruct requests from before it was collected.
  • Writes were logged, with a mismatch. Directory changes made with an impersonation token produced audit events whose initiator shows the impersonated user's UPN together with the display name of the calling service, for example Office 365 Exchange Online. That combination is the trace.
  • Mailbox effects are elsewhere. A directory audit event says nothing about mailbox access. That evidence is in Exchange mailbox auditing for the mailbox and period in question.
  • On-premises traces. Using the Auth Certificate needs administrative access to the Exchange server, so the server's own logs (logons, certificate private key access, process creation) hold what the cloud logs lack.
  • Shared application ID. The Exchange Online application ID is the same in every tenant, while each tenant has its own service principal object. Seeing that application ID in a log does not identify which organization originated a request.

Detection

  • Service display name with a user initiator. The researcher published this query for directory changes made through actor-token impersonation. Some legitimate group operations through Exchange also match, which is why group operations are excluded:
AuditLogs
| where not(OperationName has "group")
| where not(OperationName == "Set directory feature on tenant")
| where InitiatedBy has "user"
| where InitiatedBy.user.displayName has_any ( "Office 365 Exchange Online", "Skype for Business Online", "Dataverse", "Office 365 SharePoint Online", "Microsoft Dynamics ERP")
  • Credentials on first-party service principals. A new certificate on a Microsoft service principal is the hybrid trust being created or re-created. The service principal credential rules and the Add service principal credentials activity cover it; the inventory in step 1 finds what is already there.
  • Legacy Graph requests. Where AADGraphActivityLogs is routed to a workspace, review requests by AppId, ServicePrincipalId, UserId, RequestUri and ResponseStatusCode for callers that should no longer use the legacy API.
  • Dedicated application sign-ins. After migration, the dedicated hybrid application appears under service principal sign-ins. Sign-ins from addresses other than the Exchange servers deserve a look.
  • Mailbox-wide access. Applications that hold full_access_as_app or similar permissions are covered by the mailbox-wide application access rules.

For the exposure window of CVE-2025-55241, run the audit query over the retained period before 17 July 2025 if those logs still exist, and treat the absence of read evidence as a coverage gap, not as proof that nothing was read.

Mitigation

  • Move to the dedicated Exchange hybrid application and update every Exchange server to a build that supports it. CISA's Emergency Directive 25-02 lists the same steps: inventory servers, apply the April 2025 or later hotfix updates, disconnect servers that cannot be updated, switch to the dedicated application and reset the legacy credential.
  • Run the Service Principal Clean-Up Mode of ConfigureExchangeHybridApplication.ps1, also in organizations that have retired hybrid. Verify with the inventory query that the shared service principal has no keyCredentials left.
  • Reduce the dedicated application's permissions. Where the hybrid features in use work with Microsoft Graph, run the script with -RemoveApiPermissions "EWS" to drop full_access_as_app, and restrict the application to the Exchange servers' public addresses with Conditional Access for workload identities.
  • Treat hybrid Exchange servers as Tier 0. They hold a credential for a cloud identity, in addition to their Active Directory rights described in Exchange Windows Permissions abuse. Limit who can administer them, patch them first, and decommission the last server when hybrid is no longer needed. The hybrid identity hardening guide covers the neighboring synchronization servers.
  • Retire legacy API dependencies. Find applications that still call Azure AD Graph and move them to Microsoft Graph, and route AADGraphActivityLogs, Entra audit logs and Microsoft Graph activity logs to a workspace with enough retention to investigate.
  • Do not credit Conditional Access with stopping service-to-service impersonation. Document which flows are actually evaluated by policy before relying on it.

Detection rules for this attack

Log events to collect

FAQ

Are CVE-2025-55241 and CVE-2025-53786 the same vulnerability?

No. CVE-2025-53786 is the Exchange Server hybrid deployment issue: an attacker with administrative access to an on-premises Exchange server can move into the organization's own Exchange Online, because the hybrid certificate was registered on a shared service principal. CVE-2025-55241 was a flaw in the Entra ID service: the legacy Azure AD Graph API accepted an actor-token impersonation from a different tenant. Microsoft fixed the second one on its side; the first one needs customer action.

Is CVE-2025-55241 still exploitable?

No. According to the researcher's timeline it was reported on 14 July 2025, a global fix was in production on 17 July, and on 6 August Microsoft additionally blocked actor tokens for Azure AD Graph when requested with service principal credentials. The CVE was published on 4 September 2025. Customers had nothing to patch. What remains is checking audit logs for the exposure period.

What do I have to do about the Exchange hybrid part?

Update Exchange servers to a build that supports the dedicated Exchange hybrid application, configure that application, and then run Microsoft's script in Service Principal Clean-Up Mode to remove the certificates the Hybrid Configuration wizard uploaded to the shared Office 365 Exchange Online service principal. Organizations that no longer run hybrid should run the clean-up too, because old certificates stay registered.

Why do actor tokens bypass Conditional Access and logging?

An actor token is issued to a service, not to the user being impersonated. The service then builds the impersonation token itself and does not contact Entra ID for each user, so there is no user sign-in to evaluate or record. The researcher found no log of issuance or use, and a 24 hour validity that cannot be revoked. Only the resource that receives the token can log it.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.