The call came in on a Tuesday, which is how these things always seem to go. One of our MSP’s tools had gone quiet, then loud, then a managed detection alert fired in a customer tenant we hadn’t touched in weeks. No failed sign-ins. No impossible-travel flags. No MFA prompts getting hammered. Just a service principal reading mail it had no business reading, at 3am, from an IP none of us recognised.
That was the moment it clicked for me. We’d spent two years turning the front door into a bank vault, phishing-resistant MFA, Conditional Access everywhere, number matching, the works. And the intruder had come in through the side gate that the contractor propped open years ago, because the contractor needed it to do their job.
The side gate, in this case, was an application identity.
What we were actually looking at
Let me be straight about what you’re reading, because my editor was straight with me. That Tuesday is a composite. I’ve stitched it together from Microsoft’s public disclosure and more service-principal cleanups than I’d care to admit to, the timeline is collapsed and the 3am alert is a teaching device. But the shape is exactly what Microsoft Security described, and the cleanup that follows is real work, run against tenants I actually look after.
Here’s the disclosure itself. On 21 October 2026, Microsoft Security published analysis of a nation-state threat actor it tracks as Storm-0940, which, according to Microsoft researchers, used an agentic AI framework it refers to as ARTEX to accelerate a supply chain compromise of ConnectWise ScreenConnect. Microsoft reports that the compromise let the actor abuse application credentials across hundreds of Microsoft 365 and Entra ID environments, pivoting from a single compromised vendor into downstream customer tenants.
I want to be careful here, because the brief my editor handed me was blunt about it and she’s right. Microsoft has not named a country. I’m not going to either. Microsoft also hasn’t published a replication guide for ARTEX, and neither will I, what matters to people like us isn’t how the AI sped up reconnaissance, it’s that it did, and that the human-scale assumptions we build detections around no longer hold. When Microsoft says a campaign moved faster than a human team could plausibly move, believe them and adjust your clock.
The important thing, and the part that would keep me up: the AI is the accelerant, not the technique. The actual technique, compromise a vendor, inherit the trust that vendor’s customers already granted it, is old. We’ve seen it before. What changed is the speed and the breadth. One vendor, one set of over-privileged app registrations, and suddenly the blast radius is every tenant that ever clicked “Accept” on a consent screen.
The analogy I keep reaching for
When I walk app owners through this, and it’s always app owners, not identity engineers, who ask why the attacker didn’t need anyone’s password, here’s the mental model I hand them.
Think of your tenant as an apartment building. Every user has a key to their own flat, that’s their credential, and MFA is the deadbolt. We’ve gotten good at deadbolts. But the building also hired a cleaning company years ago, and you gave that company a master key so they could get into every flat on schedule. That master key is a service principal, an application’s identity in Entra ID, with its own secrets and certificates, consented to a pile of Microsoft Graph permissions like Mail.Read or Files.ReadWrite.All.
The deadbolt doesn’t matter to someone holding the master key. They don’t knock. They don’t trip the “someone’s at the door” sensor. And here’s the part that stings: that key doesn’t expire when an employee leaves, it doesn’t get prompted for MFA, and in most tenants nobody has looked at the key cabinet in a very long time.
The attacker, per Microsoft’s account, got into the cleaning company. From there, every master key that company held was fair game.
The audit I ran, and should’ve run in Q1
Once the shape of this was clear, the response wasn’t exotic, it was inventory. Boring, overdue inventory. The first thing I did was pull every service principal with credentials and actually look at them, because I genuinely did not know how many we had. The answer was “far more than I’d have guessed,” which is the answer for everyone.
If you do one thing after reading this, do this. Enumerate your application credentials and find the ones nobody’s rotated:
Sort by end date and read it like a receipt. The ones with multi-year expiry that you don’t recognise are exactly the ones an attacker loves, long-lived, over-scoped, forgotten. We found three apps nobody on the current team could explain. That’s not a Storm-0940 problem. That’s a me six months ago problem.
Next I went to the consent grants, because the question that matters during an incident is “what can this identity actually touch.” In the Entra admin center that’s Identity > Applications > Enterprise applications > [app] > Permissions. The permissions I cared about were the high-blast-radius application permissions: anything ending in .All, anything granting Mail.Read, Mail.ReadWrite, Files.ReadWrite.All, Directory.ReadWrite.All, or, the one that makes me wince, AppRoleAssignment.ReadWrite.All, which lets an app grant itself more. Microsoft has published the specific IOCs, app identifiers, and Defender/Graph detection queries for this campaign; go pull those from their blog rather than relying on my generic sweep. I’ll link it below.
The thing I got wrong before I got it right
My first instinct was to revoke tokens and move on. I rolled refresh tokens for an affected app and felt good about it for roughly twenty minutes, until a colleague pointed out that revoking user tokens does nothing to an app using its own client credentials. An app authenticating with a secret or certificate just asks for a fresh token with the same secret. You haven’t locked anyone out. You’ve changed the locks on the flats while the master key still works.
The actual fix was to rotate the application’s credentials, remove the compromised secret, add a new one, and confirm nothing legitimate broke, and in two cases to kill the app registration entirely because it turned out we didn’t need it anymore. “We didn’t need it anymore” is a phrase you’ll say a lot during this exercise. Say it, then delete the thing.
What I’d tell you if you’re about to do this
Turn off user consent if you haven’t. In Enterprise applications > Consent and permissions > User consent settings, set it so users can’t consent to apps, or can only consent to verified publishers for low-risk permissions. Then route the rest through admin consent requests so a human reviews anything that wants real access. Yes, it generates tickets. That’s the point, the friction is the control.
Treat application identities as first-class subjects of Conditional Access. Entra Workload ID Premium (separate add-on licensing, roughly per-workload, not covered by your P1/P2 seats, budget for it) lets you scope service principal sign-ins to known IP ranges and flag risky ones. That 3am sign-in from an unknown IP in my composite? That’s the exact event a workload identity location policy would have blocked. Most tenants I walk into don’t have it licensed. Then they do.
And rotate your app secrets on a schedule you’d actually be embarrassed to miss. Long-lived secrets are the unrotated master keys. If a vendor can’t support certificate auth or short-lived credentials in 2026, that tells you something about how much they’ve thought about this.
Microsoft has published full IOCs, detection queries, and mitigation steps, go there for the authoritative response playbook rather than treating my field notes as the checklist: Microsoft Security’s Storm-0940 analysis.
We spent years making sure the humans couldn’t be phished. Meanwhile the apps we’d quietly handed master keys to never had to answer a single question. The attacker noticed before we did. Go count your service principals tonight, not because of one campaign, but because you genuinely don’t know the number, and that’s the whole problem.
