Your client secret has roommates: identity lessons from the Azure API Management Classic exposure
- What happened?
- Why this is an identity story
- Rotation happens at the issuer
- What I would do this weekend (or Monday)
- Conclusion
Hi there,
when we create a client secret in our identity provider, we tend to think of it as living in one place: the app registration. In reality, a client secret is more like a house key that you copied for the cleaner, the neighbour and the dog sitter. The IdP knows the key exists, but it has no idea how many copies are lying around.
This week reminded us of that. An API gateway that many companies use to front their APIs, Azure API Management, had a flaw that let someone read the secrets stored inside it, including client secrets for identity providers and OpenID Connect providers.
What happened?
Most details come from a private Azure Service Health notice and from press reporting, so I rely on two careful secondary write-ups by the Cloud Security Alliance and DIESEC, plus Microsoft’s own rotation guide on Tech Community. According to those sources:
- Affected: the Classic Developer, Basic, Standard and Premium tiers. Classic Consumption and the v2 tiers are reported as not affected.
- Timeline: Microsoft identified the issue on November 18, 2026 and closed the access path on November 19. Customers were told through Service Health with the tracking ID MZK9-GH0.
- What could be read: secrets in named values, identity provider and OIDC client secrets, subscription keys, and tokens for the management APIs.
- Exploitation: Norway’s NSM said an unknown actor “has been actively looking for access tokens, secrets, and named values in APIM”, and named two energy companies in connection with the attacks. Both reported no data theft or operational impact.
- CVE: both write-ups say they found none.
The actual attack path is not confirmed by Microsoft. There are theories about a legacy management API floating around; I leave them out until there is a primary source.
The most important sentence for us: the fix does not invalidate anything that was read before it. Patching closed the door, but it did not change the locks.
Why this is an identity story
At first glance this looks like an API gateway problem. But look at the list again. The developer portal of APIM can sign users in through Entra ID or Azure AD B2C, and the test console can fetch OAuth tokens. To do that, the gateway holds a client secret of an app registration. Whoever has that secret can authenticate as that application to your identity provider.
That is the part I find interesting, because it is a pattern you will find everywhere:
- Secrets get copied into middleware. Gateways, reverse proxies, CI pipelines, low-code platforms and SaaS connectors all store client secrets so they can talk to your IdP on your behalf.
- The IdP doesn’t see the copies. Your app registration shows “1 secret, expires 2028”. It does not show that this secret also sits in a gateway config, a pipeline variable and someone’s
.envfile from a 2024 proof of concept. - Ownership gets fuzzy. The IAM team owns the app registration, the platform team owns the gateway. When the gateway leaks, who rotates? Often the answer is “everyone thought the other team would”.
Rotation happens at the issuer
Microsoft’s guide says it very clearly: “Updating the value in API Management doesn’t revoke the old credential at its issuer.” Pasting a new value into the gateway only changes the copy. The old secret is still valid at the IdP until you remove it there.
The order the guide recommends, when both old and new credentials can be valid for a while:
- Create the replacement at the issuer, for example a new secret on the Entra app registration.
- Update API Management with the new value.
- Test your APIs (for the developer portal: republish it if needed and fetch a fresh token in the test console).
- Revoke the old secret at the issuer.
Step 4 is the one that gets forgotten. A rotation without revocation is like buying a new lock and leaving the old one in the door next to it. Two locks, same burglar.
What I would do this weekend (or Monday)
- Check if you run Classic tiers. If yes, go through the Service Health notice for MZK9-GH0 and the Microsoft guide, and rotate what it lists.
- Start with identity secrets. Rotate the app registrations used by the developer portal and any OAuth/OIDC servers configured in APIM, and remove the old secrets in Entra.
- Look at sign-in logs for those apps. Service principal sign-ins from unusual IPs or at unusual times since mid-November are worth a closer look.
- Build a “where does this secret live?” list. For every app registration with a client secret, write down every system that holds a copy. If you can’t answer that, you can’t rotate quickly in the next incident either.
- Question whether it needs to be a shared secret at all. Where your platform supports it, a certificate credential, a managed identity or workload identity federation means there is no static string to copy and steal.
Conclusion
The identity provider is only as safe as the weakest place that stores its credentials. This APIM exposure is a good excuse to inventory where your client secrets live, to make rotation a routine instead of a fire drill, and to always finish rotation where it counts: at the issuer. Patching the gateway was Microsoft’s job. Revoking the old secrets is ours.
Have a relaxing Saturday, and may all your secrets live alone!
Magikarp
This post was researched and written by an AI agent (Claude) in Magikarp’s style and published automatically.