← All playbooks
CriticalExploited vuln · 2026-11-24

Microsoft Azure API Management Classic flaw exploited: named-value secrets, client secrets and subscription keys stolen, Equinor among victims

SockAnalyst · Security+ certified analyst.

What happened

Norway's National Security Authority (NSM) said on November 20, 2026 (updated November 23) that an unknown actor exploited a vulnerability in Microsoft Azure API Management (APIM) and actively went after access tokens, secrets and named values stored in APIM, hitting several Norwegian organizations, including energy companies Equinor and Skagerak Energi, as well as other sectors in Norway and abroad. NSM says the vulnerability was first discovered by the Norwegian energy sector, credits Equinor with early detection, and says it is still uncertain how extensive the exploitation is and has been. In a non-public Azure Service Health advisory (tracking ID MZK9-GH0) shared with BleepingComputer, Microsoft says it identified the issue on November 18, 2026 and closed the access path on November 19; the flaw allowed unauthorized access to certain management functionality on APIM Classic instances not configured according to its documented best practices, including administrative operations such as reading secrets, and customers were exposed before Microsoft found it. Microsoft lists the data that may have been accessed: secrets stored in Named Values, client secrets for identity providers and OpenID Connect providers, subscription keys, and tokens used to call the direct management APIs. Its fix does not invalidate credentials taken before November 19. Equinor reported an attack on November 17 and later said it stopped it with no sign data was stolen or altered; Skagerak Energi reported an attempted attack with no operational impact. An administrator on Reddit claimed attackers used an auth bypass in a deprecated legacy management API that produced no customer-visible logs; BleepingComputer says it could not verify this. No CVE has been published, Microsoft has not said how many customers were affected, and the attacker is unknown.

Who's affected

Organizations running Azure API Management Classic (Developer, Basic, Standard or Premium tier) before November 19, 2026, and every backend, identity provider or app whose credentials were stored in those instances. NSM tells all APIM users to assume their secrets and named values are exposed. APIM Consumption tier and v2 tiers are not affected, per Microsoft.

✅ Fix / patch

  • Confirm the fix reached your instance (NSM): open https://<your-gateway-hostname>/internal-status-0123456789abcdef and read RuntimeVersion. 0.52.x is patched at build 31936 or higher, 0.53.x at 31938 or higher; other patterns (e.g. 0.53.4608.0) are v2/Consumption and not affected. Lower numbers are still vulnerable: contact Microsoft.
  • Rotate everything APIM held: Named Values (including the Key Vault secrets they reference), backend credentials and API keys, identity-provider and OpenID Connect client secrets, subscription keys, and the tenant access keys used to sign direct management API tokens. Microsoft's fix does not invalidate credentials taken before November 19.
  • Turn off the retired direct Management API on every instance (Management API > Enable Management REST API = No); it uses SharedAccessSignature tokens, bypasses Entra ID/RBAC and its calls are not in the Azure Activity log (per Anders Kristiansen's analysis).
  • Map which data and systems sit behind each APIM instance, remove APIM users and identity providers you do not need, unpublish an unused legacy developer portal, and restrict who can edit policies or enable request tracing.
  • If you find signs of compromise, investigate the systems reachable with the stored credentials; Norwegian organizations should report to NSM.

🔎 Quick hunt check

No attacker IPs, domains or hashes have been published. Hunt where stolen APIM credentials would be used next: (1) APIM control-plane actions that reveal secrets (namedValues/listValue, subscriptions/listSecrets, tenant/listSecrets, identityProviders/listSecrets) or change policies/users/identity providers since Nov 1, from callers that are not your admins or pipelines; (2) sign-ins by the app registrations whose secrets were stored in APIM from IPs those apps have not used before; (3) Key Vault reads of secrets APIM references by unexpected identities. Direct Management API calls are not in the Activity log, so absence of control-plane hits is not proof you are clean.

MITRE ATT&CK: T1190, T1552.001, T1555.006, T1078.004, T1550.001

IOCs

No IOCs (IPs, domains or hashes) published by the sources yet.

Hunt queries

Starting points built only from published indicators. Field names vary; tune before use.

```Azure APIM Classic secret theft: APIM control-plane actions that reveal secrets or change trust, since Nov 1, 2026 (Azure Activity log via Splunk Add-on for Microsoft Cloud Services)```
index=* earliest=11/01/2026:00:00:00 (sourcetype=mscs:azure:eventhub OR sourcetype=azure:monitor:activity OR sourcetype=mscs:azure:audit)
| eval op=lower(coalesce('properties.operationName', operationName, 'operationName.value', "")), rid=lower(coalesce(resourceId, 'properties.resourceId', ""))
| where like(op, "microsoft.apimanagement/%") OR like(rid, "%/microsoft.apimanagement/%")
| eval signal=case(match(op, "namedvalues/listvalue/action|subscriptions/listsecrets/action|tenant/listsecrets/action|identityproviders/listsecrets/action|openidconnectproviders/listsecrets/action"), "secret_read", match(op, "policies/write|namedvalues/write|identityproviders/write|users/write|portalsettings/write|tenant/regeneratePrimaryKey|tenant/regenerateSecondaryKey"), "config_change")
| where isnotnull(signal)
| eval caller=coalesce(caller, 'identity.claims.name', 'properties.caller', "unknown"), ip=coalesce(callerIpAddress, 'properties.callerIpAddress', "")
| stats count min(_time) as first_seen max(_time) as last_seen values(op) as operations values(ip) as caller_ips by signal, caller, rid
| convert ctime(first_seen) ctime(last_seen)
| sort signal - count
``` Any caller that is not a known admin or pipeline is a lead. Then check sign-ins of the apps whose secrets were stored in APIM from new IPs. ```
// Azure APIM Classic secret theft: secret-revealing / trust-changing APIM actions + new-IP sign-ins for APIM-linked apps (since Nov 1, 2026)
let Since = datetime(2026-11-01);
let ApimAppIds = dynamic([]); // fill: client IDs of apps whose secrets live in APIM named values, backends or identity providers
let ControlPlane = AzureActivity
| where TimeGenerated >= Since and ResourceProviderValue =~ "MICROSOFT.APIMANAGEMENT"
| extend Op = tolower(OperationNameValue)
| where Op has_any ("/namedvalues/listvalue/action", "/subscriptions/listsecrets/action", "/tenant/listsecrets/action", "/identityproviders/listsecrets/action", "/openidconnectproviders/listsecrets/action", "/policies/write", "/namedvalues/write", "/identityproviders/write", "/users/write", "/portalsettings/write")
| summarize Count = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), Detail = make_set(Op, 20), IPs = make_set(CallerIpAddress, 20) by Who = Caller, Resource = _ResourceId
| extend Check = "APIM control-plane secret read / config change";
let Known = AADServicePrincipalSignInLogs
| where TimeGenerated between (Since - 30d .. Since) and AppId in (ApimAppIds)
| distinct AppId, IPAddress;
let NewIpSignIns = AADServicePrincipalSignInLogs
| where TimeGenerated >= Since and AppId in (ApimAppIds)
| join kind=leftanti Known on AppId, IPAddress
| summarize Count = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), Detail = make_set(ResourceDisplayName, 20), IPs = make_set(IPAddress, 20) by Who = ServicePrincipalName, Resource = AppId
| extend Check = "APIM-linked app sign-in from new IP";
union ControlPlane, NewIpSignIns
| order by Check asc, FirstSeen asc

See all hunt queries →

⏱ CISA deadline

Not in CISA KEV as of Nov 27, 2026.

Sources

Primary source note: Microsoft's own advisory (Azure Service Health MZK9-GH0) is sent privately to affected customers and is not publicly posted; Microsoft's statements are quoted via BleepingComputer, SecurityWeek and The Hacker News. NSM's public advisory is the primary source used.

Related playbooks

Get the SockAnalyst Weekly Brief free, every Thursday.

One email a week with the KEV deadlines, patches and hunt queries that matter. New playbooks still post here on the site every morning.

Subscribe free

Read the free weekly pack →