Prior to the change, an “AAD Connector” account would be created upon Entra Connect sync install. Upon creation, a randomized password would be generated and set for the connector account. The AAD Connector account was a user principal that would be assigned a special sync role, and it would authenticate just like any old user. You may have seen these before; they look like this:
In this instance, ENTRACONNECT is the hostname on which the agent is running. There are a wide variety of attack paths that can stem from compromising this account, so it is a very advantageous target for attackers.
Old Attacker Tradecraft
Thanks to AADInternals, it was simple to obtain the sync password of the AAD Connector Account used to import and export data from Entra ID. Some decryption steps are documented here, but that mostly focuses on the on-premises accounts. If you are an AADInternals user, you would need to impersonate the context of the Entra Connect sync account and run the command:
Get-AADIntSyncCredentials
And that’s it! You could use your creds to do all sorts of sync mischief. Under the hood, the ADSync service account would connect to a SQL database where it would obtain a key to decrypt an “AAD configuration” blob. The plaintext password of the AAD Connector Account (Connects to Entra ID) would be in that blob. If an attacker got privileged access to a host running Entra Connect Sync, they could obtain this plaintext password and authenticate off-host, conditional access policies (CAPs) permitting. The theft of such a credential would have a huge impact on any organization, so I presume that Microsoft moved over to an application registration to reduce such a risk.
The Client Credentials Flow
If you are new to Entra ID, you can read how the Client Credentials flow works here. In a nutshell, an application registration can authenticate as itself utilizing the app roles assigned to it. To authenticate and obtain access tokens, it needs credentials provisioned to it. These credential types aren’t exclusive, and an application can have multiple. They can be in the form of:
Secrets (plaintext password)
Certificates
Federated Credentials
If the application uses a certificate, it will sign an attestation when authenticating to obtain an access token. Here is an example:
POST /{tenant}/oauth2/v2.0/token HTTP/1.1 // Line breaks for clarity
Host: login.microsoftonline.com:443
Content-Type: application/x-www-form-urlencoded
scope=https%3A%2F%2Fgraph.microsoft.com%2F.default
&client_id=11112222-bbbb-3333-cccc-4444dddd5555
&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer
&client_assertion=eyJhbGciOiJSUzI1NiIsIng1dCI6Imd4OHRHeXN5amNScUtqRlBuZDdSRnd2d1pJMCJ9.eyJ{a lot of characters here}M8U3bSUKKJDEg
&grant_type=client_credentials
How It Works Now
The new Entra Connect Sync agent moved from a “user” centric authentication mechanism to an app registration, which uses the client credentials flow. Since app registrations support certificate authentication, a self-signed certificate is generated on install and saved in the NGC Crypto Provider store. The installer will use the login information you provided (which must be a Global Administrator or Hybrid Identity Administrator) to create a new application registration with the self-signed certificate as an authentication certificate. Once Entra Connect sync completes installation, an application will exist in Entra ID that looks like this:
And the configured app roles:
New Tradecraft
In a perfect world, an attacker could no longer dump plaintext credentials (because there are none) and the private key that corresponds to the certificate is sitting on a TPM. It would appear that any AD Connector account abuses must be performed on-host from here on out, forcing an attacker to persist on a Tier Zero asset. If there is no TPM support, we may be able to export the certificate private key, but I don’t want to rely on that. To the red teamer, it may seem all is lost–but fret not; there is still hope.
After examining the .NET assemblies provided in the new release, it appeared that a graph token of a Global Administrator or Hybrid Identity Administrator was not required to add a new key to the application registration.
This came off as strange because the application was not provisioned with either Application.ReadWrite.All or Application.ReadWrite.OwnedBy. Let’s take a look at the decompiled code in Microsoft.Azure.ActiveDirectory.AdsyncManagement.Server:
if (!string.IsNullOrEmpty(graphToken))
{
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(“Bearer”, graphToken);
string text2;
if (!ServicePrincipalHelper.CheckUserRole(azureInstanceName, httpClient, out text2))
{
Tracer.TraceError(text2, Array.Empty
BRIEF.TXTthe summary your agent would have read · you got the real thing
Microsoft changed how the Entra Connect Sync agent authenticates to Entra ID: the user-style AAD Connector account with an exportable plaintext password was replaced by an application registration that authenticates with a self-signed certificate via the OAuth client credentials flow. The post shows that the old AADInternals credential-dump tradecraft no longer works, but an attacker with privileged access on the Entra Connect host can still use the existing certificate to obtain a Graph token and a proof-of-possession assertion and register their own key on the application, gaining persistent off-host access with no app-role permissions required. It also argues the change widens the Entra-side attack surface, since Application and Cloud Application Administrators can now add credentials to the sync application without breaking sync.
Entra Connect Sync moved from a user-centric AAD Connector account (random password, special sync role) to an application registration that authenticates via the OAuth 2.0 client credentials flow using a self-signed certificate generated at install and stored in the NGC Crypto Provider store.
The old tradecraft of running AADInternals Get-AADIntSyncCredentials in the context of the ADSync service account to recover the plaintext AAD Connector password no longer applies because there is no plaintext credential to dump.
The decompiled Microsoft.Azure.ActiveDirectory.AdsyncManagement.Server assembly shows UpdateADSyncApplicationKey can add a new key to the sync application without a Global Administrator or Hybrid Identity Administrator Graph token, using only the existing certificate.
Per Microsoft Graph application addKey documentation, an application that can sign a proof-of-possession (POP) assertion with an existing key can add a new key credential to itself without Application.ReadWrite.All or Application.ReadWrite.OwnedBy.
The author's SharpECUtils (ECUtilities) tooling obtains a Graph access token and POP assertion from the on-host certificate and registers an attacker-controlled certificate on the Entra Connect application registration, giving persistent off-host access even when the original private key is TPM-protected.
Previously only Global Administrator and Hybrid Identity Administrator were viable paths to sync-account compromise (Privileged Authentication Administrator password resets would break sync); now Application Administrator and Cloud Application Administrator can add credentials without interrupting sync, and Conditional Access typically does not apply to service principals.
Because the normal UpdateADSyncApplicationKey flow removes the old key, more than one certificate on the Entra Connect application registration is a strong indicator of compromise, and key additions appear in Entra AuditLogs under activities such as 'Add key credential', 'Update application', and 'Add service principal credentials'.
▶ Legacy: dump the AAD Connector account password on the Entra Connect hostT1555?T1078.004?
Impersonate the ADSync service account context on the host
Recover the decryption key and AAD configuration blob from the ADSync database
Extract the plaintext AAD Connector account password
Authenticate to Entra ID as the sync account from off-host
⇒ Off-host authentication as the Entra sync account, enabling sync-based attacks (Conditional Access permitting). No longer possible after Microsoft's change.
▶ Persist on the Entra Connect Sync application by adding an attacker key with a POP assertionT1098.001?T1550.001?
Identify the existing certificate credential on the host
Obtain a Graph access token as the sync application using the installed certificate
Generate a proof-of-possession assertion with the installed certificate
Generate an attacker-controlled certificate and key
Register the new certificate on the sync application registration via Graph addKey
Authenticate off-host as the sync application with the attacker key
⇒ Persistent, off-host access to the Entra Connect Sync application registration without any app-role permissions, even if the original private key is TPM-protected.
▶ Add credentials to the sync application from Entra application-management rolesT1098.001?
Locate the Entra Connect Sync application registration in the tenant
Add a new credential to the application without removing the existing one
Authenticate as the sync application with the new credential
⇒ Control of the sync application without interrupting normal sync operation; broader attack surface than the legacy password-reset path, and Conditional Access typically does not apply to service principals.
Microsoft changed Entra Connect Sync to authenticate with an application identity (application registration with a self-signed certificate) instead of the AAD Connector user account; the post (June 9, 2025) describes this as a brand-new update not yet expected in the wild.
AADInternals Get-AADIntSyncCredentials no longer yields usable sync credentials on the new agent.