Microsoft Azure Flaw Let Attackers Steal API Secrets

An Azure API Management flaw let attackers reach the stored secrets behind Microsoft’s API gateway — and the fix does not undo the damage. Microsoft found it on November 18, closed the access path on November 19, and warned that credentials taken before then still work until rotated.

Norway’s National Security Authority linked the flaw to cyberattacks on energy companies Equinor and Skagerak Energi. Its advice is blunt: assume your secrets are exposed, and rotate them all.

What happened

Azure API Management (APIM) lets organizations publish, secure, monitor and manage their APIs. If you sell API access, APIM is the front door — and this flaw left its keys within reach.

Date What happened
Nov 17 Equinor discloses a cyberattack on some of its IT systems
Nov 18 Microsoft identifies the APIM Classic flaw
Nov 19 Microsoft closes the unauthorized access path
Nov 20 NSM publishes its advisory; Equinor stops the attack
Nov 21 Microsoft publishes a credential rotation guide
Nov 23 NSM updates guidance; the flaw goes public

Microsoft notified affected customers through a private Azure Service Health advisory, tracking ID MZK9-GH0. The flaw was an access-control gap: on Classic-tier instances not configured to Microsoft’s recommended practices, an unauthorized party could reach management functions and read stored secrets.

Microsoft says it rotated its own controlled keys. But the fix does not invalidate customer credentials accessed before it — a key copied out last week still works this week.

The official Microsoft logo - Azure API Management is Microsoft's gateway service for publishing and securing APIs

What attackers could take

What was exposed What it unlocks
Named Values secrets Backend credentials, database strings, API tokens
Identity provider secrets Secrets behind user sign-in flows
OIDC client secrets Secrets behind OIDC logins
Subscription keys Keys your API consumers use to call your APIs
Management API tokens Admin tokens for the APIM instance

What Microsoft said

An unauthorized party could have used the issue to access secrets stored in Azure API Management Classic instances before Microsoft identified the security issue.

— Microsoft advisory MZK9-GH0, as reported by BleepingComputer, November 23, 2026

Norway’s NSM published the only public government advisory: an unknown actor went after access tokens, secrets and named values across several sectors in Norway and beyond — and it raised the national cyber risk level to HIGH.

Who was hit

Equinor disclosed an ongoing cyberattack on some IT systems on November 17 — a day before Microsoft says it identified the flaw. By November 20 it said the attack was stopped, with no indication data was stolen.

Skagerak Energi reported an attempted attack on November 18 with no impact on operations or production and no evidence of compromise. NSM credits Norway’s energy sector with finding the problem early and sharing it fast.

Timeline of the Azure API Management flaw: Equinor disclosure on Nov 17, Microsoft fix on Nov 19, NSM advisory on Nov 20, rotation guide on Nov 21

Am I affected?

Only the Classic tiers — Developer, Basic, Standard and Premium — are affected, not the Consumption tier or any APIM v2 tier. Verify your instance received the update at https://<your-gateway-hostname>/internal-status-0123456789abcdef:

  • 0.52.x — patched at 31936 or higher
  • 0.53.x — patched at 31938 or higher
  • Other patterns (0.53.4608.0, 0.52.4150.0) — V2/Consumption, not vulnerable
  • Lower numbers — still vulnerable

How to fix it: rotate everything, in this order

Microsoft published a credential rotation guide on November 21. The order matters — the wrong order can break your APIs.

Step 1 — InventoryList every APIM instance, flag the Classic ones, and list every secret each holds: subscription keys, named values, backend credentials, and OAuth/OIDC secrets.
↓
Step 2 — Create the replacement at the issuerMake the new secret at the backend service or identity provider first. Updating the value in APIM does not revoke the old credential.
↓
Step 3 — Update APIM and testPoint APIM at the new secret and test. For subscription keys, use the two-key dance: move callers to the secondary key, regenerate the primary, then move them back.
↓
Step 4 — Revoke the old secretOnce the new credential is live and tested, revoke the old one at its issuer — then hunt the logs those credentials could reach.

NSM goes further: assume your secrets are exposed and rotate them all.

What it means for your money

If you sell API access: a stolen subscription key lets someone call your APIs as a paying customer — on your quota and your bill. Check spikes since mid-November.

If you front AI APIs with APIM: many builders put OpenAI or Anthropic keys behind APIM. If those keys sat in named values, an attacker could have copied them.

If you run a SaaS: backend credentials behind APIM are the keys to your customer data. A few hours of rotation beats incident response and lost trust.

If you manage clients’ Azure tenants: this is urgent, billable work. Check every client tenant this week, starting with Classic tiers.

Frequently asked questions

Am I affected by the Azure APIM flaw?

Only if you run APIM on a Classic tier — Developer, Basic, Standard or Premium. Consumption and v2 tiers are not affected.

Was my data actually stolen?

Microsoft and NSM say it is still unclear how widely the flaw was exploited. NSM’s position: assume exposure and rotate anyway.

Does Microsoft’s fix protect me?

Only partly. The November 19 fix closed the access path, but Microsoft says it does not invalidate credentials accessed before the fix.

What exactly do I need to rotate?

Everything the instance holds: named-value secrets, identity and OIDC secrets, subscription keys, backend credentials, and management tokens.

In what order should I rotate?

Create the replacement at the issuer first, update APIM, test, then revoke the old secret. Rotating only in APIM does not kill the old credential.

Is there a CVE for this flaw?

No. No CVE has been published. Microsoft’s advisory is MZK9-GH0; NSM published the public advisory on November 20, updated November 23.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top