Azure API Management Classic Flaw Exploited Against Norwegian Energy Firms: Microsoft Fixed It With No CVE, but Stolen Secrets Still Work — Check Your Build and Rotate Everything

Attackers abused a now-fixed Azure API Management Classic flaw to target stored secrets at Equinor, Skagerak Energi and other Norwegian organisations, and NSM says every APIM user should assume their tokens, keys and named values are exposed.
Microsoft has fixed a flaw in the Classic tiers of Azure API Management (APIM) that attackers used to go after stored secrets at Norwegian energy companies, including Equinor and Skagerak Energi. The fix runs on Microsoft's side, so there is nothing to install. It does not, however, cancel any credential that was read before the fix went in. Norway's National Security Authority (NSM) tells every APIM customer to assume its secrets are gone and to replace them.
No CVE has been published. That matters because many vulnerability teams only track CVE feeds and patch lists, and this issue shows up in neither.
What Happened
The timeline below comes from public statements by the affected companies, NSM and Microsoft:
- 17 November: Equinor, Norway's state-controlled energy group, reports a cyberattack. It later says it stopped the attack and found no sign that data was stolen or changed. Some internal services were disrupted, but production continued.
- 18 November: Microsoft says it identified the APIM vulnerability. The same day, Skagerak Energi discloses an attempted attack and says operations and production were not affected.
- 19 November: Microsoft closes the access path on all Microsoft-hosted instances and rotates the keys and credentials it controls where needed.
- 20 November: NSM publishes measures for APIM users and names the energy sector as the first to detect the problem. It credits Equinor for spotting the attack early and sharing information quickly. NSM updated its guidance on 23 November.
According to its advisory to customers (Azure Service Health tracking ID MZK9-GH0), Microsoft found that "customers were exposed and an unauthorized party could have used the issue to access secrets" in APIM Classic instances. It also warned that the fix "does not automatically invalidate credentials that may have been accessed before the fix was deployed."
NSM says it has seen nothing so far suggesting the attacks affected deliveries by Norwegian organisations. It also says it does not yet know how widely the flaw was exploited, now or in the past.
Technical Details
Microsoft describes the flaw as unauthorized access to some management functions on APIM Classic instances that were not set up according to its recommended security practices. Microsoft ties the exposure to Classic deployments that did not follow its network security guidance, and to secrets stored directly in APIM rather than referenced from Azure Key Vault.
Microsoft lists these items as possibly exposed:
- Secrets stored as Named Values
- Client secrets for configured identity providers
- Client secrets for OpenID Connect providers
- Subscription keys
- Tokens used to call the direct management APIs
An administrator wrote in a public forum post that the attackers used an authentication bypass in a deprecated legacy API to reach a privileged system account. The same post said that this API wrote no logs and that a valid administrator token was then used against Key Vault. Microsoft has not confirmed this account and it has not been independently verified. It does match a known blind spot, though. The old direct Management REST API, retired in March 2025, is not recorded in the Azure Resource Manager activity log, and normal read operations do not appear there either.
Who Is Affected
Microsoft says the Developer, Basic, Standard and Premium Classic tiers were affected. The Classic Consumption tier and all v2 tiers were not. In practice, an APIM gateway often holds the keys to many systems: backend API credentials, OAuth client secrets for Entra ID and other identity providers, and keys that partners and apps use to call your APIs. A stolen APIM secret can open systems well beyond the gateway.
NSM's guidance applies to every APIM user, not only energy companies. The attacks were found in Norway first, but nothing so far suggests the flaw only worked there.
Patch Status
Microsoft says the fix is fully deployed to Microsoft-hosted instances and needs no action from customers. NSM still asks organisations to confirm their own instance is updated. To check, open https://<your-gateway-hostname>/internal-status-0123456789abcdef and read the RuntimeVersion value:
- 0.52.x: patched if the last number is 31936 or higher.
- 0.53.x: patched if the last number is 31938 or higher.
- Versions like 0.53.4608.0 or 0.52.4150.0 belong to v2 or Consumption tiers, which are not vulnerable.
- Any lower build number is still vulnerable. Contact Microsoft if you see one.
What To Do Now
Treat everything stored in a Classic APIM instance before 19 November as compromised. Microsoft's own rotation guidance warns that updating a value in API Management does not revoke the old credential where it was issued. Rotate in this order:
- Create the replacement credential at the issuer (the backend service, Entra ID app registration or identity provider).
- Update API Management with the new value.
- Test your APIs.
- Revoke the old secret at the issuer.
Cover subscription keys, Named Values, backend credentials, OAuth and OpenID Connect client secrets, logger connection strings, credentials written directly into policies, and the legacy tenant management access keys. Also set Management API → Enable Management REST API to No on every instance. Unpublish or restrict the developer portal if you do not use it, and remove APIM users, subscriptions, policies and backends that nobody on your team created.
Next, hunt in the systems those credentials unlock, not just in APIM. A quiet activity log does not mean nothing happened. Useful places to look:
AzureActivityforlistSecrets/listValueactions on APIM and writes to policies, Named Values, identity providers or users.ApiManagementGatewayLogsfor subscription IDs you have not seen before and for requests with tracing turned on.AADServicePrincipalSignInLogsfor APIM-linked app registrations signing in from new IP addresses.- Key Vault audit logs for
SecretGetcalls from unexpected callers, and Microsoft Graph activity by APIM-linked apps.
A simple starting query for the first item:
AzureActivity
| where TimeGenerated > ago(30d)
| where ResourceProviderValue =~ "MICROSOFT.APIMANAGEMENT"
| where OperationNameValue has_any ("listsecrets", "listvalue", "policies/write", "namedValues/write", "identityProviders/write", "users/write")
| project TimeGenerated, Caller, CallerIpAddress, OperationNameValue, _ResourceId
Organisations in Norway that find signs of compromise should contact NSM's NorCERT.
Why It Matters
This comes only days after Microsoft fixed an exploited Entra Connect Health API flaw on the server side. Once again, customers had to rely on vendor notices, not patch feeds, to learn they might be exposed. Cloud-side fixes close the hole, but they cannot recover secrets that were already taken. An API gateway that holds credentials for half the business is a high-value target for attackers going after critical infrastructure. The lasting lesson matches Microsoft's own advice: reference secrets from Key Vault with managed identities, turn off legacy management access, and make sure every credential the gateway holds can be rotated quickly.
