Can a Compromised Microsoft 365 Tenant Reach Your Active Directory?

A compromised ConnectWise app credential got an attacker into 173 Microsoft 365 tenants. In a hybrid setup, your Entra Connect sync account and a few AD settings decide whether a tenant takeover can reach your domain. Here's how to check them.

Hybrid Identity High 10 min read
PriorityHigh for hybrid shops. A tenant compromise shouldn't become a domain compromise
What decides itYour Entra Connect sync account's AD permissions and the AzureADKerberos replication policy
Who's affectedAnyone syncing AD to Entra ID, especially with password writeback or cloud Kerberos trust
FixKeep sync rights off admins and Tier 0 out of sync. Deny every admin group on AzureADKerberos

Check it now: find your sync accounts

PowerShell
Get-ADObject -LDAPFilter '(|(sAMAccountName=MSOL_*)(sAMAccountName=provAgentgMSA*))' -Properties description | Select-Object Name, description

Runs as any domain user. One MSOL_ account per Entra Connect server is normal. Anything else is worth a look.

You checked one setting. The free scan checks every core AD finding in a few minutes.

Hybrid checks like the ones in this post come with paid plans. Nothing gets installed on your domain controllers.

How your tenant reaches AD

On October 15, ConnectWise Cloud Backup's own app credential signed in to customer tenants from an address that wasn't ConnectWise's. The attacker got whatever permissions customers had already granted the app. Microsoft says they likely abused them, including Directory.ReadWrite.All. In at least one tenant, a related ConnectWise app added itself to Global Administrator. Nobody has reported on-prem AD being touched.

That's a tenant problem first. The cleanup steps are below. The question for hybrid shops is what a tenant takeover could do on-prem. These are the links that matter:

  • Entra Connect. The Entra Connect sync account lives in AD. With password hash sync it holds replication rights, which already makes it Tier 0. With password writeback, an admin reset in the Entra admin center or through Microsoft Graph gets written back to AD for synced users.
  • Entra Cloud Sync. Its agent runs as a gMSA in AD. Its scope and writeback settings are managed from the tenant. The gMSA's AD permissions are the main limit.
  • Cloud Kerberos trust. Windows Hello for Business and FIDO2 sign-in create an AzureADKerberos object in your Domain Controllers OU. Entra uses it to issue Kerberos tickets your DCs accept. A password replication policy on that object decides who that works for.

All of these are normal, supported features. What limits each one is a setting in AD.

Diagram of how a Microsoft 365 tenant reaches on-prem AD through the Entra Connect sync account, cloud Kerberos trust and sync scope
Writeback is limited by the sync account's rights. Cloud Kerberos trust is limited by its replication policy. Neither default covers delegated admins. Tap to enlarge.

Check your Entra Connect sync account and Kerberos policy

Find every Entra Connect sync account

The default Entra Connect account starts with MSOL_. Custom installs may use another name or a gMSA, and Cloud Sync runs as provAgentgMSA$. This catches the usual ones, including by description:

PowerShell
Get-ADObject -LDAPFilter '(|(sAMAccountName=MSOL_*)(sAMAccountName=provAgentgMSA*)(description=*Active Directory Connect*)(description=*Entra Connect*))' `
    -Properties sAMAccountName, description, whenCreated |
    Select-Object sAMAccountName, whenCreated, description

What to look for: one MSOL_ account per Entra Connect server, staging servers included, plus the Cloud Sync gMSA if you use it. A leftover account from a decommissioned server often still has its rights.

Check what it can do to protected accounts

Whatever sits on AdminSDHolder gets copied onto every protected account and group about every hour. Start there. Swap in your account name:

PowerShell
Import-Module ActiveDirectory
$sync = 'MSOL_0123456789ab'
$dn   = "CN=AdminSDHolder,CN=System,$((Get-ADDomain).DistinguishedName)"
(Get-Acl "AD:$dn").Access |
    Where-Object { $_.IdentityReference -like "*\$sync" } |
    Select-Object IdentityReference, AccessControlType, ActiveDirectoryRights, ObjectType

What to look for: nothing returned is what you want. ExtendedRight with object type 00299570-246d-11d0-a768-00aa006e0529 is the reset password right. GenericAll, WriteDacl or WriteOwner are worse, since the account can give itself anything. This only catches rights granted by name. Also check accounts with adminCount set to 1 that have left their protected groups. They keep the old permissions and AD stops correcting them.

Check the AzureADKerberos replication policy

If you use cloud Kerberos trust or FIDO2 sign-in for on-prem resources, this shows who Entra can issue tickets for:

PowerShell
Get-ADComputer -Filter "Name -eq 'AzureADKerberos'" `
    -Properties msDS-RevealOnDemandGroup, msDS-NeverRevealGroup |
    Select-Object @{n='Allowed';e={$_.'msDS-RevealOnDemandGroup'}}, @{n='Denied';e={$_.'msDS-NeverRevealGroup'}} |
    Format-List

What to look for: nothing returned means there's no Entra Kerberos object in this domain. It's per domain, so run it against each one with -Server. If it's there, the denied list should name the high-privilege built-in groups. In many domains it doesn't include the Denied RODC Password Replication Group, even though that group holds Domain Admins, Enterprise Admins and Schema Admins by default. Denied wins over allowed. Any admin group on the allowed list, or missing from the denied list, is the finding.

Check what's in sync scope

This one isn't in AD. In the Entra Connect wizard, open Domain and OU filtering. Any OU holding admin accounts or Tier 0 service accounts shouldn't be synced. An account that isn't in the tenant can't be reset from there.

Check your Entra Connect sync account with Insight Recon

The free scan covers every core AD finding. Paid plans add the hybrid identity checks. They read AD permissions and account attributes only, never the tenant. Several of them look straight at your Entra Connect sync account. They show what the sync account could do if writeback is on. Our hybrid identity launch post covers the same checks from the on-prem side. The ones that matter here:

  • Synchronization Account Can Reset Privileged Passwords (Critical): reads permissions on every AdminSDHolder-protected account and every DC.
  • Synchronization Principal Can Control Tier 0 Objects (Critical): follows nested groups to see whether the sync account, or anyone who controls it, can reach a Tier 0 object.
  • Synchronization Permissions Reach AdminSDHolder-Protected Objects (High): flags dangerous rights on AdminSDHolder itself.
  • AzureADKerberos Password Replication Policy Exposes Privileged Accounts (High): flags privileged accounts the allowed list covers and the denied list doesn't.
  • Synchronization Account Has Excessive AD Permissions (High): lists everything the sync account can do beyond its own object.

When data can't be fully read, these report "not assessed" instead of passing. Want to see what a finding looks like first? Here's a sample report.

See what's open in your on-prem AD.

The scan runs from a domain-joined Windows machine with a standard domain account. The free plan covers every core AD finding. Hybrid identity checks come with paid plans.

Fix Entra Connect sync account permissions and policy

Before you start

  • Know which features you use. Password hash sync needs the replication rights. Writeback needs reset password and a few related write rights on the OUs that hold synced users. Pull rights a feature needs and it breaks.
  • Test after every change. Writeback permission problems don't show up in the sync cycle. They show up in the Entra Connect server's Application log the next time someone resets a password.

Take the Entra Connect sync account off AdminSDHolder

Remove its entries on AdminSDHolder. Within about an hour, AD removes them from every protected account too:

PowerShell
dsacls "CN=AdminSDHolder,CN=System,DC=contoso,DC=com" /R "CONTOSO\MSOL_0123456789ab"

Writeback for protected accounts stops working after this. That's intended. Admins should reset their on-prem passwords on-prem.

Scope writeback to user OUs

If writeback rights were granted at the domain root, move them down to the OUs that hold users who need self-service reset. Microsoft's ADSyncConfig module can grant them on one OU with -ADobjectDN. Leave off -IncludeAdminSdHolders, which Microsoft itself says "isn't recommended." The module only adds rights. Remove the old domain-root entries by hand.

Keep Tier 0 out of sync

Use OU filtering to keep admin accounts and Tier 0 service accounts out of scope. Microsoft already says to use cloud-only accounts for Entra admin roles. Doing the reverse means your on-prem admins never exist in the tenant at all.

Tighten the AzureADKerberos policy

Never loosen it to let admins use Windows Hello or FIDO2. Microsoft warns against that because of "possible attack vectors from Microsoft Entra ID to Active Directory." Add the Denied RODC Password Replication Group to the denied list if it's missing. Then put your delegated admin groups in it. Rotate the key on your krbtgt schedule with Set-AzureADKerberosServer -RotateServerKey.

Lock down the Entra Connect sync account

Anyone who controls the sync account inherits what it can do. Run Microsoft's Set-ADSyncRestrictedPermissions against it to leave only admins and SYSTEM in control. Then manage the Entra Connect server like a domain controller, including who can sign in and what can run code on it.

ConnectWise Cloud Backup cleanup

Handle the tenant side first. Follow ConnectWise's incident page and SpecterOps' checklist. In short:

  • Disable the app. Don't delete it. Disable 506e08f9-6e9a-4da4-942b-a099a03644ae in the Entra admin center until ConnectWise confirms credentials are reset. Consider the ConnectWise and SkyKick Cloud Management apps too. Issued tokens can stay valid for up to 90 minutes.
  • Check service principal sign-ins. They're on their own tab in the sign-in logs. The default view won't show them.
  • Check for new credentials and roles. Look for secrets or certificates added to any app since October 13, apps added to directory roles and new Conditional Access exclusions. ConnectWise disabling its side doesn't undo changes in your tenant.
  • Assume your directory was read. Huntress notes Graph directory reads leave no audit trail. That includes synced on-prem details like account names, OUs and group memberships.

If anything in your tenant got Global Administrator, run the AD checks above too. A reset written back from the tenant shows up on the DC as event 4724 with the sync account as the subject, if User Account Management auditing is on. Self-service resets create the same event, so compare against normal volume.

Why the defaults aren't enough

Microsoft says the Entra Connect server "must be treated as a Tier 0 component." The defaults for the Entra Connect sync account are reasonably safe. The writeback account can't change passwords for users in protected groups. The default AzureADKerberos policy blocks the privileged built-in groups.

The gaps come from two places. Someone loosens a default to make writeback or Windows Hello work. Or an account is powerful through a delegation, like a helpdesk account that can reset passwords domain-wide or a service account with replication rights. Neither default covers those. If they're synced, nothing in AD stops the tenant from reaching them.

Cloud management tooling is the other path, and AD can't show it. If Intune, Azure Arc or Defender for Endpoint live response can run commands on a DC or your Entra Connect server, whoever controls the tenant can too. Know which of them reach Tier 0 and who can use them.

Entra Connect sync account checklist

  • Do you know every sync account in your domain, including old ones?
  • Is the Entra Connect sync account kept off AdminSDHolder and your protected accounts?
  • Are your Tier 0 accounts excluded from sync?
  • Does the AzureADKerberos denied list cover every admin group, including delegated admins?
  • Is your Entra Connect server managed like a domain controller?

Compliance mapping

FrameworkReferenceWhy it applies
NIST CSF 2.0PR.AA-05, GV.SC-07Least privilege for the sync account. Third-party risk for apps consented into your tenant.
CIS Controls v85, 6, 15Account management, access control and service provider management.
MITRE ATT&CKT1199, T1098.001, T1098.003, T1078.004Abuse of a trusted app's identity, then new cloud credentials and roles. All of it showed up in the ConnectWise incident.
Microsoft guidanceEntra Connect prerequisites, cloud Kerberos trustTreat Entra Connect as Tier 0. Don't relax the AzureADKerberos policy for privileged accounts.

Entra Connect sync account FAQ

Did the ConnectWise attacker get into on-prem Active Directory?

As of October 18, 2026, nobody has reported that. Everything confirmed so far happened in Microsoft 365 and Entra ID.

We don't use password writeback. Does this still matter?

Less for that link, but settings change and rights stick around. Clean up the Entra Connect sync account's rights either way.

Should we turn off cloud Kerberos trust?

No. It's a good way to get passwordless sign-in to on-prem resources. Make sure its denied list covers every admin group.

Does Insight Recon check the tenant too?

No. It assesses on-prem AD, including the on-prem side of hybrid identity, which is where these limits are set. For the tenant itself, use Entra's sign-in and audit logs.

Start with the free scan, then add the hybrid checks to see how far a tenant compromise could reach into AD.

The scan runs from a domain-joined Windows machine with a standard domain account. The free plan covers every core AD finding. Hybrid identity checks come with paid plans.

Not ready to scan?

AD Signal is our monthly look at what's changing in AD security and how real domains score. Read the latest report.

References