Azure API Management vulnerability: Classic tiers
A Classic-tier Azure API Management flaw let attackers go after stored secrets, hitting Equinor. How to check your runtime version and what to rotate.

On this page 4 sections ▾
WHAT TO DO
- With no patch to install, the work is checking your runtime version and rotating every credential your Classic instances hold at whatever system issued it, because changing a backend password only in APIM leaves the stolen copy working.
- Nobody knows yet how widely the flaw was exploited or by whom, and NSM warns that more attackers could try their luck now that it's public.
- A separate Entra Connect Health flaw, fixed the same day, exposed admin email addresses, so expect targeted phishing aimed at your admins.
- Affected
- Classic tiers on runtime builds below NSM's thresholds; v2 tiers not affected
- Fixed in
- Microsoft mitigation applied automatically November 19; runtime 0.52.x at 31936+, 0.53.x at 31938+
- Disclosed
- Nov 20, 2026
- Exploited
- Yes, before the fix (Equinor and Skagerak Energi among those hit)
- Workaround
- Nothing to install; rotate every secret and token your APIM instances hold
If your organization runs Azure API Management on one of the older Classic tiers (the newer v2 tiers weren't affected), Microsoft has privately warned customers that an attacker could have read the secrets stored in those instances before it closed the hole on November 19. The attacks were caught in Norway, where the energy companies Equinor and Skagerak Energi were both hit, and Norway's National Security Authority (NSM) is now telling every APIM customer to assume their secrets and named values are already in someone else's hands.
Quick facts
Microsoft retired APIM's old direct Management API in March 2025, but it kept working, and calls to it skip Entra ID and Azure RBAC without ever showing up in the Azure Activity log.
Equinor went public with its attack on November 17, a day before Microsoft says it identified the flaw, and NSM credits Norway's energy sector with spotting it first.
Microsoft's advisory went to customers privately and surfaced when someone who says they received it posted it on Reddit. Publicly, Microsoft has posted a guide to rotating APIM credentials that never mentions the flaw.
#How the Equinor attack led back to Azure
The trail started with two Norwegian energy companies reporting attacks a day apart, and on Friday NSM connected both to Microsoft's cloud:
- Equinor detects an ongoing attack on some of its IT systems and says so publicly.
- Skagerak Energi discloses a separate attack, and Microsoft identifies the issue in APIM's Classic tiers, according to its private advisory.
- Microsoft closes the access path with an automatic mitigation.
- Equinor says the attack is fully contained, and NSM ties both incidents to Azure API Management and publishes what to do.
- Microsoft posts guidance on rotating APIM credentials, without naming the flaw.
Equinor and Skagerak both say production kept running through the attacks. Equinor has found "no indication that data has been stolen or altered" and doesn't think it was targeted specifically, while Skagerak says nothing in its operations was affected. Microsoft still hasn't said how many of its customers were exposed.
#What the Azure API Management flaw exposed
Microsoft hasn't said how the bug worked, but The Register, which has seen the advisory, reports that attackers were caught pulling secrets out of APIM instances and running admin operations on them. The advisory lists these as potentially exposed:
- Named valuesSettings your policies read at runtime, which can include secrets.
- Identity provider client secretsThe secrets APIM uses to talk to identity providers and OpenID Connect providers.
- Subscription keysThe keys your API consumers send to get through the gateway.
- Management API tokensTokens for APIM's direct management APIs, which can change how the instance itself is set up.
ELI5: explain it simply▾

THE WORDS
- Named value
- A saved setting, often a password or key, that APIM fills in when it forwards a request.
- Subscription key
- A key each API customer sends so the gateway knows who they are.
- Client secret
- A password an app uses to prove who it is to a sign-in service.
THE IDEA
Picture a hotel front desk that keeps a copy of every room key behind the counter. Someone got behind the counter and could copy those keys, and a copied key keeps opening its room until that room's lock is changed.
Microsoft tied the exposure to Classic instances that didn't follow its network security guidance or that kept secrets directly in APIM instead of pulling them from Azure Key Vault.
Keeping secrets in Key Vault doesn't fully clear you, though, since anyone who can edit policies can read named values. APIM's request tracing can also reveal values pulled from Key Vault, so a secret stored safely in a vault can still leak while APIM is using it.
The bigger worry is what those secrets open: APIM sits in front of your backends holding the credentials to reach them, so an attacker with a stolen one can go straight to the service behind it, with whatever permissions it carries, until it's revoked or expires.
#Is your Azure API Management instance affected?
Start by finding every instance, old development and test ones included, since customers told The Register that forgotten instances like those could leave more organizations exposed. The first command lists every APIM instance in the subscriptions you can see, using the Azure Resource Graph query from Microsoft's rotation guide with the tier added. The second reads an instance's runtime version from the gateway status page NSM points to. We couldn't run either against a live tenant, so the notes say what to look for instead of showing output:
student@opnf:~$ az graph query -q "resources | where type =~ 'microsoft.apimanagement/service' | project name, sku = tostring(sku.name), resourceGroup, subscriptionId" # sku shows each instance's tier student@opnf:~$ curl -s https://<your-gateway-hostname>/internal-status-0123456789abcdef # the default hostname is <name>.azure-api.net; look for RuntimeVersion
NSM's thresholds for that RuntimeVersion value, where x is the last number in it:
| System | Status |
|---|---|
| 0.52.x, with x at 31936 or higher | Patched |
| 0.53.x, with x at 31938 or higher | Patched |
| 0.52.x or 0.53.x with a lower x | Still vulnerable: contact your provider |
| A different pattern, like 0.53.4608.0 or 0.52.4150.0 | v2 or Consumption tier: not vulnerable |
A patched number only tells you the hole is closed now, not whether anyone used it before November 19, which is why NSM pairs the version check with rotating everything. If you do find signs of a break-in, NSM also says to map what sits behind that instance, so you know how far the attacker could have reached. Organizations in Norway that find signs of compromise are asked to contact NSM directly.
If you run Classic-tier instances
Microsoft's rotation guide has Azure CLI and PowerShell commands for each credential type. These are the steps that matter most right now:
- Replace each secret where it was issuedCreate the new credential at the backend service or identity provider first, then update APIM, test your APIs and only then revoke the old one. Changing the value in APIM doesn't revoke anything at the issuer.
- Swap subscription keys one at a timeMove callers to the secondary key and regenerate the primary. Once that tests fine, move callers back to the primary and regenerate the secondary, so nobody gets locked out along the way.
- Regenerate the tenant access keysThese legacy management access keys come in a pair, so move anything using one over to the other before you regenerate it, then do the same in reverse.
- Pull hard-coded secrets out of policiesMove any credential written into policy XML into a Key Vault-backed named value, referenced by its display name, and test before revoking the old one.
- Look for things you didn't createReview subscriptions, users, policies and backends, since an attacker running admin operations could have added their own.
Those tenant access keys are what sign requests to the retired Management API. Security expert Anders Kristiansen recommends switching that API off on every instance unless something still depends on it: in the portal, open Management API and set Enable Management REST API to No. While you're in there, unpublish the developer portal if nobody uses it, or lock down its sign-up if they do.
Signs someone already got in
No one has published indicators such as IP addresses or file names for these attacks, so hunting means looking for activity that doesn't fit. Kristiansen's write-up has KQL queries for each of these log sources, assuming you collect them:
- ApiManagementGatewayLogsSubscription keys you haven't seen in the last 30 days, and requests asking for tracing.
- AzureActivityManagement actions that list secrets, rewrite policies or add users and identity providers.
- AADServicePrincipalSignInLogsAPIM-linked apps signing in from new IP addresses or requesting tokens for many resources at once.
- AZKVAuditLogsWho read or listed the Key Vault secrets APIM references.
- MicrosoftGraphActivityLogsWhat those apps did in Microsoft Graph after signing in (needs Entra ID P1 or P2).
- APIMDevPortalAuditDiagnosticLogSign-ups and account changes on a developer portal you thought nobody used.
Read the results with care, because a match is a lead to check with whoever owns that app or key, not proof of a breach. An empty result only counts if the logs were switched on and kept for the whole period. Kristiansen also notes his queries weren't tested against a live APIM instance, so check the table and column names in your own workspace first.
#Also fixed November 19: an Entra Connect Health flaw
The same day, Microsoft fixed a separate bug in the Entra Connect Health API that had been there since July 23. Microsoft caught it on November 9, and until the fix it let attackers read tenant metadata, including the email addresses of each tenant's technical contacts and admins, tenant IDs, domains, license tiers and directory sync times. No passwords, password hashes, tokens or valid keys were exposed, and Microsoft found no configuration changes.
Microsoft confirmed unauthorized reads only for tenants that got a direct advisory in Azure Service Health, so check for one by signing in to the Azure Portal yourself rather than following links in an email. The leaked addresses belong to exactly the people attackers would want to phish, so warn your Global Admins and technical contacts to expect convincing Entra-themed emails.
Is Azure API Management v2 affected?
Is there a CVE for the Azure API Management vulnerability?
Who was behind the Equinor cyberattack?
What this means for you
If you have Classic-tier APIM instances, find all of them, check each runtime version and rotate every credential they hold at the system that issued it, even on instances that look patched. Then check Azure Service Health for an Entra Connect Health advisory and warn your admins about phishing.
SourcesThe RegisterThe RecordSecurityWeekNSMMicrosoft Tech CommunityAnders Kristiansenmsandbu.orgSecurityOnline
Get opnF in your inbox
Tech news for IT professionals that actually teaches you something.
Our promise to you: we'll be conscious about email quality/frequency, and your address will never be shared/sold.