Skip to content
audiotale.net
Sign in
NewsNews

Azure API Management flaw: NSM says rotate all APIM secrets, patched at RuntimeVersion 0.52.31936 or 0.53.31938

Norway's NSM says an unknown actor targeted tokens, secrets and named values in Azure API Management Classic; Microsoft's fix does not invalidate credentials already taken.

audiotale.net team

· 7 min read

Written by AI from the sources linked below. How we use AI

On this page
  1. Key points
  2. What to do
  3. What happened
  4. Background
  5. How to check whether you were hit
  6. What it means
  7. What we don't know yet
  8. What to watch next
  9. Sources

Microsoft has fixed a vulnerability in Azure API Management (APIM) Classic that an unknown actor used to go after access tokens, secrets and named values, according to Norway's National Security Authority (NSM). The fix was applied by Microsoft on its own hosts, but it does not undo what was already taken: anyone running APIM Classic should treat every secret stored in the service as exposed and rotate it.

Key points

  • NSM published its advisory on 20 November 2026 (updated 23 November): an unknown actor actively targeted access tokens, secrets and named values in Azure API Management, and several Norwegian organisations were affected.
  • Microsoft says it identified the problem on 18 November and closed the unauthorized access path on 19 November, with no customer action needed to receive the fix, per BleepingComputer's account of Microsoft's advisory (tracking ID MZK9-GH0).
  • Microsoft says the fix does not automatically invalidate credentials that may have been accessed before it was deployed, so rotation is still on the customer.
  • NSM's patch check: open https://<your-gateway-hostname>/internal-status-0123456789abcdef and read RuntimeVersion. On 0.52.x the last number must be 31936 or higher, on 0.53.x it must be 31938 or higher.
  • The Consumption tier and all APIM v2 tiers are not affected, according to Microsoft as reported by BleepingComputer.

What to do

Who is affected. Instances of APIM Classic in the Developer, Basic, Standard and Premium tiers. BleepingComputer reports that Microsoft ties the exposure to instances not configured according to its recommended security practices. The Consumption tier of APIM Classic and all v2 tiers are not affected.

Check your version. NSM's advice is to request the status path above on your gateway hostname and read RuntimeVersion:

  • 0.52.x: patched if the last number is 31936 or higher.
  • 0.53.x: patched if the last number is 31938 or higher.
  • Other formats, such as 0.53.4608.0 or 0.52.4150.0: V2 or Consumption tier, where the threshold does not apply and NSM says the instance is not vulnerable.
  • Lower numbers than those above: still vulnerable. NSM says to contact your vendor directly.

Rotate. NSM says to assume all secrets and named values in your APIM instance have been exposed, and to rotate all tokens and secrets. Microsoft lists what could have been reached: secrets stored in named values, client secrets for identity providers, client secrets for OpenID Connect providers, subscription keys, and tokens used to call the direct management APIs. Depending on permissions, those can open other applications, services or backend systems.

Look back. Review the logs you have for unauthorized access, and check what sits behind each APIM instance so you can estimate the impact if compromise is confirmed. If you see signs of compromise, NSM asks organisations to contact it.

Reduce exposure. Security researcher Anders Kristiansen notes that the direct Management API (<instance>.management.azure-api.net) authenticates with a SharedAccessSignature token signed with the tenant access key, does not use Entra ID or Azure RBAC, and its calls do not appear in the Azure Resource Manager Activity log. Microsoft retired it in March 2025, which he describes as unsupported rather than necessarily removed. He recommends setting Management API, Enable Management REST API to No on every instance. That is his recommendation, not Microsoft's, and Microsoft has not said this path was the one abused.

What happened

Equinor, the Norwegian energy company, announced on 17 November at 18:55 CET that it had detected an ongoing cyber-attack against certain IT systems. On 18 November it said the attack was not a virus, so there was no risk of it spreading. On 19 November it said the attack was still ongoing and did not appear to target Equinor specifically. On 20 November at 08:55 CET it said the attack had been stopped. Equinor says production ran as normal throughout, that there is no indication data was stolen or altered, and that it reported the incident to the police. Its page does not mention Azure or any cloud platform.

Skagerak Energi, another Norwegian energy company, reported a possible attempted attack on 18 November, with no operational impact and no evidence that information was compromised, as BleepingComputer summarises its statement.

On 20 November NSM published its advisory on the Azure API Management vulnerability. It says it learned of the flaw earlier that week and that it affects several Norwegian organisations. NSM names Equinor and Skagerak Energi among them. It says the energy sector first discovered the vulnerability, and on 23 November it corrected its first wording ("power sector") to "energy sector". NSM says it does not know how widespread the exploitation was, and that so far it has no evidence the compromise attempts affected deliveries at Norwegian organisations. It also says the vulnerability affects several sectors, in Norway and abroad.

Microsoft's own advisory went to customers through Azure Service Health under tracking ID MZK9-GH0. BleepingComputer, which reported on it on 23 November, did not link a public copy, and we could not find one, so Microsoft's statements below come through that report. Microsoft said an unauthorized party could have used the issue to reach secrets before the fix, with access to management functionality that allows administrative operations. It said its remediation was fully deployed to Microsoft-hosted instances, and that it rotated Microsoft-controlled keys and credentials where appropriate.

Background

API Management is Azure's gateway for publishing and securing APIs. Its named values are a store for configuration and secrets that gateway policies use. Because a gateway sits in front of backends, a stolen subscription key, identity provider client secret or management token can be a way into whatever those backends can reach. That is why NSM's first instruction is to rotate everything rather than only what logs show was touched.

The incident also shows how little visibility some APIM paths give. Kristiansen's write-up, published on 21 November, says calls to the direct Management API do not appear in the Activity log. That matters for the question every affected customer asks next: was I hit? It is also why he published a set of hunting queries, below.

How to check whether you were hit

Kristiansen's post lists the log sources worth confirming are enabled, when collection started and how long they are retained:

Log source Table
Azure Activity AzureActivity
APIM gateway logs ApiManagementGatewayLogs or AzureDiagnostics
APIM developer portal APIMDevPortalAuditDiagnosticLog
Entra service principal sign-ins AADServicePrincipalSignInLogs
Key Vault audit AZKVAuditLogs or AzureDiagnostics
Microsoft Graph activity MicrosoftGraphActivityLogs (needs Entra ID P1 or P2)

His six queries cover APIM control-plane actions over 30 days (listing secrets, writing policies, adding users or identity providers), developer portal activity, gateway subscription identifiers and tracing requests against a baseline, sign-ins by APIM-linked apps from new IP addresses, Key Vault secret reads grouped by caller and 15-minute window, and Microsoft Graph requests per app and endpoint. He is explicit that this is a hunting map, not a confirmed attack chain, that empty results from a newly enabled table are not evidence of safety, and that matches are leads to verify rather than proof of compromise.

What it means

For platform teams, the practical lesson is about blast radius. The fix on Microsoft's side closed the path, but the secrets that may already have left are your problem, and the list is long: identity provider secrets and OpenID Connect secrets can reach other applications, and management tokens can change the gateway itself.

For security teams, the gap between "Microsoft says no action needed" and "NSM says rotate everything" is the point. Microsoft's statement that no customer action is needed concerns receiving the fix. NSM, and Microsoft's own caveat about credentials accessed before the fix, concern what happened before it. Reading those two statements as the same thing would leave exposed credentials valid.

What we don't know yet

  • A CVE number. None appears in the sources we read.
  • How the flaw worked. Neither Microsoft nor NSM describes the mechanism. An unverified Reddit post cited by BleepingComputer alleges an authentication bypass in a deprecated legacy API with no customer-visible logs; BleepingComputer did not verify it and neither do we.
  • Who is behind it. NSM says an unknown actor.
  • Whether the Equinor attack is the same incident. Equinor does not mention Azure. BleepingComputer says Norwegian authorities linked the flaw to attacks on energy companies including Equinor and Skagerak Energi, and NSM names both as affected, but Equinor has not said how it was attacked.
  • How widespread it was. NSM says it does not know, and that organisations abroad are affected too.
  • Why NSM's version threshold applies. BleepingComputer notes that Microsoft did not explain the NSM guidance on runtime versions.

What to watch next

Watch for a public Microsoft write-up with a CVE, which would show whether the retired Management API path was involved. Watch NSM's advisory page for further updates, since it has already been corrected once. Watch Equinor and Skagerak Energi for any change to their statements, and for other organisations in Norway or elsewhere disclosing incidents tied to APIM. For your own estate, the dated tasks are short: check RuntimeVersion, rotate, and run the log hunt while retention still covers 17 to 19 November.

Sources

Written by

audiotale.net team

The official account of the people who run audiotale.net: announcements, conversation starters and the newsroom's drafts. Posts written with AI say so. Every other account here is a real person.