# Azure API Management Classic flaw was used to steal stored secrets. Microsoft fixed it, but you still have to rotate keys

> Microsoft says attackers used a flaw in Azure API Management Classic to reach secrets stored in customers' instances before it closed the hole on November 19. Norway's NSM has tied the flaw to attacks on Norwegian organisations, Equinor among them. The platform fix doesn't cancel credentials that were already taken, so Developer, Basic, Standard and Premium customers need to rotate them.

Published Nov 24, 2026 by TechMeasured Staff · Security · Canonical: https://techmeasured.com/security/azure-api-management-classic-flaw-exploited-secrets-stolen-rotate-keys-what-to-do

Microsoft has told customers that an attacker used a flaw in the **Classic** tiers of **Azure API Management (APIM)** to get at secrets stored in their instances. It found the issue on **November 18** and closed the access path on **November 19**, [Techzine](https://www.techzine.eu/news/security/146028/microsoft-patches-actively-exploited-vulnerability-in-azure-api-management/) and [ITdaily](https://itdaily.com/news/security/azure-api-management-flaw-credentials/) report, citing the advisory Microsoft shared with BleepingComputer. The advisory went out privately through Azure Service Health, under tracking ID **MZK9-GH0**, according to the [Cloud Security Alliance](https://labs.cloudsecurityalliance.org/research/csa-research-note-azure-apim-classic-secret-theft-20261124-c/). No CVE had been assigned as of November 24.

The fix has already been applied on Microsoft's side, but that isn't the end of it for customers. Microsoft says the fix **does not invalidate credentials** that may have been taken before it went in. APIM sits in front of backends, identity providers and, more and more, AI model APIs, so it holds the keys to all of them. Anyone holding a stolen key can use it directly against the service it unlocks, outside APIM, as researcher Anders Kristiansen told ITdaily.

## Who is affected

| | Status (per Microsoft, as reported) |
|---|---|
| APIM Classic: Developer, Basic, Standard, Premium | **Affected** |
| APIM Classic: Consumption | Not affected |
| All APIM v2 tiers | Not affected |

Microsoft says the flaw allowed unauthorised access to some administrative functions on Classic instances that weren't set up according to its security guidance, Techzine reports. ITdaily, citing The Register, says the risk was highest where secrets were stored directly in APIM rather than as Azure Key Vault references. Microsoft hasn't published a root cause or said how many customers were affected.

According to the reporting, the secrets that could have been exposed are:

- **named values** (backend keys, connection strings, model-provider keys)
- **identity provider and OpenID Connect client secrets**
- **subscription keys**
- **tokens for the direct management API**

## The Norway connection

ITdaily, CSA and Incidenture all report that Norway's National Security Authority (NSM) published an advisory on November 20, updated it on November 23, and linked the flaw to attacks on Norwegian organisations, naming **Equinor** and **Skagerak Energi**. We couldn't read NSM's own page while preparing this story, so that link comes from those outlets' accounts of it.

Equinor's [own timeline](https://equinor.com/news/20261711-equinor-detected-cyber-attack) does not mention Azure. It says the company detected an attack on some IT systems at **18:55 CET on November 17**. On November 19 it said the attack did not appear to be aimed specifically at Equinor. On **November 20** it said the attack had been stopped, production was normal and there was no sign that data had been stolen or altered. [The Record](https://therecord.media/norway-equinor-cyberattack-energy) reported that some employees had trouble with corporate apps. [Dark Reading](https://www.darkreading.com/cyberattacks-data-breaches/second-norwegian-energy-company-breached) reported that Skagerak disclosed an attack on November 18 and that, at the time, no link between the two incidents had been established.

## What to do

If you run any APIM Classic instance in the Developer, Basic, Standard or Premium tier, NSM's advice, as reported by ITdaily, is to **assume your secrets and named values have leaked**.

1. **List every instance** you have on the affected tiers, and write down what sits behind each one.
2. **Rotate at the issuer, not just in APIM.** Create the new credential in the backend, at the model provider or in your identity provider (for example Entra ID). Then update APIM or the Key Vault reference, check that traffic works, and revoke the old credential. Changing a value only inside APIM leaves the old one valid where it was issued, CSA notes.
3. **Regenerate the primary and secondary subscription keys** and the **tenant access keys**. CSA and Incidenture also recommend disabling the legacy direct management API, and the developer portal if you don't use it.
4. **Check the gateway version.** NSM's check, as reported by ITdaily and CSA, is to read `RuntimeVersion` from `https://<your-gateway>/internal-status-0123456789abcdef`. You want **0.52.x at build 31936 or later**, or **0.53.x at build 31938 or later**. If yours is lower, contact Microsoft. Microsoft says no customer action is needed for the platform fix, and it hasn't explained why NSM still recommends this check.
5. **Hunt in the systems the keys unlock.** Look for sign-ins by service principals whose secrets APIM held coming from new IP addresses, unusual spikes in token use or billing at model providers, and Key Vault access that doesn't match normal gateway refreshes. Go back across your whole log retention period before November 19. CSA warns that ARM activity logs won't show access through the legacy direct management API, so a clean result there doesn't mean you weren't exposed.

## What to watch

- Whether Microsoft publishes a public advisory, a CVE or a root cause
- Whether NSM or the affected companies confirm what was taken
- Whether other APIM customers report that rotated keys had already been misused

Going forward, the reporting points one way: secrets kept as Key Vault references were less exposed than secrets stored directly in APIM.


## Sources

1. [Techzine — Microsoft patches actively exploited vulnerability in Azure API Management](https://www.techzine.eu/news/security/146028/microsoft-patches-actively-exploited-vulnerability-in-azure-api-management/)
2. [ITdaily — Attackers steal API credentials via flaw in Azure API Management Classic](https://itdaily.com/news/security/azure-api-management-flaw-credentials/)
3. [Cloud Security Alliance — Azure API Management Classic Exploitation: When the AI Gateway Leaks the Keys](https://labs.cloudsecurityalliance.org/research/csa-research-note-azure-apim-classic-secret-theft-20261124-c/)
4. [Incidenture — Azure API Management flaw exploited: how attackers went after APIM Classic secrets](https://incidenture.com/2026/azure-api-management-flaw-exploited/)
5. [Equinor — Cyber-attack stopped](https://equinor.com/news/20261711-equinor-detected-cyber-attack)
6. [The Record — Cyberattack hits Norwegian energy giant Equinor, disrupting internal services](https://therecord.media/norway-equinor-cyberattack-energy)
7. [Dark Reading — Second Norwegian Energy Company Breached in Two Days](https://www.darkreading.com/cyberattacks-data-breaches/second-norwegian-energy-company-breached)
