Azure API Management CVE-2026-139934: Rotation, Hunting – ThreatDefence
Skip to content
CriticalActive

Azure API Management CVE-2026-139934: Secret Rotation and Hunting

Roche Zhang
Roche Zhang · Senior Security Analyst
Published December 4, 2026

CVE-2026-139934 is a critical flaw in the Classic tiers of Azure API Management that let an unauthenticated attacker run administrative operations and read stored secrets. Microsoft fixed the platform on November 19, 2026, after attackers had already used it, and the fix does not cancel stolen credentials.

TL;DR

Check Azure Service Health notice MZK9-GH0, then rotate every secret your Classic instances held, at the system that issued it.

December 4, 2026: First published. Microsoft has not released the root cause, indicators of compromise or the number of affected customers. The exposure criteria are in the private Service Health notice, and EPSS has not scored the CVE yet.
At a glance
SeverityCritical
StatusActive
ExploitedYes. Microsoft marks the CVE as Exploitation Detected. Norway's National Security Authority linked the flaw to attacks on Equinor and Skagerak Energi in November 2026. CISA added it to KEV on December 4, 2026, with a December 7 due date and forensic triage required
ProductMicrosoft Azure API Management, Classic Developer, Basic, Standard and Premium tiers. The v2 tiers and the Consumption tier are not affected
CVEsCVE-2026-139934
Fixed inFixed by Microsoft on the platform on November 19, 2026. There is no update to install. The fix does not cancel secrets that were read before it, so exposed instances need every stored and referenced secret rotated

On December 3, 2026, Microsoft published CVE-2026-139934, an elevation of privilege vulnerability in Azure API Management (APIM) rated 9.8. Microsoft describes it as incorrect authorization that “allows an unauthorized attacker to elevate privileges over a network”, and marks it Exploitation Detected. In its advisory, Microsoft says an unauthenticated attacker could send specially crafted network requests to an affected instance and, if successful, perform administrative operations, including secrets management.

The CVE is the public record of an incident that started in November. Microsoft identified the issue on November 18, fixed the platform on November 19 and told Classic tier customers through a private Azure Service Health notice, tracking ID MZK9-GH0, on November 21 and again on November 24. On November 20, Norway’s National Security Authority (NSM) linked the flaw to attacks on the energy companies Equinor and Skagerak Energi, and said an unknown actor has been actively looking for access tokens, secrets and named values in APIM.

There is nothing to patch. An API gateway holds the keys to everything behind it: backend API keys, database connection strings, OAuth client secrets and, where it fronts AI services, model provider keys. Microsoft says its fix does not invalidate credentials that were accessed before it was deployed. A secret that was read before November 19 works today from anywhere, and it keeps working until it is revoked at the system that issued it.

CISA added CVE-2026-139934 to its Known Exploited Vulnerabilities catalog on December 4, 2026, with a due date of December 7 for US federal agencies. It also marked the entry for forensic triage: under Binding Operational Directive 26-04, agencies must follow CISA’s forensics triage requirements as well as apply Microsoft’s mitigations. That matches the advice below, which is to rotate and then look for misuse.

CVE CVSS EPSS CISA KEV Fixed in
CVE-2026-139934 9.8 Critical (CVSS 3.1), Microsoft Not yet scored Yes, added December 4, 2026 Fixed by Microsoft on the platform on November 19, 2026. No customer update

CVSS and EPSS from NVD and FIRST, exploitation status from the CISA Known Exploited Vulnerabilities catalog, checked December 4, 2026.

What is confirmed

Point Status
Incorrect authorization (CWE-863) in Azure API Management, CVSS 3.1 base score 9.8 Microsoft, CVE-2026-139934
Unauthenticated, over the network, no user interaction Microsoft, CVSS vector AV:N/AC:L/PR:N/UI:N
A successful attack allows administrative operations, including secrets management Microsoft
Affected: Classic Developer, Basic, Standard and Premium tiers Microsoft
The v2 tiers and the Consumption tier Not affected, per Microsoft
Identified by Microsoft on November 18, fixed on the platform on November 19, 2026 Microsoft’s Service Health notice, as reported by BleepingComputer, and the CVE advisory
Exploited before the fix Microsoft marks the CVE Exploitation Detected. NSM confirmed attacks in Norway and says other countries and sectors were affected
The fix does not invalidate secrets that were already read Microsoft
Customer action: rotate secrets stored in APIM and Key Vault secrets that APIM references, then investigate Microsoft
In CISA KEV from December 4, 2026, due December 7, with forensic triage required CISA
Root cause and the request that triggers the flaw Not published
Indicators of compromise from Microsoft None published
Who did it, and how many customers were exposed Not disclosed
Public exploit code None known

How the flaw works

Azure API Management has two sides. The gateway handles API traffic. The management plane holds the configuration: APIs, policies, users, subscriptions and the secrets the gateway needs to call backends. CVE-2026-139934 is on the management side. Microsoft’s Service Health notice, as reported by BleepingComputer, says the issue could allow unauthorized access to certain management functionality, and that the fix “blocks the unauthorized management-plane access path”.

Microsoft has not said which interface was involved. The notice says exposure applied when Classic instances “were not configured according to recommended security best practices”, and the CVE advisory points customers to the November 24 Service Health update for the exact exposure criteria. That update is private. Help Net Security’s reading of it is that the instances at risk were those without the recommended network integration and those that stored secrets directly in APIM.

The likely path is the legacy direct management API. This is the view of security researcher Anders Kristiansen and of the Cloud Security Alliance, and Microsoft has not confirmed it. Every Classic instance has a management endpoint of its own at <name>.management.azure-api.net. It predates Azure Resource Manager and it does not use Microsoft Entra ID or Azure role-based access control. A caller authenticates with a shared access signature token signed with the instance’s tenant access key. Microsoft retired this API on March 15, 2025, and its documentation tells customers to disable it where it is still enabled. Both note that retirement ended support for the API and did not remove the endpoint from instances that had it switched on. Microsoft’s own list of exposed items includes tokens used to call the direct management API, which is consistent with this reading.

Two consequences follow if that is the path. Calls to the direct management API are not written to the Azure Activity log, so an instance can have been read with nothing in the logs most teams check first. And the tenant access key is itself a secret that needs regenerating.

BleepingComputer also reported an unverified account from an administrator who said their organization found Azure Key Vault access made with a valid administrator token, and that the legacy API had produced no logs they could use. Microsoft has not commented on it.

What an attacker could take

Microsoft’s notice lists the items that could have been accessed. Microsoft’s rotation guide and the CVE advisory add the rest.

Secret Where it lives in APIM What it unlocks
Secret named values Named values marked as secret Backend API keys, database and storage connection strings, webhook secrets, model provider keys
Key Vault secrets referenced by named values Azure Key Vault, read by the instance’s managed identity The same systems. Microsoft’s CVE advisory tells exposed customers to rotate these as well
Identity provider client secrets Developer portal identity providers The app registration behind the portal sign-in
OAuth 2.0 and OpenID Connect client secrets Authorization servers and OpenID Connect providers Tokens for the applications those clients represent
Subscription keys Every product and API subscription Calls to your APIs as a legitimate consumer
Backend credentials Backend entities: headers, query parameters, client certificates Direct access to the backend, around the gateway
Logger connection strings Event Hubs and Application Insights loggers Write access to your logging pipeline
Credentials written into policies Policy XML Whatever the policy author pasted in
Direct management API tokens and tenant access keys Tenant access settings The management endpoint of the instance

A stolen credential is used against the service it protects, outside APIM. The gateway never sees that traffic, so gateway logs will not show it.

Practical exploit effort

The 9.8 score describes the flaw before November 19. The question for most teams today is different: what does it take to use what was stolen.

The flaw itself is closed. Microsoft fixed it on the platform, and the Classic tiers are a managed service, so there is no customer-side patch state to check apart from the runtime version NSM published. A new attacker who learns how the flaw worked cannot use it against an updated instance.

A working exploit existed and was used. Microsoft’s own CVSS scoring sets exploit maturity to Functional, and the advisory says exploitation was detected. No exploit code or technical write-up is public, and Microsoft lists the flaw as not publicly disclosed.

The preconditions were light. No account, no user interaction and network access to the instance. The remaining condition is Microsoft’s unpublished exposure criteria. Classic virtual network injection is available only on the Developer and Premium tiers, so Basic and Standard instances could not follow the network guidance without changing tier, a point the Cloud Security Alliance raised.

Using a stolen secret takes no skill. A subscription key is a header value. A backend API key or a connection string works from any machine with internet access. A client secret gets a token from Microsoft Entra ID with one request. The indicators published so far show exactly that: service principal sign-ins with stolen secrets, and Key Vault, storage and gateway requests made with plain curl.

Our assessment of the effort, as of December 4:

The flaw, before November 19 Stolen secrets, today
Public exploit None. A private one was used None needed
Credentials needed None The stolen secret itself
Network access The instance’s management endpoint The internet, unless the target service restricts source addresses
Skill Unknown. Whoever built it found an unpublished flaw Minimal
Still possible No, on instances at the fixed runtime version Yes, until each secret is revoked at its issuer
Where it shows in logs Possibly nowhere on the customer side In the logs of the target service: Entra sign-ins, Key Vault, storage, the backend

Treat this as a credential compromise and not as a vulnerability to patch. The window for the flaw closed on November 19. The window for the secrets stays open until you close it. CISA gave federal agencies three days and asked for forensic triage, which is the right pace and the right scope for everyone else too.

Who is affected, in priority order

  1. Classic instances named in Service Health notice MZK9-GH0. Microsoft’s advisory says the November 24 update carries the exposure criteria and the impacted resources. Start there.
  2. Any Classic Developer, Basic, Standard or Premium instance that existed before November 19, 2026, most of all one that was reachable from the internet, had the direct management API enabled, or kept secrets as plain named values.
  3. Instances used as an AI gateway. APIM in front of Azure OpenAI, Microsoft Foundry or third-party model providers holds provider keys with real spending attached.
  4. Managed service providers and partners. Check every customer subscription you manage. Development and test instances count, and they often hold production secrets.
  5. Instances deleted or migrated since November 19. Deleting the instance does not cancel the secrets it held.

The Basic v2, Standard v2 and Premium v2 tiers and the Consumption tier are not affected. Run the tier query below before assuming an instance is v2.

How to check your exposure

1. Read the Service Health notice in the portal. Sign in to the Azure portal and open Service Health, then Security advisories, and look for tracking ID MZK9-GH0, titled “Important security information about Azure API Management Classic tiers”. The Impacted resources tab lists the instances Microsoft identified. Security advisories and their impacted resources are visible only to elevated roles, such as subscription Owner or Contributor, or a tenant administrator role such as Security Administrator.

2. Find the notice across subscriptions. With Azure Resource Graph:

// Example: Azure Resource Graph, Service Health security advisories for API Management
servicehealthresources
| where type =~ "microsoft.resourcehealth/events"
| extend EventType = tostring(properties.EventType), Title = tostring(properties.Title),
         Updated = todatetime(properties.LastUpdateTime)
| where EventType == "SecurityAdvisory"
| where name =~ "MZK9-GH0" or Title has "API Management"
| project Updated, TrackingId = name, Title, subscriptionId, tenantId
| order by Updated desc

3. List every APIM instance and its tier. Include subscriptions used for development, testing and proofs of concept:

// Example: Azure Resource Graph, API Management instances with tier and network mode
resources
| where type =~ "microsoft.apimanagement/service"
| extend Tier = tostring(sku.name), VNetMode = tostring(properties.virtualNetworkType),
         PublicAccess = tostring(properties.publicNetworkAccess),
         Created = todatetime(properties.createdAtUtc)
| extend Classic = Tier in~ ("Developer", "Basic", "Standard", "Premium")
| project name, Tier, Classic, VNetMode, PublicAccess, Created, resourceGroup, subscriptionId, location
| order by Classic desc, name asc

Every row with Classic true and a creation date before November 19, 2026 is in scope until the Service Health notice says otherwise.

4. Confirm the runtime version. NSM published a check for whether an instance has the fix: read RuntimeVersion from the internal status endpoint on the gateway hostname.

curl -s https://<name>.azure-api.net/internal-status-0123456789abcdef

Per NSM, a 0.52.x runtime is fixed when the last number is 31936 or higher, and a 0.53.x runtime when it is 31938 or higher. NSM says an instance below those builds should be raised with Microsoft directly. Other version formats belong to the v2 and Consumption tiers, where the threshold does not apply.

5. Check whether the direct management API is enabled. In the portal, open the instance, then Management API, and look at Enable Management REST API. From the command line:

az rest --method get \
  --url "/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.ApiManagement/service/<name>/tenant/access?api-version=2024-05-01" \
  --query "properties.enabled"

Microsoft’s retirement notice for the direct management API also links a discovery tool that reports this setting across subscriptions.

6. Inventory the secrets each instance holds. The list of named values is the place to start:

az apim nv list --resource-group <resource-group> --service-name <name> \
  --query "[].{name:displayName, secret:secret, keyVault:keyVault.secretIdentifier}" -o table

Then list subscriptions, backends, authorization servers, OpenID Connect providers, identity providers and loggers, and search policy XML for hard-coded credentials. Microsoft’s guide suggests the pattern authorization|password|token|key|connection.?string. Keep secret values out of terminal history and tickets while you do this.

What to do now

Do these in this order:

  1. Confirm whether you were notified, in the portal, for every subscription and tenant you manage.
  2. Disable the direct management API on every instance, and regenerate both tenant access keys.
  3. Build the secret inventory for each Classic instance, using the checks above. Include Key Vault secrets the instance references.
  4. Rotate by blast radius. Start with identity provider and OAuth client secrets, database and storage credentials and model provider keys, then backend API keys, then subscription keys.
  5. Rotate at the issuer. Microsoft’s guidance is explicit: “Updating the value in API Management alone does not invalidate the old credential.” Create the new credential where it is issued, update APIM or Key Vault, test, then revoke the old one.
  6. Hunt for use of the old secrets from the earliest log you hold through to the moment each one was revoked. The hunts are below.
  7. Review APIM itself for changes: users, subscriptions, identity providers, policies and products you did not create.
  8. Record what was rotated and when. Microsoft says secrets rotated after the first or second Service Health notice do not need rotating again for this advisory. Anything rotated before November 19, or not at all, does.

Hardening that reduces the next exposure, once the rotation is done:

  • Use managed identities in place of keys and connection strings wherever the backend supports them.
  • Keep secrets in Azure Key Vault and reference them from named values without a version, so new versions are picked up.
  • Restrict network access to the instance where the tier supports it, and plan the move from Classic to the v2 tiers.
  • Unpublish the developer portal if nobody uses it, or turn off self-service sign-up.

Rotation order by secret type

Microsoft published a rotation guide on November 21, Rotating credentials in Azure API Management, with Azure CLI and PowerShell for each step. The order matters, because a wrong step either breaks production or leaves the old secret alive.

Secret Order of work
Subscription keys Move callers to the secondary key and confirm traffic. Regenerate the primary, move callers to it, then regenerate the secondary
Key Vault-backed named values Add a new secret version in Key Vault, update any reference pinned to a version, refresh the named value, then disable the old version and revoke the credential at its source
Named values stored in APIM Create the new credential at its source, replace the stored value, test, revoke the old credential. Move the value to Key Vault while you are there
Backend credentials Stage the new credential on the backend, update the backend entity in APIM, test, then revoke the old one
OAuth 2.0, OpenID Connect and identity provider client secrets Add a new client secret to the app registration in Microsoft Entra ID, update APIM, republish the developer portal if it uses the provider, test a sign-in, then delete the old secret by key ID
Event Hubs logger connection strings Switch the logger to the secondary key, confirm events arrive, then regenerate the primary
Credentials in policy XML Replace each with a Key Vault-backed named value, test the policy, revoke the old credential
Tenant access keys Confirm nothing still calls the direct management API, disable it, regenerate both keys

APIM checks Key Vault for new secret versions about every four hours. Refresh the named value by hand, or wait for the refresh, before you revoke the old version.

To regenerate the tenant access keys after disabling the API:

az rest --method post \
  --url "/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.ApiManagement/service/<name>/tenant/access/regeneratePrimaryKey?api-version=2024-05-01"
az rest --method post \
  --url "/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.ApiManagement/service/<name>/tenant/access/regenerateSecondaryKey?api-version=2024-05-01"

Threat hunting

Microsoft has published no indicators of compromise for the management-plane access itself, and if the direct management API was the path, those calls are not in the Azure Activity log. A clean Activity log therefore says little. The useful hunting is on the other side: who has used the secrets your instances held, from where, since early November.

Know what each log can and cannot show before you read an empty result as good news:

Log Shows Limits
Azure Activity (AzureActivity) Secret listing and configuration changes made through Azure Resource Manager Misses direct management API calls and ordinary reads
APIM gateway (ApiManagementGatewayLogs) Callers, subscription IDs, APIs called, trace requests Only if diagnostic settings were sending it. Shows use of subscription keys, not use of backend secrets
Key Vault audit (AZKVAuditLogs) Secret get and list operations, caller address and client Only if vault diagnostics were on
Entra service principal sign-ins (AADServicePrincipalSignInLogs) Sign-ins by applications whose secrets APIM held Needs export to a workspace for history beyond 30 days
Backend and data service logs Use of stolen keys against storage, databases, AI services and third-party APIs Varies by service. Often the only place the misuse appears

Example KQL for Microsoft Sentinel and Azure Monitor

The KQL below is example code for Microsoft Sentinel and Azure Monitor Log Analytics. Adapt table and field names to your environment and test each query before relying on it. Workspaces that collect resource logs in Azure diagnostics mode hold the same events in AzureDiagnostics, with different column names.

Hunt 1: secrets listed and configuration changed through Azure Resource Manager

// Example: Sentinel, APIM secret listing and sensitive writes in the Activity log
AzureActivity
| where TimeGenerated > datetime(2026-11-01)
| where ResourceProviderValue =~ "MICROSOFT.APIMANAGEMENT"
| extend Op = tolower(OperationNameValue)
| where Op has_any ("listsecrets", "listvalue", "listkeys", "getssotoken",
                    "regenerateprimarykey", "regeneratesecondarykey")
    or Op endswith "/users/token/action"
    or (Op endswith "/write" and Op has_any ("policies", "namedvalues", "identityproviders",
        "openidconnectproviders", "authorizationservers", "users", "portalsettings", "tenant"))
| summarize Events=count(), Operations=make_set(OperationNameValue, 20),
            FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated)
    by Caller, CallerIpAddress, Instance=_ResourceId
| order by LastSeen desc

Match each caller to a person, a pipeline or the portal. A caller that listed secrets across many named values or subscriptions in a short period, from an address your administrators do not use, is a lead. This hunt covers the Azure Resource Manager path only.

Hunt 2: subscription keys used from new addresses

// Example: Sentinel, subscription keys seen from addresses that are new since November 1
let Start = datetime(2026-11-01);
let Known = ApiManagementGatewayLogs
    | where TimeGenerated between (ago(90d) .. Start)
    | where isnotempty(ApimSubscriptionId)
    | distinct ApimSubscriptionId, CallerIpAddress;
ApiManagementGatewayLogs
| where TimeGenerated > Start
| where isnotempty(ApimSubscriptionId)
| join kind=leftanti Known on ApimSubscriptionId, CallerIpAddress
| summarize Requests=count(), Apis=make_set(ApiId, 20), TraceRequests=countif(IsTraceRequested),
            FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated)
    by ApimSubscriptionId, CallerIpAddress, Instance=_ResourceId
| order by Requests desc

Consumers with fixed addresses make this hunt precise. Consumers on mobile or home networks make it noisy, so sort by request count and by the APIs touched. Requests with tracing switched on deserve a separate look, because a trace can reveal named values to whoever asked for it:

// Example: Sentinel, gateway requests that asked for a trace
ApiManagementGatewayLogs
| where TimeGenerated > datetime(2026-11-01)
| where IsTraceRequested
| project TimeGenerated, CallerIpAddress, ApimSubscriptionId, UserId, ApiId, Method, Url,
          IsTraceAllowed, ResponseCode, Instance=_ResourceId
| order by TimeGenerated desc

Hunt 3: Key Vault secrets read by unexpected callers

// Example: Sentinel, who read secrets from the vaults APIM references
AZKVAuditLogs
| where TimeGenerated > datetime(2026-11-01)
| where OperationName in ("SecretGet", "SecretList", "SecretListVersions")
| extend AppId = tostring(Identity.claim.appid)
| summarize Requests=count(), Secrets=dcount(RequestUri), Failures=countif(HttpStatusCode >= 400),
            FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated)
    by Vault=_ResourceId, CallerIpAddress, ClientInfo, AppId
| extend CurlClient = ClientInfo startswith "curl/"
| order by CurlClient desc, Secrets desc

The gateway’s managed identity reading its own secrets at a steady rate is normal. A caller that lists a vault and then reads many secrets, a client string that is a command-line tool, or an address outside Azure and your own networks is not.

Hunt 4: sign-ins by applications whose secrets APIM held

// Example: Sentinel, service principal sign-ins from addresses that are new since November 1
let Apps = dynamic(["<application-id-1>", "<application-id-2>"]);  // client IDs whose secrets were in APIM or its vaults
let Start = datetime(2026-11-01);
let Known = AADServicePrincipalSignInLogs
    | where TimeGenerated between (ago(90d) .. Start)
    | where AppId in (Apps)
    | distinct AppId, IPAddress;
AADServicePrincipalSignInLogs
| where TimeGenerated > Start
| where AppId in (Apps)
| join kind=leftanti Known on AppId, IPAddress
| summarize SignIns=count(), Successes=countif(ResultType == "0"),
            Resources=make_set(ResourceDisplayName, 20),
            FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated)
    by ServicePrincipalName, AppId, IPAddress, Location
| order by Successes desc, SignIns desc

This is the highest-value hunt. A client secret stolen from APIM is used to sign in as the application, from the attacker’s address, and the resources it then asks for show what the attacker went after.

Hunt 5: published indicators

Researcher Anders Kristiansen published network indicators for this activity, citing Wiz threat intelligence, covering November 8 to 21, 2026. Microsoft has not confirmed them. The ranges include ordinary traffic, so a match matters only together with the behavior in the other hunts.

Sign-ins with stolen service principal secrets:
113.120.71.142   113.120.72.185   113.120.73.59    113.120.73.129   113.120.73.179
113.120.75.179   113.120.83.43    113.120.83.169   113.120.114.162  113.120.114.171
113.120.114.186  113.120.114.253  113.120.115.19   113.120.115.72   113.124.8.141
113.124.9.66     113.124.9.154    113.124.9.246    123.168.77.28    222.173.70.66

Wider ranges the activity came from:
113.120.0.0/16   113.124.0.0/16   123.168.0.0/16   120.221.0.0/16   222.173.70.0/24

Key Vault, storage and APIM gateway requests with user agent curl/7.88.1:
23.162.24.134    23.162.24.135
// Example: Sentinel, sweep sign-in, Key Vault, gateway, Activity and storage logs for the published ranges
let Ranges = dynamic(["113.120.0.0/16", "113.124.0.0/16", "123.168.0.0/16", "120.221.0.0/16",
                      "222.173.70.0/24", "23.162.24.134/32", "23.162.24.135/32"]);
let Start = datetime(2026-11-01);
union isfuzzy=true
    (AADServicePrincipalSignInLogs | where TimeGenerated > Start
        | project TimeGenerated, Source="ServicePrincipalSignIn", IP=IPAddress,
                  Detail=strcat(ServicePrincipalName, " to ", ResourceDisplayName)),
    (SigninLogs | where TimeGenerated > Start
        | project TimeGenerated, Source="UserSignIn", IP=IPAddress,
                  Detail=strcat(UserPrincipalName, " to ", AppDisplayName)),
    (AZKVAuditLogs | where TimeGenerated > Start
        | project TimeGenerated, Source="KeyVault", IP=CallerIpAddress,
                  Detail=strcat(OperationName, " ", RequestUri)),
    (ApiManagementGatewayLogs | where TimeGenerated > Start
        | project TimeGenerated, Source="ApimGateway", IP=CallerIpAddress,
                  Detail=strcat(Method, " ", Url)),
    (AzureActivity | where TimeGenerated > Start
        | project TimeGenerated, Source="AzureActivity", IP=CallerIpAddress,
                  Detail=OperationNameValue),
    (StorageBlobLogs | where TimeGenerated > Start
        | project TimeGenerated, Source="StorageBlob", IP=tostring(split(CallerIpAddress, ":")[0]),
                  Detail=strcat(OperationName, " ", Uri))
| where ipv4_is_in_any_range(IP, Ranges)
| summarize Events=count(), FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated),
            Samples=make_set(Detail, 5)
    by Source, IP
| order by Events desc

AI and third-party backends

Keys for model providers and third-party APIs are used outside Azure, where none of the queries above can see. For each provider key that APIM held, compare the provider’s usage and billing records with your gateway metrics for the same period. Token consumption or requests that the gateway never proxied mean the key was used directly.

Responding to signs of misuse

  1. Revoke the credential at its issuer first, then replace it in APIM. Rotation order matters less than speed once misuse is confirmed.
  2. Scope what the credential could reach. For an application secret, list the application’s API permissions and role assignments. For a database or storage key, treat the data as read.
  3. Review what the identity did from the first unfamiliar sign-in: resources accessed, data read, role assignments, new credentials added to applications and new federated credentials.
  4. Check for persistence before closing: new application secrets or certificates, new service principals, new APIM users and subscriptions, changed policies that forward traffic or log request bodies.
  5. Assess notification duties. Customer data reached with a stolen backend credential can trigger breach notification obligations, whatever the origin of the credential.
  6. Report it. Open a case with Microsoft, and report to your national cybersecurity authority where you are required to.

Timeline

  • March 15, 2025: Microsoft retires the direct management API for API Management and tells customers to disable it where it is still enabled.
  • November 8, 2026: Earliest activity in the indicators published by Anders Kristiansen, citing Wiz.
  • November 17, 2026: Equinor discloses a cyberattack on some of its IT systems.
  • November 18, 2026: Microsoft identifies the issue in the API Management Classic tiers. Skagerak Energi reports an attempted attack.
  • November 19, 2026: Microsoft closes the access path on the platform and rotates the keys it controls.
  • November 20, 2026: NSM publishes its advisory, links the flaw to the attacks on the Norwegian energy sector and tells organizations to rotate all tokens and secrets. Equinor says the attack was stopped and it found no sign of data theft.
  • November 21, 2026: Microsoft sends the first Service Health notification, MZK9-GH0, and publishes its credential rotation guide.
  • November 24, 2026: Microsoft updates the notification with exposure criteria and immediate actions.
  • November 30, 2026: The CVE ID is reserved.
  • December 3, 2026: Microsoft publishes CVE-2026-139934 with a 9.8 score and Exploitation Detected.
  • December 4, 2026: NVD publishes the record. CISA adds the CVE to its Known Exploited Vulnerabilities catalog with a December 7 due date, and the Canadian Centre for Cyber Security issues advisory AV26-1232.

Frequently Asked Questions

What is CVE-2026-139934? CVE-2026-139934 is an incorrect authorization flaw in the Classic tiers of Microsoft Azure API Management, rated 9.8. It let an unauthenticated attacker send crafted requests to an instance and run administrative operations, including reading stored secrets. Microsoft fixed it on the platform on November 19, 2026 and published the CVE on December 3.

Is CVE-2026-139934 being exploited? Yes. Microsoft marks it Exploitation Detected, Norway’s National Security Authority linked it to attacks on Equinor and Skagerak Energi, and CISA added it to the Known Exploited Vulnerabilities catalog on December 4, 2026, with a December 7 deadline for US federal agencies.

Do I need to patch Azure API Management? No. Microsoft fixed the service itself and there is no update to install. The work for customers is rotating the secrets that exposed instances held, and checking whether those secrets were used.

Which Azure API Management tiers are affected? The Classic Developer, Basic, Standard and Premium tiers. Microsoft says the Basic v2, Standard v2 and Premium v2 tiers and the Consumption tier are not affected.

How do I know if my instance was exposed? Open Service Health in the Azure portal, then Security advisories, and find tracking ID MZK9-GH0. The November 24 update lists the exposure criteria and the impacted resources. Viewing it needs an elevated role such as subscription Owner or Contributor.

Which secrets need rotating? Everything the instance stored or referenced: secret named values, Key Vault secrets behind named values, subscription keys, backend credentials, OAuth and OpenID Connect client secrets, identity provider secrets, logger connection strings, credentials written into policies, and the tenant access keys.

Our secrets are in Key Vault. Are we safe? No. Microsoft’s advisory tells exposed customers to rotate Key Vault secrets that APIM references. The instance reads those values in order to use them, and researchers note that anyone who can edit policies or request a trace on the instance can expose them.

We rotated after the first Service Health notice. Do we need to rotate again? No. Microsoft says credentials and secrets rotated after the first or second notification do not need another rotation for this advisory. Confirm that the old credentials were revoked at the issuer and not only replaced in APIM.

Can we see the attacker in our own logs? Possibly not for the access to APIM itself. Microsoft has published no indicators, and calls to the legacy direct management API are not written to the Azure Activity log. Use of stolen secrets does leave traces, in Entra service principal sign-ins, Key Vault audit logs and the logs of the backend services.

Is this related to the Entra Connect Health incident? It is a separate incident. Microsoft fixed both on November 19, 2026 and notified customers of both through Azure Service Health, and nothing published links them. Our advisory on the Entra Connect Health API exposure covers that one.

How ThreatDefence is responding

ThreatDefence is treating CVE-2026-139934 as a credential compromise for every customer with Classic API Management instances. Across all monitored environments, our SOC is:

  • helping customers confirm whether they received notice MZK9-GH0, and inventory the secrets their Classic instances held
  • reviewing service principal sign-ins, Key Vault access and gateway traffic since early November for use of those secrets from unfamiliar addresses, including the published indicators
  • watching for new application credentials, role assignments and API Management configuration changes that would indicate persistence
  • helping customers sequence the rotation so that production traffic keeps flowing while old secrets are revoked

If you want help checking your API Management instances or reviewing sign-in and Key Vault activity since November, contact us. Read more about our managed detection and response.