In June, someone at a U.S. federal civilian agency noticed that an application which had never read the agency's mailboxes before was reading them. That observation — one unfamiliar application identifier in an audit log — unravelled an espionage campaign against Microsoft's cloud email, which Microsoft disclosed on July 11 and CISA and the FBI described in a joint advisory the next day. On August 11, the Department of Homeland Security announced that its Cyber Safety Review Board will make the intrusion the subject of its next review, together with a broader look at cloud identity and authentication infrastructure.
The board will spend months on what went wrong inside Microsoft. This post is about the part that applies to everybody else: the agency caught it because it was paying for the right log.
What is public so far
Microsoft attributes the activity to a China-based actor it tracks as Storm-0558. Beginning on May 15, the actor used forged authentication tokens to read email through Outlook on the web and Outlook.com at roughly two dozen organizations, including government agencies, as well as a number of related consumer accounts.
The forgery worked because the actor had obtained an inactive Microsoft consumer-account signing key, and a validation issue allowed tokens signed with that consumer key to be trusted for enterprise access. Microsoft says it has corrected the validation flaw, blocked the use of tokens signed with the key in Outlook on the web on June 27, and completed replacement of the key on June 29. It has also said that no customer action is required. How the key was obtained in the first place has not been explained publicly, and it is presumably near the top of the board's list.
The detection almost nobody could have made
Read the joint CISA and FBI advisory and one detail stands out. The agency spotted the intrusion through enhanced logging of mailbox access events — specifically the MailItemsAccessed audit event — compared against a baseline of which applications normally touch its mail. CISA and the FBI said they were not aware of any other audit logs or events that would have detected the activity. And that logging, the advisory noted, required licensing at the top enterprise and government tiers.
Think about what a forged token does to the usual alarms. There is no failed password, no unexpected multi-factor prompt, no impossible-travel sign-in. As far as the service is concerned, a valid credential arrived and was honoured. The only trace left in the customer's world was the reading itself — and a great many customers were not licensed to see it.
Most of the organizations we protect were in that position in June. They are licensed below the tier that included the event, which means that if the same actor had pointed the same key at them, their logs would have been silent.
To its credit, Microsoft moved quickly on this point. On July 19 it announced that more than 30 types of log data previously reserved for its premium audit tier, including detailed logs of email access, would become available to standard audit customers at no additional cost, with the rollout beginning in September, and that default retention for standard audit would rise from 90 to 180 days. That is the right decision. It is also an acknowledgement that a security-critical log had been priced as an upgrade.
You cannot rotate someone else's key
This is the uncomfortable shape of cloud security for a mid-market organization. You cannot patch your provider's token validation. You cannot rotate its signing keys or audit how it stores them. When the provider says no customer action is required, that is a relief and a warning at the same time: it means you had no lever to pull.
What you do own is visibility. Which events you collect, how long you keep them, whether anyone looks at them, and whether you know what normal looks like. Under the shared-responsibility model, that is not a consolation prize. It is the whole of your side of the contract.
That argument applies well beyond Microsoft. Every SaaS platform you rely on makes a decision about which security events you get on which plan. Most customers have never asked.
If you build on someone else's identity platform
There is a second lesson for anyone running in-house applications that accept Microsoft sign-in. On July 21, researchers at Wiz argued that the stolen key may have been usable against a wider set of applications than email — those that accept Microsoft's newer-style tokens for personal and multi-tenant accounts. Microsoft pushed back on that assessment, and we are not going to settle the dispute here.
The defensive takeaway does not depend on who is right. Your application is the last thing that validates a token before honouring it. Make sure it checks the issuer and the tenant rather than only the signature, keep identity libraries current so that key revocations actually reach you, and do not cache signing keys indefinitely. Wiz's own recommendation was to update SDKs and refresh caches, which costs very little.
What to do this quarter
- Confirm the unified audit log is on and flowing somewhere you can search. It is enabled by default for most tenants. "Enabled by default" is not the same as "checked."
- When the expanded events reach your tenant, route them to your SIEM and choose a retention period. The advisory pointed federal agencies to a year of active retention. Your number may be smaller, but it should be a decision rather than a default.
- Baseline which applications read mail. Alert on any new application identifier accessing mailboxes, starting with executives, finance and anyone who handles payments.
- Inventory internal applications that accept Microsoft identity tokens. Confirm how each validates issuer and tenant, and which library version it runs.
- Add one question to SaaS procurement: which security logs do we get on this plan, for how long, and can we export them? Price the answer as a security control, not a feature.
The logs that caught this campaign were sold as an extra. For the most important of them, that is about to change. Turn them on, keep them, and read them, because a log you are not collecting is a detection you have already decided not to make.
Sources
- Enhanced Monitoring to Detect APT Activity Targeting Outlook Online (AA23-193A) — CISA and FBI, July 2023
- Analysis of Storm-0558 techniques for unauthorized email access — Microsoft Threat Intelligence, July 2023
- Expanding cloud logging to give customers deeper security visibility — Microsoft, July 2023
- Compromised Microsoft Key: More Impactful Than We Thought — Wiz, July 2023
- Stolen Microsoft key may have opened up a lot more than US govt email inboxes — The Register, July 2023- Microsoft Exchange hack is focus of cyber board's next review — The Record, August 2023






