Azure API Management flaw exploited: how attackers went after APIM Classic secrets
Azure API Management flaw exploited in attacks tied to Equinor: what APIM Classic exposed, why stored secrets were the prize, and how to check and rotate now.
Key facts
- Severity
- Described as a critical advisory by The Register. Microsoft tracks it as Azure Service Health advisory MZK9-GH0; no CVE ID is cited in the sources.
- Affected
- Azure API Management Classic tiers Developer, Basic, Standard and Premium. The Classic Consumption tier and all APIM v2 tiers were not affected, per Microsoft.
- Exploited in the wild
- Yes. Norway's NSM says an unknown actor actively targeted access tokens, secrets and named values in APIM; Equinor and Skagerak Energi are among the affected organizations.
- Fixed in
- Microsoft identified the issue on 18 November 2026 and closed the access path on 19 November. NSM: patched if RuntimeVersion is 0.52.x with x at or above 31936, or 0.53.x with x at or above 31938.
- What was exposed
- Named values secrets, identity provider and OpenID Connect client secrets, subscription keys, and tokens used to call direct management APIs.
- Status
- Microsoft says the fix is fully deployed and needed no customer action, but it does not invalidate credentials taken before 19 November. Scale of exploitation is unknown.
- What to do now
- Assume every secret and named value in an APIM Classic instance is exposed: rotate at the issuer, check the runtime version and review logs of the services behind APIM.
An Azure API Management flaw was exploited to reach the secrets that organizations store inside their API gateways. In a non-public Azure Service Health advisory (tracking ID MZK9-GH0) seen by BleepingComputer and The Register, Microsoft said that “an unauthorized party could have used the issue to access secrets stored in Azure API Management Classic instances before Microsoft identified the security issue.” Norway’s National Security Authority (NSM) says Equinor and Skagerak Energi are among the affected organizations, and that the vulnerability reaches several sectors in Norway and beyond.
This is a cloud platform security incident where the platform held other companies’ keys.
What happened
| Date (2026) | Event |
|---|---|
| 17 November, 18:55 CET | Equinor announces an ongoing cyber attack against “certain IT systems”. |
| 18 November | Equinor says it is “not a virus attack” and production is unaffected. Microsoft says it identified the APIM issue. Skagerak Energi discloses an attempted attack the same day, with no operational impact. |
| 19 November | Microsoft closes the unauthorized access path and rotates Microsoft-controlled keys where appropriate. |
| 20 November | Equinor says the attack has been stopped, with no indication that data was stolen or altered. NSM publishes its advisory and credits Equinor with early detection. |
| 21 November | Microsoft publishes a public guide on rotating credentials in API Management, without naming the vulnerability. |
| 23 November | Press reports the Service Health advisory. NSM updates its page. |
Microsoft told BleepingComputer the flaw affected the Developer, Basic, Standard and Premium tiers of APIM Classic. The Classic Consumption tier and all APIM v2 tiers were not affected. Per the advisory, the issue allowed unauthorized access to “certain management functionality” on Classic instances that were not configured according to Microsoft’s recommended security practices, which could let an attacker perform administrative operations, including reading secrets.
The items Microsoft lists as possibly exposed:
- Secrets stored in named values
- Client secrets for identity providers and OpenID Connect providers
- Subscription keys
- Tokens used to call direct management APIs
Microsoft has not said how many customers were exposed, and it has not published a root cause. No CVE ID appears in any of the sources.
The attack chain, step by step
Only part of the chain is public. This is what the sources support.
- Reach the management plane. The flaw gave unauthorized access to management functionality on APIM Classic instances, per Microsoft. An administrator posting on Reddit, quoted by BleepingComputer, claimed it was an authentication bypass in a deprecated legacy API that led to a privileged system account and produced no customer-visible logs. BleepingComputer did not verify that claim, and Microsoft has not confirmed it.
- Read the secrets. With administrative operations available, the attacker could read named values, client secrets, subscription keys and management tokens. NSM says the actor “actively” went after access tokens, secrets and named values.
- Use them elsewhere. Researcher Anders Kristiansen, quoted by The Register, warned that whoever obtains a credential from that configuration “may be able to use it directly against the service it protects, outside APIM.” The same Reddit administrator said their team found the intrusion after a valid administrator token was used against their Key Vaults in an unusual pattern. That is also unverified.
Equinor’s own statements do not mention APIM. They say the attack did not appear to target Equinor specifically.
Why it worked
The gateway is a secrets store. API Management sits in front of backends, so it needs their credentials. Named values, backend headers, OAuth client secrets and connection strings all end up in its configuration. Whoever can administer the gateway can read the keys to everything behind it.
Inline secrets are copies. Microsoft linked exposure to Classic configurations that stored secrets directly in APIM instead of referencing Azure Key Vault. Microsoft’s own documentation already recommends Key Vault-backed named values with versionless identifiers. Key Vault secrets can be scoped, audited and rotated in one place.
The fix closes the door, not the leak. Microsoft’s advisory is explicit: the remediation “does not automatically invalidate credentials that may have been accessed before the fix was deployed.” Every stolen key keeps working until its owner replaces it at the issuer.
Legacy tiers stay forgotten. Customers told The Register that forgotten development and test instances could leave more organizations exposed.
What defenders should do
- Inventory APIM Classic instances across all subscriptions, including dev and test, and map what sits behind each one, as NSM asks.
- Assume exposure and rotate at the issuer. NSM’s guidance is to treat all secrets and named values as compromised. Follow Microsoft’s order: create the replacement at the backend or identity provider, update APIM, test, then revoke the old credential. Updating APIM alone does not revoke anything. The same principle applied in the Rackspace Spot Kubernetes Secrets breach.
- Cover every credential type in Microsoft’s guide: subscription keys, secret named values, backend headers, query parameters and client certificates, OAuth 2.0 and OpenID Connect client secrets, logger connection strings, and credentials written directly into policies.
- Move secrets to Key Vault using versionless secret identifiers, and restrict network access to the management plane per Microsoft’s security guidance.
How to check if you are affected
- Tier: only APIM Classic Developer, Basic, Standard and Premium are in scope. Classic Consumption and v2 are not.
- Runtime version (NSM): open
https://<your-gateway-host>/internal-status-0123456789abcdefand read RuntimeVersion. Version 0.52.x is patched if x is 31936 or higher; 0.53.x if x is 31938 or higher. Other patterns, such as 0.53.4608.0 or 0.52.4150.0, indicate v2 or Consumption and are not vulnerable. Lower numbers are still vulnerable: contact Microsoft. - Secret inventory: list named values with
az apim nv listand check which are secret and not Key Vault-backed. Those are the first to rotate. - Downstream logs: review Key Vault access, backend APIs, identity provider sign-ins for APIM client IDs and subscription key usage before 19 November 2026. Anders Kristiansen published hunting queries, referenced by BleepingComputer.
My take
This follows the Entra Connect Health disclosure days earlier and the Microsoft agent-framework supply chain attack, and the pattern is the same: the provider fixes its side and the customer inherits the cleanup. A private Service Health notice and a rotation guide that does not name the flaw are not enough for something an attacker actively exploited across sectors. NSM said more in public than the vendor did.
The deeper lesson is architectural. An API gateway is a vault with a router attached. If yours holds plain secrets, treat it like a password store and ask one question: if someone read every named value tonight, how many hours until every one of them is useless? More cases are in the cloud and identity category.
Sources
- NSM deler tiltak mot sårbarhet i Azure API Management · Norwegian National Security Authority (NSM), 20 November 2026, updated 23 November 2026
- Rotating credentials in Azure API Management · Microsoft Community Hub, 21 November 2026
- Cyber-attack stopped · Equinor, 17 November 2026, updated 20 November 2026
- Microsoft Azure flaw exploited to steal customers' API credentials · BleepingComputer, 23 November 2026
- Norway says hackers exploited Microsoft security flaw to attack energy firms Equinor, Skagerak Energi · The Record, 23 November 2026
- Norway links energy firm cyberattacks to critical Azure API Management flaw · The Register, 23 November 2026
- Use named values in Azure API Management policies · Microsoft Learn