System Design Simple logoSystem Design Simple Follow on YouTube

Security

TREND (by 2026-11-25 00:05 UTC): Azure APIM secrets exposed, rotate now

Microsoft closed an Azure API Management flaw on November 19, but any secret taken before then still works until you rotate it.

TREND (by 2026-11-25 00:05 UTC): Azure APIM secrets exposed, rotate now: diagrams from the video

Drafted with AI assistance, then checked and edited by a human engineer · How we write

Microsoft closed the Azure APIM hole, but your stolen keys still work

Microsoft found a flaw in Azure API Management Classic tiers that let an unauthorized party reach the secrets stored inside it. Microsoft closed the access path on November 19, 2026, but any credential taken before then still works today, and the only fix for that part is to rotate it yourself.

The official word

Norway's National Security Authority, NSM, published its notice on November 20, 2026 and updated it on November 23. NSM says an unknown actor actively went after access tokens, secrets and named values in Azure API Management, known as APIM. NSM tells every APIM user to assume their secrets and named values are exposed and to rotate all tokens and secrets, and to map what information sits behind each instance. NSM says the extent of exploitation is still uncertain, and the flaw was first found by Norway's energy sector.

Microsoft's own advisory is not public: an Azure Service Health advisory, tracking ID MZK9-GH0, sent to affected customers and quoted by BleepingComputer and The Register. Microsoft says it found the flaw on November 18, 2026 and mitigated it the next day. The advisory says customers were exposed and an unauthorized party could have reached secrets stored in Classic instances before Microsoft found it. Microsoft says it closed the unauthorized access path on November 19 and rotated Microsoft controlled keys where appropriate, but warned that its fix "does not automatically invalidate credentials that may have been accessed before the fix was deployed."

Microsoft's rotation guide, published November 21, 2026, gives the order: create the replacement at the issuer, update API Management, test your APIs, then revoke the old secret. Updating the value in API Management alone does not revoke the old credential at its issuer.

What APIM Classic holds, and what was taken

Azure API Management is the service in front of a company's APIs, handling keys, sign ins and traffic. A Classic tier instance, Developer, Basic, Standard or Premium, can hold the keys to a large part of a company. Microsoft's advisory lists what may have been exposed: Named Values secrets, identity provider and OpenID Connect client secrets, subscription keys, and direct management API tokens. Those credentials can open other systems, depending on their permissions, so one exposed instance can turn into many.

Microsoft says the flaw let an unauthorized party reach certain management functions on Classic instances not set up to its recommended practices, and from there read the secrets the service stores. Microsoft says APIM v2 tiers are not affected, so the exposure is specific to customers still running Classic.

Two Norwegian energy companies are named in the NSM notice. Equinor disclosed an ongoing cyberattack on November 17 and said on November 20 that it had stopped, with no sign data was stolen or altered. Skagerak Energi reported an attempted attack on November 18 with no impact. The gap that matters is November 18 to November 19: anything taken before Microsoft found the issue is still valid until its owner rotates it.

One claim stays unverified. A Reddit administrator claimed the attackers used an authentication bypass in a deprecated legacy API that left no customer visible logs. BleepingComputer has not verified that claim, and neither have we, so it is not used below.

Check in five minutes

First, find your instances. List them in the Azure portal or with Azure CLI. Only Classic tiers are in scope: Developer, Basic, Standard, Premium. V2 is not affected. Count the test and development instances too, because those are the ones people forget.

Second, check whether your instance has the update. NSM gives the check: open https://your-gateway-hostname/internal-status-0123456789abcdef and read RuntimeVersion. On the 0.52 line, the last number must be 31936 or higher. On the 0.53 line, it must be 31938 or higher. Other version patterns are V2 or Consumption tier shapes, where these thresholds do not apply. A lower number means the instance is still vulnerable: contact the provider directly, NSM says.

Third, list what the instance holds: subscription keys, named values with secrets, backend credentials, OAuth 2.0 and OpenID Connect client secrets, connection strings, and secrets pasted into policies. Note every credential and what system it opens.

Fourth, hunt where those credentials lead. Anders Kristiansen published hunting queries for this incident. In AzureActivity, look for namedValues/listValue, subscriptions/listSecrets, tenant/listSecrets and identityProviders/listSecrets, plus writes to policies, named values, identity providers, users and portal settings. Those queries come from Kristiansen, not from Microsoft, so treat them as a starting point, not a vendor instruction. If a secret was read by an unfamiliar caller or from an unfamiliar address, assume it was taken.

Rotate in the right order

Microsoft's rotation guide gives the order: a bad rotation breaks your own APIs while leaving the old secret alive. Create the replacement where the credential is issued, not in APIM: in Entra ID for an identity secret, at the backend for a backend credential, and by moving callers to the secondary key first for a subscription key.

Update API Management with the new secret, then test your APIs. For a Key Vault backed named value, store the replacement in Key Vault and refresh it. For a named value that stores the secret in APIM, replace the value and consider moving it to Key Vault.

Only then revoke the old secret. That is the step people skip, and it is the step that matters, because updating the value in APIM does not revoke the old credential at its issuer. A subscription key or client secret copied out last week still works this week until the issuer kills it. After the rotation, move secrets out of APIM where you can: managed identities instead of keys, and Key Vault backed named values instead of secrets stored in APIM.

Our take

The fix closed the hole and changed nothing for anyone whose keys were already copied: a stolen key keeps working until the owner kills it. Microsoft patched its side in a day, but the real patch is a rotation every APIM Classic owner must do by hand, secret by secret, and the forgotten test instances are the most likely to still hold a live copy. For more on why a leaked secret stays dangerous after the hole is closed, read did the AI leak my fake password and is my password leaked.

Honest verdict

This is a real, exploited flaw with no CVE and no public technical detail, which makes it harder to check than a normal patch. If you run Azure API Management on a Classic tier, assume your secrets were exposed, check your RuntimeVersion against NSM's thresholds, and rotate every credential in Microsoft's order today. Do not call it done after the rotation: hunting the logs of every system those credentials open is what tells you whether anyone used them.

FAQs

Am I affected if I run Azure API Management on a v2 tier?

No, not by this flaw. Microsoft says the APIM v2 tiers are not affected, and NSM says V2 and Consumption tier version patterns are not vulnerable under its thresholds. Classic tiers, Developer, Basic, Standard and Premium, are the affected set.

Why do I have to rotate my secrets if Microsoft already fixed the flaw?

Microsoft closed the access path on November 19, but its advisory says the fix does not automatically invalidate credentials accessed before then. A secret copied before the fix still works until its issuer revokes it, so only a rotation kills it.

How do I check whether my instance has the update?

Open https://your-gateway-hostname/internal-status-0123456789abcdef and read RuntimeVersion. NSM says 0.52.x is patched at 31936 or higher, and 0.53.x at 31938 or higher. Lower numbers are still vulnerable: contact the provider directly.

Sources

  1. did the AI leak my fake passwordsystemdesignsimple.com
  2. is my password leakedsystemdesignsimple.com

azure apimsecurityazuresecrets

System Design Simple logo
System Design Simple

Written by a software engineer and system architect with 10+ years of building production web, payment, ticketing and accounting systems in Japan and Nepal. About us