Contribution
This post contributes a defensive correlation model for vendor application compromise in Microsoft 365 and Azure. It treats the application identity as the incident spine, then joins four states that are too weak on their own: the application exists, it authenticates from an unexpected source, it changes trust or credentials, and it reaches valuable data. The model survives IP rotation and separates tenant exposure from observed use.
It also reconciles the published hunts with Microsoft's table documentation. The vendor write-ups name tables and operations; this post adds the exact columns that join them, the licence and logging prerequisites that decide whether a quiet result means anything, and one control the incident coverage recommends that does not apply to a vendor's multi-tenant application.
The pattern
The ConnectWise Cloud Backup incident exposed a blind spot in many Microsoft 365 investigations. The attacker did not need a user's password or session cookie. They used a credential belonging to a trusted multi-tenant application, then inherited the permissions that customers had already granted to that application.
ConnectWise's advisory, first posted on 16 October 2026, said the company was investigating attempts at unauthorised access associated with the Cloud Backup environment (formerly SkyKick). On 17 October it shut off Cloud Backup application access and disabled seven application identities. A later update confirmed unauthorised access to application credentials associated with Cloud Backup. A stolen application credential can be exchanged for tokens without interactive authentication, so a response centred on user sign-ins and multifactor authentication will miss the first hop.
The published figures measure different scopes and should not be collapsed into one victim count. Microsoft Threat Intelligence said the actor attempted sign-ins to more than 2,250 tenants using the identities of multiple ConnectWise cloud applications. Huntress confirmed unauthorised sign-ins in 162 of the tenants it monitors as of 16 October. SpecterOps, quoting a later Huntress count, reported sign-in activity from 144.172.64[.]128 in nearly 1,000 Entra tenants, with roughly 300 of those sign-ins succeeding.
Huntress's timeline (all times UTC, 15 October) shows what the access was used for:
- From 01:58, service principals for ConnectWise Cloud Management apps assigned themselves directory roles, mostly Exchange Administrator, in roughly 50 monitored tenants. The requests carried the
kiota-dotnetuser agent that ConnectWise's own apps use. Huntress says this points to vendor automation but has not confirmed it, and has not tied this phase to the same operator. - Between 03:44 and 03:49, in one tenant, the Cloud Management MS Teams app added itself to Global Administrator, then added client secrets to two other applications. The new secrets were set to expire in 2028.
- Between 06:13 and 08:34, tokens were obtained from
144.172.64[.]128across tenants in sorted GUID order, a few seconds apart.
The second item is the persistence step. Revoking the vendor's credential does not remove secrets planted on other applications in the customer's tenant.
Microsoft attributes the campaign to Storm-0940, which it describes as a China-state-aligned actor, and says the actor used ARTEX, an open-source penetration testing framework that automates offensive workflows. Before the application abuse, Microsoft recorded a password spray between 10 and 14 October: more than 151,000 failed logons against 327 accounts at eight organisations, with no successful authentication observed. Huntress published its findings on 16 October, the same day ConnectWise first posted its advisory.
The role of ARTEX is operational rather than magical. It shortened the time between authentication, enumeration and privilege changes; Microsoft says some intrusions went from initial targeting to privileged cloud access in under three hours. The telemetry still consists of service-principal sign-ins, Graph requests and Entra audit events. Defenders do not need prompt logs to see those actions.
Why it matters to cloud defenders
Multi-tenant applications are an administrative trust bridge. Microsoft's identity documentation describes one application object in the vendor's home tenant, with a globally unique application ID, and a separate service principal in every tenant that consented to it. The credential lives with the vendor. The permissions live in each customer tenant.
That split has two consequences for an investigation. The application ID is the same everywhere, so it is the right key for published indicators. The service-principal object ID is local to each tenant, so it is the right key for that tenant's audit records, role assignments and grants. An inventory that records only the display name is brittle; Huntress notes that older tenants may still show these apps as SkyKick Cloud Manager.
MFA is not the compensating control here, and neither is Conditional Access. Microsoft's Conditional Access for workload identities documentation states that policy can be applied to single-tenant service principals registered in your tenant, and that third-party SaaS and multi-tenant apps are not covered. A customer cannot pin a vendor's multi-tenant application to the vendor's IP ranges with that feature. Detection and permission scope carry the weight.
The application also arrives pre-trusted. A normal risk model asks whether a new application received dangerous consent. This incident starts after consent, sometimes long after it. The useful question is whether an established application's behaviour still matches its approved purpose.
The blast radius is conditional. Presence of an affected application proves exposure, not exploitation. Microsoft makes the same point: the presence of an affected app, or a successful authentication, does not necessarily mean customer data was accessed. An audit event showing a new credential or role is stronger, but the initiator, user agent and target still need checking.
ATT&CK mapping
The closest fit for the entry point is T1199, Trusted Relationship: the actor abused access that a third-party provider already held in customer environments. Microsoft also lists T1195, Supply Chain Compromise. ATT&CK defines T1195 as manipulation of products or delivery mechanisms before the consumer receives them, which is a looser match for a stolen provider credential, so this post treats it as Microsoft's label rather than its own.
The observable initial access inside a tenant is T1078.004, Valid Accounts: Cloud Accounts. The evidence is a service-principal sign-in tied to the affected application ID and local service-principal object ID, especially from infrastructure outside the application's normal source range.
The persistence and privilege steps sit under Account Manipulation (T1098). Client secrets added to other applications are T1098.001, Additional Cloud Credentials, whose description names credentials added to service principals and applications in Entra ID. The self-assigned Global Administrator role is T1098.003, Additional Cloud Roles. They are separate actions with separate evidence. A role assignment increases authority now; a new credential creates another way back in later.
Microsoft maps the Graph reconnaissance to T1087.004, Account Discovery: Cloud Account and T1580, Cloud Infrastructure Discovery. It also lists T1528, Steal Application Access Token. ATT&CK scopes T1528 to theft of tokens, whereas the public evidence here is a stolen application credential used to request new tokens, so T1078.004 is the stronger anchor for detection.
The payoff can sit on more than one data plane. Microsoft reported bulk secret reads across multiple Azure Key Vaults, plus key enumeration and a key-unwrapping operation, which maps to T1555.006, Cloud Secrets Management Stores. Microsoft did not confirm exfiltration of mail or files in this campaign. A Graph enumeration request is not the same as successful content collection, so the detection chain should preserve response status and the target workload.
Log sources to confirm before hunting
Each of the four states depends on a log that may not be switched on. Check these first, because a query against an empty table returns the same result as a clean tenant.
| State | Sentinel or Log Analytics | Defender XDR | Prerequisite |
|---|---|---|---|
| Authenticated | AADServicePrincipalSignInLogs | EntraIdSpnSignInEvents | Entra diagnostic setting category ServicePrincipalSignInLogs; the Defender table needs Entra ID P2 |
| Changed trust | AuditLogs | - | Entra diagnostic setting category AuditLogs |
| Called Graph | MicrosoftGraphActivityLogs | GraphAPIAuditEvents | Entra ID P1 or P2 and the MicrosoftGraphActivityLogs diagnostic category |
| Read secrets | Key Vault AuditEvent resource logs | CloudKeyVaultEvents | Per-vault diagnostic setting; the Defender table needs Defender for Key Vault |
Two details matter. Microsoft's published Sentinel query reads SigninLogs, but Entra's log documentation says that category holds interactive user sign-ins and that service-principal sign-ins are a separate category. In a Log Analytics workspace, run the hunt against AADServicePrincipalSignInLogs. Second, Entra's retention reference says Graph activity log collection starts when the log category is enabled in diagnostic settings, and the data is not retained unless it is sent to storage or an analytics tool. A tenant that enabled them after 15 October has no Graph record of the incident window.
Retention is the other clock. Entra keeps audit and sign-in logs for 30 days on P1 and P2 and seven days on the free tier unless they are exported. Events from 15 October leave the 30-day window around 14 November, so export before investigating further.
Detection guidance
Start with an application response ledger. For each trusted vendor application, record the global application ID, local service-principal object ID, consented permissions, owners, credentials, expected source networks and expected Graph or workload operations. Without that baseline, an investigator can identify a strange source but cannot say whether the requested operation belongs to the product.
ConnectWise's advisory lists the seven application identities it disabled:
| Application | Application ID |
|---|---|
| Cloud Backup | 506e08f9-6e9a-4da4-942b-a099a03644ae |
| Cloud Management | 2399d300-6fca-4e6a-a686-399fefe75b83 |
| Cloud Management - MS Teams | 24205314-2b89-4e07-a2a4-579e898a5640 |
| Cloud Management - Exchange Online | b78f6a77-d4e5-46fb-87e5-d1648bd02519 |
| Cloud Management - MS Graph | 0de14c77-b9b0-4137-9360-34878a929827 |
| Cloud Management - Partner Center | 412dcf96-176d-4b3a-a1b0-4981ad66971e |
| Cloud Management - SharePoint Online | b2b55f5b-7758-4719-8d8f-88ae172e6bdb |
Microsoft's hunting queries cover three of these, so take the full list from the vendor. Huntress and SpecterOps both give the owning tenant ID as 3f9cd7a0-127a-4ed4-bf06-2f830d5616b7. Filtering on the owner tenant catches every ConnectWise-owned application, including any that a later advisory adds.
State two: did the application authenticate?
AADServicePrincipalSignInLogs
| where TimeGenerated >= datetime(2026-10-01)
| where AppOwnerTenantId == "3f9cd7a0-127a-4ed4-bf06-2f830d5616b7"
| summarize SignIns = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
by AppId, ServicePrincipalId, IPAddress, UserAgent, ResultType,
ResourceDisplayName, ServicePrincipalCredentialKeyId
Microsoft's own query starts on 13 October; its guidance says to review from at least 15 October and extend back to 1 October. Hunt the published addresses (144.172.64[.]128, 144.172.64[.]99, 144.172.64[.]60), then run the search without an IP filter. Indicators expire, and ConnectWise's advisory warns that their presence alone does not establish compromise. ServicePrincipalCredentialKeyId records which credential signed in, which matters later when checking whether a planted secret has been used. In Defender XDR the equivalent columns in EntraIdSpnSignInEvents are ApplicationId, ServicePrincipalId, IPAddress, ErrorCode and UserAgent.
State three: did it change trust?
The first high-value analytic is a service-principal sign-in followed within 30 minutes by an Entra audit event that the same service principal initiated. The audit activity reference lists the operations that matter: Add member to role, Add service principal credentials, Update application - Certificates and secrets management, Add app role assignment to service principal, Add owner to application and Add owner to service principal. Huntress observed the first two, plus Update application, in this incident.
let Vendor = "3f9cd7a0-127a-4ed4-bf06-2f830d5616b7";
let SpnSignIns = AADServicePrincipalSignInLogs
| where AppOwnerTenantId == Vendor
| project SignInTime = TimeGenerated, ServicePrincipalId, AppId, IPAddress;
AuditLogs
| where OperationName in ("Add member to role", "Add service principal credentials",
"Add app role assignment to service principal",
"Add owner to application", "Add owner to service principal")
or OperationName startswith "Update application"
| extend InitiatorSpId = tostring(InitiatedBy.app.servicePrincipalId)
| where isnotempty(InitiatorSpId)
| join kind=inner SpnSignIns on $left.InitiatorSpId == $right.ServicePrincipalId
| where TimeGenerated between (SignInTime .. SignInTime + 30m)
| project TimeGenerated, OperationName, InitiatorSpId, AppId, IPAddress, TargetResources, Result
Treat this as a starting sketch and test it against your own workspace before alerting on it. InitiatedBy is a dynamic column; for an application initiator its app property is an appIdentity object carrying appId, displayName, servicePrincipalId and servicePrincipalName. Raise severity when the initiator and the target in TargetResources are the same service principal, which is the self-assignment pattern, or when a vendor application changes credentials on a different application.
Role self-assignment alone is not proof of the attacker. In roughly 50 tenants Huntress saw it arrive with the vendor's usual kiota-dotnet user agent, while the confirmed malicious sequence used Python clients. Huntress and ConnectWise list Python-urllib/3.12 and python-requests/2.31 as low-fidelity indicators. Use the user agent and source address to rank events, and still ask the vendor to account for any directory role you did not grant.
State four: what did it reach?
Join authentication to Graph activity with the token identifier rather than the IP address. Microsoft's documented join is MicrosoftGraphActivityLogs.SignInActivityId to UniqueTokenIdentifier in the sign-in table. Keep RequestUri, RequestMethod, ResponseStatusCode, Roles, Scopes, IPAddress and UserAgent. Raise priority for successful POST, PATCH or DELETE requests to application, service-principal or role endpoints. In Defender XDR, GraphAPIAuditEvents adds a TargetWorkload column that separates Exchange from SharePoint calls.
Graph activity logs also close a gap that Huntress flags: directory reads through Graph leave no record in the Entra audit log. If the Graph category was not enabled, the tenant cannot show what was read, and the case file should say so.
For content access, Purview audit records MailItemsAccessed for mailbox reads, and FileAccessed and FileDownloaded for SharePoint and OneDrive. A backup product reads mail and files by design. The anomaly has to come from a new source, a new target, abnormal volume, or a sequence that follows a trust change.
For Azure, Microsoft's hunt over CloudKeyVaultEvents filters ActivityName of SecretGet with HttpStatusCode 200, grouped in 15-minute bins by AccountObjectId and AccountTenantId, and flags at least 20 reads across at least three vaults. Tune those values against scheduled jobs. Without Defender for Key Vault, the same evidence is in each vault's AuditEvent resource log: operationName values SecretGet, SecretList, KeyList and KeyUnwrap, with callerIpAddress and identity for the caller.
False positives and absence
False positives cluster around vendor maintenance, onboarding and legitimate credential rotation. Check change tickets and vendor maintenance windows, but do not allowlist the application forever. A valid change has a known initiator, an expected source and a bounded target.
Absence needs care. No service-principal sign-in means no observed use in the retained authentication data, not no exposure. Microsoft's post makes the same caveat about its Graph query. Before closing the case, document which logs were enabled, their retention and the earliest searchable event.
What to do now
Keep the affected applications disabled until ConnectWise gives restoration instructions that apply to your service, and do not delete them. Huntress and Microsoft both advise disabling rather than deleting, because deletion removes the consent record and the evidence. SpecterOps notes that tokens already issued can stay valid for up to 90 minutes after an app is disabled.
Export Entra service-principal sign-ins and audit records now, before the 30-day window closes on the 15 October events. Preserve Graph activity and Purview audit data for the same period.
Inventory every ConnectWise application by application ID and local service-principal object ID. Export owners, app-role assignments, delegated grants and credentials before changing them. SpecterOps reports, with a hedge, that the attackers were likely abusing permissions customers had already granted, including
Directory.ReadWrite.All; Microsoft's post names no permission, so read the grants in your own tenant.Review every credential added to any application or service principal since 13 October, the cut-off Huntress and SpecterOps use. Remove unauthorised secrets and role assignments after preserving the evidence. Rotating the vendor secret while leaving attacker-added credentials in place is an incomplete recovery.
Check the data payoff: Graph calls by workload, Purview content events, and Key Vault reads where the identity had Azure permissions. Use response status to distinguish enumeration from successful collection.
Reduce standing privilege before re-authorising. ConnectWise is restoring Microsoft 365 backup through a new application, ConnectWise Cloud Backup for M365, which each tenant must re-authorise; review what it requests. Entra app management policies can block or time-limit new password secrets, with
servicePrincipalRestrictionscovering service principals provisioned from another tenant. They block the credential change, not token issuance, so keep the behavioural correlation running after known IPs have aged out.
The durable lesson is narrow: trusted application identity is a security boundary of its own. Track what each vendor identity is allowed to do, where it normally runs and which trust changes it should never make. That turns a vendor notice into a tenant-level answer rather than a display-name search.