Back to Intelligence

CVE-2026-139934: Azure API Management Classic Incorrect Authorization — CISA KEV Detection and Remediation Guide

SA
Security Arsenal Team
December 4, 2026
11 min read

On December 4, 2026, CISA added CVE-2026-139934 to its Known Exploited Vulnerabilities (KEV) catalog — a decision CISA does not make on theoretical risk alone. KEV inclusion means the vulnerability is confirmed to be under active exploitation in the wild.

The flaw is an incorrect authorization vulnerability in Microsoft Azure API Management (APIM) Classic instances. An unauthenticated, remote attacker can send specially crafted requests to affected instances and execute unauthorized administrative operations — including secrets-management operations. Read that again: no credentials, no token, no prior access. From the internet, straight into your API management plane and your secrets store.

For organizations that use APIM Classic as the front door to internal APIs, partner integrations, or backend services — often holding client certificates, subscription keys, backend connection strings, and Named Values containing credentials — this is a critical-tier incident. The secrets-management exposure means exploitation doesn't stop at APIM; it pivots into every backend system those secrets unlock.

This post breaks down the threat, how to hunt for it, and how to remediate it in line with CISA's BOD 26-04 directives.

Technical Analysis

Affected Product

  • Product: Microsoft Azure API Management (APIM)
  • Affected surface: APIM Classic (legacy v1 / non-stv2 platform) instances exposed to the internet
  • Vulnerability class: Incorrect Authorization (CWE-863) — the authorization layer fails to properly validate the caller's identity/privileges for administrative API paths
  • Attack vector: Network, unauthenticated, low complexity
  • Impact: Unauthorized administrative operations, including reading and manipulating secrets-management objects (Named Values, certificates, subscription keys, backend credentials)

How the Vulnerability Works (Defender's View)

Classic-tier APIM instances expose a legacy gateway and management surface with older request-handling and authorization logic. In an incorrect-authorization flaw of this class, the service fails to enforce an authorization check on specific administrative API routes — typically because a code path assumes an earlier middleware layer already validated the caller, or because a route handler checks for the presence of a token without validating its scope or issuer.

The practical attack chain defenders should assume:

  1. Reconnaissance: The attacker identifies internet-facing APIM Classic instances (predictable *.azure-api.net hostnames, certificate transparency logs, passive DNS).
  2. Direct request to administrative paths: Specially crafted HTTP requests are sent to APIM Classic management/gateway endpoints. No valid Azure AD token or subscription key is required.
  3. Secrets-management abuse: The attacker invokes secrets-management operations — enumerating Named Values, exporting certificates, reading subscription keys, or retrieving backend credentials.
  4. Post-exploitation pivot: Harvested secrets are used to access backend APIs, databases, or third-party services that trust APIM-issued credentials. Configuration tampering (rewriting backend URLs, injecting policies) is also possible, enabling persistent interception of API traffic.

The most dangerous second-order effect: APIM Named Values and backend credentials frequently contain plaintext connection strings and API keys. A single exploitation event can cascade into compromise of the entire API estate behind the gateway.

Exploitation Status

  • CISA KEV: Added 2026-12-04 — confirmed active exploitation
  • Required action: Apply vendor mitigations per Microsoft guidance; comply with BOD 26-04 (Prioritizing Security Updates Based on Risk) and CISA's Forensics Triage Requirements — i.e., do not simply patch and move on; preserve and review telemetry for evidence of prior exploitation
  • Federal civilian agencies: Bound by BOD 26-04 remediation timelines for cloud services; if the affected cloud service cannot be remediated, discontinue use of the service per directive language

KEV inclusion means you should treat every APIM Classic instance as potentially already compromised until proven otherwise by log review.

Detection & Response

Because APIM is a PaaS offering, your detection surface is the Azure control plane and gateway diagnostic logs — not endpoint EDR. If you are not already streaming AzureActivity and APIM AzureDiagnostics (GatewayLogs) into Sentinel or a SIEM, that is gap number one.

What to Hunt

  • Administrative/management-plane operations against APIM from unfamiliar source IPs, ASNs, or geographies
  • Reads/lists of secrets objects: Named Values, certificates, subscription keys
  • Unauthenticated requests (missing or anomalous caller identity) hitting management paths
  • Sudden enumeration volume: many GETs against APIM resource paths in short succession
  • Changes to backends, policies, or logger configuration immediately following anonymous requests

SIGMA Rules

YAML
---
title: Azure APIM Secrets-Management Operations from Unusual Source
id: 3f8a1c94-6b2e-4d71-9a05-7c4e2b8f1a33
status: experimental
description: Detects read or list operations against Azure API Management secrets-bearing resources (Named Values, certificates, subscriptions) which may indicate exploitation of CVE-2026-139934 or secrets harvesting.
references:
  - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-139934
author: Security Arsenal
date: 2026/12/05
tags:
  - attack.credential_access
  - attack.t1552
logsource:
  product: azure
  category: azureactivity
detection:
  selection_resource:
    ResourceProvider|contains: 'MICROSOFT.APIMANAGEMENT'
  selection_secrets:
    OperationName|contains:
      - 'NAMEDVALUES'
      - 'CERTIFICATES'
      - 'SUBSCRIPTIONS'
      - 'LISTSECRETS'
      - 'BACKENDS'
  selection_read:
    OperationName|contains:
      - '/READ'
      - 'LIST'
  condition: selection_resource and selection_secrets and selection_read
falsepositives:
  - Legitimate administrative or DevOps pipeline retrieval of APIM configuration
  - Periodic key rotation automation
level: high
---
title: Azure APIM Management Write Operations from Anonymous or Unexpected Caller
id: 8c2d5e17-4a9b-4f36-b810-2e7a9c3d5f44
status: experimental
description: Detects write/delete operations against Azure API Management service resources where the caller identity is missing, anonymous, or an unexpected principal - consistent with CVE-2026-139934 unauthenticated administrative access.
references:
  - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-139934
author: Security Arsenal
date: 2026/12/05
tags:
  - attack.initial_access
  - attack.t1190
  - attack.impact
logsource:
  product: azure
  category: azureactivity
detection:
  selection_resource:
    ResourceProvider|contains: 'MICROSOFT.APIMANAGEMENT'
  selection_write:
    OperationName|contains:
      - '/WRITE'
      - '/DELETE'
      - '/ACTION'
  selection_anon:
    Caller:
      - null
      - ''
      - 'anonymous'
  condition: selection_resource and selection_write and selection_anon
falsepositives:
  - Some Azure internal operations log with empty caller fields; baseline against known service events
level: critical
---
title: Azure APIM Gateway Requests to Administrative Paths Without Authentication Context
id: 5e9b2f48-1c7d-4a83-b562-9f3a8e1c7b55
status: experimental
description: Detects gateway-level requests to APIM administrative or management URI paths lacking an authenticated caller identity, a hallmark of CVE-2026-139934 exploitation against Classic instances.
references:
  - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-139934
author: Security Arsenal
date: 2026/12/05
tags:
  - attack.initial_access
  - attack.t1190
logsource:
  product: azure
  category: azurediagnostics
detection:
  selection_path:
    url_s|contains:
      - '/subscriptions/'
      - '/namedValues'
      - '/certificates'
      - '/backends'
      - '/users'
      - '/loggers'
  filter_authenticated:
    callerId_s|contains: '@'
  condition: selection_path and not filter_authenticated
falsepositives:
  - Health probes and Azure-internal monitoring on management paths
level: high

Tune the caller-identity filters to your environment's actual field population — APIM diagnostic schema varies by diagnostic setting version. Baseline legitimate automation principals (Terraform SPs, DevOps agents) into allowlists, not the rule itself.

KQL — Microsoft Sentinel Hunt

This query looks for the exploitation pattern directly: secrets-bearing APIM operations from source IPs that have not performed those operations in the prior 14 days (new-source detection), plus a burst-analysis variant.

KQL — Microsoft Sentinel / Defender
// Hunt 1: Secrets-management operations against APIM from novel source IPs
let lookback = 14d;
let window = 24h;
let known_callers =
    AzureActivity
    | where TimeGenerated between (ago(lookback) .. ago(window))
    | where ResourceProviderValue =~ "MICROSOFT.APIMANAGEMENT"
    | where OperationNameValue has_any ("NAMEDVALUES", "CERTIFICATES", "SUBSCRIPTIONS", "LISTSECRETS", "BACKENDS")
    | summarize by CallerIpAddress;
AzureActivity
| where TimeGenerated > ago(window)
| where ResourceProviderValue =~ "MICROSOFT.APIMANAGEMENT"
| where OperationNameValue has_any ("NAMEDVALUES", "CERTIFICATES", "SUBSCRIPTIONS", "LISTSECRETS", "BACKENDS")
| where CallerIpAddress !in (known_callers)
| summarize Operations = count(),
            OpNames = make_set(OperationNameValue),
            Resources = make_set(ResourceId),
            Callers = make_set(Caller)
    by CallerIpAddress, bin(TimeGenerated, 1h)
| order by Operations desc;

// Hunt 2: Anonymous/empty-caller write operations on APIM (potential CVE-2026-139934 abuse)
AzureActivity
| where TimeGenerated > ago(7d)
| where ResourceProviderValue =~ "MICROSOFT.APIMANAGEMENT"
| where OperationNameValue has_any ("/WRITE", "/DELETE", "/ACTION")
| where isempty(Caller) or Caller in ("anonymous", "null")
| project TimeGenerated, OperationNameValue, ResourceId, CallerIpAddress,
          ActivityStatusValue, CorrelationId, Claims
| order by TimeGenerated desc;

// Hunt 3: Gateway diagnostics - management-path requests without auth context
AzureDiagnostics
| where TimeGenerated > ago(7d)
| where ResourceProvider =~ "MICROSOFT.APIMANAGEMENT"
| where url_s has_any ("/namedValues", "/certificates", "/backends", "/subscriptions/")
| where isempty(callerId_s) or responseCode_d >= 400
| summarize Requests = count(),
            ResponseCodes = make_set(responseCode_d),
            Paths = make_set(url_s)
    by clientIp_s, bin(TimeGenerated, 15m)
| order by Requests desc;

Run Hunt 1 first — a novel external IP touching Named Values or certificates is your highest-fidelity signal. If APIM diagnostic logs aren't enabled, you will get nothing from Hunt 3; treat that as an emergency logging gap.

Velociraptor VQL

Endpoint forensics matters here for the operator side of post-exploitation: attackers who harvested APIM secrets will use them from tooling on a workstation or jump host. This artifact hunts for interactive use of Azure CLI / REST tooling against APIM management endpoints by non-standard users, which can surface a follow-on intruder operating inside your environment with stolen keys.

VQL — Velociraptor
-- Hunt for interactive tooling referencing APIM management endpoints (possible use of stolen APIM secrets)
SELECT Pid,
       Name,
       Exe,
       CommandLine,
       Username,
       CreateTime
FROM pslist()
WHERE CommandLine =~ 'azure-api\\.net|management\\.azure\\.com.*apimanagement|az apim'
  AND Name =~ 'powershell|pwsh|cmd\\.exe|curl|az\\.cmd|az\\.ps1|python'

Pair this with a netstat sweep for established connections to management.azure.com from hosts that don't normally run cloud administration tooling — your build agents and admin workstations are expected; everything else is a lead.

Remediation and Verification Script

This PowerShell inventories every APIM instance in your subscriptions, flags Classic-tier (non-stv2) instances that are in scope for CVE-2026-139934, checks diagnostic logging coverage, and exports Named Value metadata so you can plan secret rotation. Run it with an account holding Reader on all subscriptions; the rotation step requires Contributor.

PowerShell
# CVE-2026-139934 - APIM Classic exposure inventory and logging verification
# Requires: Az.Accounts, Az.ApiManagement, Az.Monitor modules

Connect-AzAccount

$report = @()

foreach ($sub in (Get-AzSubscription)) {
    Set-AzContext -SubscriptionId $sub.Id | Out-Null

    $apimList = Get-AzApiManagement
    foreach ($apim in $apimList) {
        # Classic/v1 platform instances lack the stv2 platform version stamp
        $platformVersion = $apim.PlatformVersion
        $isClassic = ($platformVersion -notlike '*stv2*')

        # Check whether gateway diagnostic logging is enabled
        $diag = Get-AzDiagnosticSetting -ResourceId $apim.Id -ErrorAction SilentlyContinue
        $gatewayLogs = $false
        if ($diag) {
            $gatewayLogs = [bool]($diag.Logs | Where-Object {
                $_.Category -in @('GatewayLogs','WebSocketConnectionLogs','GatewayLlmLogs') -and $_.Enabled
            })
        }

        $report += [PSCustomObject]@{
            Subscription       = $sub.Name
            ResourceGroup      = $apim.ResourceGroupName
            ApimName           = $apim.Name
            Sku                = $apim.Sku
            PlatformVersion    = $platformVersion
            IsClassicAffected  = $isClassic
            GatewayLogsEnabled = $gatewayLogs
            VpnType            = $apim.VpnType
        }
    }
}

$report | Format-Table -AutoSize
$report | Export-Csv -Path ".\apim_cve_2026_139934_inventory.csv" -NoTypeInformation

# Flag highest-risk instances: Classic AND public network AND no gateway logging
$report | Where-Object { $_.IsClassicAffected -and -not $_.GatewayLogsEnabled } |
    Format-Table Subscription, ApimName, PlatformVersion -AutoSize

Write-Host "`nNEXT STEPS:" -ForegroundColor Yellow
Write-Host "1. Apply Microsoft vendor mitigations for CVE-2026-139934 to all flagged instances."
Write-Host "2. Rotate ALL Named Values, certificates, subscription keys, and backend credentials"
Write-Host "   on every Classic instance (assume secrets are exposed)."
Write-Host "3. Enable GatewayLogs diagnostic settings streaming to Sentinel/SIEM immediately."
Write-Host "4. Plan migration off Classic platform to stv2; Classic reaches end of support lifecycle."
Write-Host "5. Preserve 90+ days of AzureActivity and AzureDiagnostics for CISA Forensics Triage."

Remediation

1. Apply Microsoft vendor mitigations immediately. Follow the official Microsoft Security Response Center (MSRC) guidance for CVE-2026-139934. For managed PaaS, Microsoft typically applies backend fixes, but Classic-tier instances may require customer action — verify your specific instance status in the Azure Service Health blade and the MSRC advisory rather than assuming platform-side patching covered you.

2. Treat secrets as compromised. For every APIM Classic instance, rotate:

  • All Named Values (especially secret-type values containing connection strings and keys)
  • All certificates uploaded for backend or client authentication
  • All subscription primary/secondary keys
  • Backend credentials referenced in backend objects
  • Any downstream credentials those secrets unlocked (database logins, third-party API keys)

This is the CISA Forensics Triage mindset: the vulnerability has been exploited in the wild, so assume pre-patch exposure and rotate accordingly.

3. Migrate off APIM Classic. Classic-tier runs on legacy platform architecture and is on a deprecation path. Move instances to the stv2 platform (or evaluate Consumption/Premium v2 tiers). This is not just a CVE fix — it's structural risk reduction.

4. Reduce network exposure. Where possible, deploy APIM in internal VNET mode or place a properly configured WAF (Azure Front Door / Application Gateway) in front of the gateway, blocking management-path patterns at the edge. Restrict management-plane access with Private Link and NSG rules.

5. Enable and retain logging. Stream AzureActivity and APIM GatewayLogs to your SIEM with a minimum 90-day hot retention. If exploitation is confirmed, you will need this telemetry for scoping, and BOD 26-04-aligned forensics triage requires it.

6. CISA BOD 26-04 compliance. Federal civilian agencies must remediate per the binding directive's cloud-service timelines; if remediation is not achievable, discontinue use of the affected service as the directive instructs. Private-sector organizations should adopt the same deadlines as internal policy — KEV-listed cloud flaws are exploited at scale within days of disclosure.

7. Scope for prior compromise. Review at least 90 days of APIM management-plane and gateway logs for the patterns in the detection section. Any confirmed unauthorized secrets access is a reportable incident — trigger your IR plan, assess downstream blast radius, and consider notification obligations.

The Bottom Line

CVE-2026-139934 is the worst kind of cloud vulnerability: unauthenticated, remotely exploitable, and pointed directly at the component that centralizes your API secrets. KEV inclusion confirms attackers are already working this target. The correct defensive posture is mitigate, rotate, hunt — in that order, today.

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.