5
kinds of stored credential Microsoft says were exposed
4
Classic tiers affected: Developer, Basic, Standard, Premium
17 Nov
Equinor reported the attack, a day before Microsoft found the flaw
1 day
from Microsoft finding the flaw to closing it
An API gateway is a vault of other systems' keys
An API gateway is not just a router. It holds the keys to everything behind it, and when someone reads those keys, patching the gateway does not end the incident. The incident ends when every one of those keys has been changed at the system that issued it.
That is the lesson of the Azure API Management flaw Microsoft closed on 19 Nov 2026. Attackers used it to read secrets that customers had stored inside their APIM Classic instances. Microsoft fixed the access path in one day. Its own advisory then says the part most teams will skim past: the fix does not invalidate anything that was taken before it went in.
Think about what lives in a busy APIM instance. The subscription keys your partners and mobile apps present. The named values that hold backend passwords and API tokens so they do not sit in policy text. The client secrets the developer portal uses to sign people in through Entra ID or another identity provider. The credentials APIM itself uses to call the services behind it. A gateway is built to concentrate trust, and that is exactly what makes it worth robbing.
So the question this week is not "did Microsoft patch it". Microsoft did, on its side, for the managed service. The question is whether a key copied out of your gateway last week still opens a backend today. For most estates, until someone rotates it at the issuer, the honest answer is yes.
What Microsoft and NSM say happened
Microsoft told customers through an Azure Service Health advisory, tracked as MZK9-GH0, that it identified the vulnerability on 18 Nov 2026 and deployed a mitigation the following day, according to BleepingComputer's report on the advisory. The affected tiers are the four Classic tiers of API Management: Developer, Basic, Standard and Premium. The Consumption tier and every v2 tier were not affected. Microsoft's own documentation describes Classic as the original API Management offering, which is why so many long-lived production gateways sit on it.
The advisory lists five kinds of stored credential the flaw could reach: 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 API. Microsoft says it rotated Microsoft-controlled keys where appropriate and told affected customers to rotate potentially exposed credentials, investigate activity in the systems those credentials reach, and review available logs. Microsoft also said exposure applied when Classic instances were not configured according to its recommended security practices, without saying in public which practices.
Norway's National Security Authority, NSM, published its own guidance on 20 Nov 2026 and updated it on 23 Nov. NSM says an unknown actor actively went after access tokens, secrets and named values in APIM. It says the energy sector found the vulnerability first and names Equinor and Skagerak Energi among the organizations affected. NSM's first instruction is blunt: everyone running Azure API Management should assume their secrets and named values are compromised and rotate all tokens and secrets. It also says it is still uncertain how extensive the exploitation was.
Equinor's own statement does not name Azure or the service involved. It says the company detected a cyberattack on 17 Nov 2026, that the attack did not appear to target Equinor specifically, and that by 20 Nov the attack had been stopped, with no indication that data was stolen or altered and production running as normal. Equinor reported the incident to the police. Read together with NSM, the timeline is striking: a customer saw the attack a day before Microsoft identified the flaw.
There is no CVE for this. It is a flaw in a managed cloud service, so there is nothing for a customer to download, and it does not appear in CISA's Known Exploited Vulnerabilities catalog as of the 23 Nov 2026 release, which we checked. That matters for process: a vulnerability program that keys on CVE IDs and KEV entries will not raise a ticket for it at all.
-
Service //
Azure API Management, Classic tiers -
Affected //
Developer, Basic, Standard, Premium -
Not affected //
Consumption and all v2 tiers -
Identified //
18 Nov 2026, closed 19 Nov 2026 -
CVE //
none issued; Service Health tracking ID MZK9-GH0 -
Exploited //
Yes, per Microsoft and NSM -
Stolen keys revoked //
No, customers must rotate
How stolen APIM secrets reach your backends
The gateway flaw is only the first step, and it is the one step Microsoft has closed. Everything after it uses credentials that are valid by design, which is why the rest of the chain looks like normal traffic.
Figure 01
From the gateway to the backends
- 01
Read //
The flaw exposes secrets stored in a Classic instance.
- 02
Copy //
Keys and client secrets leave with the attacker.
- 03
Patch //
Microsoft closes the read path. The copies still work.
- 04
Reuse //
Backends and identity providers accept the stolen secrets.
Result //
The vendor fixed step one. Only rotation breaks step four.
Each credential type opens a different door. A subscription key lets someone call your published APIs as a legitimate consumer, inside whatever quota and product the key belongs to. A named value often holds the password or token a policy injects into the call to a backend, so it opens the backend directly and skips the gateway entirely. An identity provider client secret lets someone authenticate as your developer portal's application registration, and what that buys depends on the permissions the registration holds. A direct management API token reaches the configuration of the gateway itself.
That last point deserves a moment. NSM named access tokens, secrets and named values. A token for the management plane is not just a key to one backend; it is a way to change what the gateway does. If that was taken, the clean up is not only rotation. It includes checking whether anything was added: a subscription you did not issue, a user, a policy that forwards a copy of traffic somewhere new.
We made the same point about Entra Connect Health earlier this week. When a Microsoft managed service leaks what it holds, the fix lives with Microsoft and the exposure lives with you. The secrets belong to your backends, your identity provider and your partners. Microsoft cannot rotate them for you.
Is your APIM instance affected? Tier and runtime
Start with the tier. Any instance on Developer, Basic, Standard or Premium is Classic and was in the affected group. Basic v2, Standard v2, Premium v2 and Consumption were not. Most teams can answer this from the Azure portal or from an inventory query across subscriptions in a few minutes. Do not stop at production. Developer tier instances are where teams test integrations, and they often hold real backend credentials because someone needed the test to work.
Then check the runtime. Microsoft told BleepingComputer the remediation was fully deployed to Microsoft-hosted instances and required no customer action. NSM still tells organizations to verify that their instances received the update, and gives a way to do it: the gateway's internal status page reports a RuntimeVersion. On the 0.52 branch, NSM says the instance is patched if the last number is 31936 or higher. On the 0.53 branch, the threshold is 31938. NSM says a version that does not follow this pattern belongs to a v2 or Consumption instance, which was not affected, and that anything lower is still vulnerable. If you find an instance below the threshold, NSM's advice is to contact your provider directly.
Microsoft did not explain to BleepingComputer why NSM kept advising version checks. We would do the check anyway. It is one request per gateway, and it turns "Microsoft says" into a fact you have looked at.
The runtime check answers whether the door is closed today. It says nothing about whether anyone walked through it before 19 Nov. NSM's instruction to assume compromise covers that gap, and we agree with it. An instance on an affected tier, holding secrets, during the exposure window, gets treated as exposed. There is no log you can read today that safely proves the opposite.
How to rotate APIM secrets so the old ones die
Microsoft published a rotation guide on 21 Nov 2026 that is worth reading in full. Its most important sentence is short: updating the value in API Management does not revoke the old credential at its issuer. If a named value holds a backend password and you paste a new password into APIM without changing it on the backend, you have changed nothing an attacker cares about.
The guide covers more credential types than the advisory lists, and the extra ones are where rotation programs fall short:
What a full APIM rotation touches
-
Subscription keys //
both primary and secondary, regenerated -
Named values //
every one that holds a secret, changed at the issuer -
Backend credentials //
headers, query parameters and client certificates -
OAuth and OpenID Connect //
client secrets, including the developer portal's identity providers -
Connection strings //
for example, Event Hubs loggers -
Inline policy secrets //
anything written directly into policy text -
Management keys //
the legacy direct management API access keys
The order matters when both old and new can be valid at once. Microsoft's guide sets it out: create the replacement at the issuer, update APIM, test, then revoke the old secret. For management keys, it says to confirm callers have moved off each key before regenerating it. That is the difference between a rotation and an outage.
Subscription keys are the hard part politically, because they belong to other people. A partner integration, a mobile app build, a vendor's batch job. Regenerating a key breaks every caller that has not been told. That is not a reason to skip it. It is a reason to start the conversation with consumers today, and to regenerate the secondary first, move callers to it, then regenerate the primary.
Two more steps from the same guide close the loop. Review the configuration for subscriptions, users, policies or backends that you did not create. Then take the chance to stop storing secrets in APIM at all where you can: managed identities for calls to Azure services, and Key Vault references for named values. Our managed identity review shows how we check that a workload identity holds only what it needs, which matters once it replaces a shared secret.
How to hunt for stolen APIM credentials
Hunt where the stolen credentials would be used, not only where they were stolen. The read itself may not show up at all: an administrator alleged in a public post that the access path produced no logs customers could see, which BleepingComputer has not verified and neither have we. What you can see is a secret being presented by someone who is not your gateway.
Three places carry that signal. Entra ID service principal sign-ins show an application registration authenticating with a client secret, and the address it came from. The APIM gateway logs show which subscription key called which API and from where. The Azure Activity Log shows who asked Azure Resource Manager to hand over a secret through the normal management path. Our Azure Activity Log review and Entra sign-in and audit log review pages cover how those logs are exported and how long they are kept, which decides how far back you can look.
Figure 02
Secrets used from somewhere new, and secrets read through the management plane
KQL
// 1. App registrations signing in with a client secret from an address
// not seen for that app in the 30 days before the exposure window.
let baseline = AADServicePrincipalSignInLogs
| where TimeGenerated between (ago(44d) .. ago(14d))
| where ResultType == "0"
| distinct AppId, IPAddress;
AADServicePrincipalSignInLogs
| where TimeGenerated > ago(14d)
| where ClientCredentialType contains "secret"
| join kind=leftanti baseline on AppId, IPAddress
| summarize FirstSeen = min(TimeGenerated), SignIns = count(),
Resources = make_set(ResourceDisplayName)
by AppId, ServicePrincipalName, IPAddress, ResultType
// 2. Secret reads on APIM through Azure Resource Manager.
// Run separately. Expect your own automation; look for callers you do not know.
// AzureActivity
// | where TimeGenerated > ago(30d)
// | where OperationNameValue in~ (
// "Microsoft.ApiManagement/service/namedValues/listValue/action",
// "Microsoft.ApiManagement/service/subscriptions/listSecrets/action",
// "Microsoft.ApiManagement/service/tenant/listSecrets/action")
// | summarize Calls = count(), First = min(TimeGenerated), Last = max(TimeGenerated)
// by Caller, CallerIpAddress, OperationNameValue, ActivityStatusValue For subscription keys, the gateway logs are the place to look. The ApiManagementGatewayLogs table records the caller address, the subscription that made the call, the API and the response code. Group by subscription and caller address for the last few weeks and look for keys suddenly used from a new network, or for a key that normally calls one API starting to walk the others. A key that sees a burst of 401 and 404 responses is someone exploring.
For named values that hold backend credentials, the gateway logs will not help, because the attacker does not need the gateway. Go to the backend. Its own authentication log, a database's connection log, a SaaS vendor's audit trail. The question is the same everywhere: was this credential used from anywhere other than our APIM egress addresses since mid November? If your backends do not restrict callers to the gateway's addresses, this is also the week to ask why not.
Absence of evidence here is weak evidence. Logs that were never exported have aged out, and a careful actor uses a stolen key from a cloud address that looks like everyone else's. Rotate regardless of what the hunt finds. The hunt tells you what to investigate; it does not tell you what to leave alone.
How we test gateway secrets on an engagement
On cloud engagements, the API gateway is one of the first places we look once we hold any foothold in a subscription. The reason is the same one this incident shows: it is where an organization collects the credentials for systems that have nothing else in common. We regularly find backend passwords stored as plain named values rather than Key Vault references, and subscription keys that were issued years ago, never rotated, and shared by more than one consumer.
On a sanctioned engagement the test is a question, not a smash and grab. Which identities in the tenant can read APIM secrets through the management plane, and do they need to? Which backends accept a credential from anywhere on the internet instead of only from the gateway? If one named value were copied today, what could it reach, and how long would it keep working? We document the reachable set and prove access to a minimal, agreed target, without changing data. Our cloud account first hour page sets out how we orient in a new subscription, and our open source atarus-cloud scanner reads Azure configuration with read-only access to find the same class of exposure.
The finding that matters most is usually not the gateway at all. It is the backend that trusts a static secret, with no network restriction and no expiry, because someone assumed the gateway in front of it was the security boundary. This week showed what that assumption costs: the boundary held the keys, and the keys walked.
What to do today
-
List every Classic APIM instance in every subscription, including Developer tier. Developer, Basic, Standard and Premium were affected; v2 and Consumption were not.
-
Rotate every secret those instances hold, at its issuer. Named values, backend credentials, identity provider and OpenID Connect client secrets, subscription keys and management keys. Changing the value only inside APIM revokes nothing.
-
Check each gateway's RuntimeVersion against NSM's thresholds. 0.52 builds at 31936 or higher and 0.53 builds at 31938 or higher are patched; contact Microsoft about anything lower.
-
Hunt where the credentials are used. Service principal sign-ins, gateway logs and backend logs since mid November. The Detection block above is a starting point.
-
Look for configuration you did not create. New subscriptions, users, policies or backends on the instance point to management plane access, not just a read.
-
Stop storing what you can avoid storing. Managed identities for Azure backends, Key Vault references for named values, and backends that accept calls only from the gateway.
SOURCES
- NSM // an unknown actor targeted APIM secrets, Equinor and Skagerak Energi affected, rotate everything, the runtime version check
- BleepingComputer // Microsoft's advisory: dates, affected tiers, the credential list and that the fix revokes nothing
- Microsoft Tech Community // how to rotate each APIM credential type, and that updating APIM does not revoke the old value at its issuer
- Equinor // attack detected 17 Nov, stopped 20 Nov, no indication data was stolen or altered
- Microsoft Learn // the Classic, v2 and Consumption tiers of API Management