Azure API Management flaw exposed secrets in energy-sector attacks
An exploited Azure API Management Classic flaw exposed tokens and secrets. We explain affected runtimes, detection, credential rotation and hardening.
- AUTHOR
- Karol Rapacz / CEO Breachroad · OSCP · PNPT
- PUBLISHED
- 24 November 2026
- READING TIME
- 19 min read
- TOPIC
- Cloud, Infrastructure and DevSecOps
Norway’s National Security Authority (NSM) has warned about an actively exploited vulnerability in Azure API Management (APIM). An unknown actor targeted access tokens, secrets and named values in vulnerable instances. NSM identified Equinor and Skagerak Energi among the affected organisations, while stressing that the exposure spans sectors and extends beyond Norway.
Microsoft has closed the vulnerable service path, but a platform-side mitigation does not invalidate credentials that may already have been read. The immediate task is therefore larger than checking a runtime version. Organisations need to treat secrets held by an affected instance as potentially exposed, rotate them in a controlled order and determine whether the material was used against APIs, Key Vault, backend systems or other tenants.
What has been confirmed
NSM’s notice, published on 20 November and updated on 23 November, confirms that:
- the Azure API Management vulnerability was actively targeted;
- an unknown actor sought access tokens, secrets and named values;
- the vulnerable path has been closed, but the earlier exploitation scope remains uncertain;
- Equinor and Skagerak Energi are among the affected organisations;
- the issue spans multiple sectors and organisations outside Norway;
- at publication time, NSM had no indication that compromise or attempted compromise affected service delivery by Norwegian organisations;
- every organisation using APIM should work on the assumption that secrets and named values may have escaped.
According to a private Azure Service Health notice reported by the press, Microsoft identified the issue on 18 November and deployed a mitigation on 19 November. That timeline comes from reporting about a customer notice rather than a public CVE bulletin. At the time of this analysis, no CVE identifier or complete root-cause description had been published.
Which instances should be checked
NSM published a practical runtime test. Administrators should open the diagnostic endpoint specified in the authority’s notice on their own gateway and read RuntimeVersion.
For classic instances:
| Runtime line | Protected state according to NSM |
|---|---|
| 0.52.x | protected when the final number is 31936 or higher |
| 0.53.x | protected when the final number is 31938 or higher |
| lower value | still vulnerable; contact the provider |
| another pattern, such as 0.53.4608.0 | v2 or Consumption tier, to which these thresholds do not apply |
A protected version only describes the present state. It does not establish whether the instance was reachable earlier. Incident scoping needs to cover the period from the last known-good state to the mitigation.
Why an APIM secret leak has a large blast radius
API Management sits between clients and backend services. It processes routing policies, authentication, subscriptions and integrations. Named values can hold API keys, identifiers and client secrets, tokens, or Key Vault references. If an attacker obtains a credential value, impact can extend beyond the gateway.
The blast radius depends on each secret’s permissions:
- a subscription key may allow calls to published APIs;
- an application secret may allow an attacker to obtain a Microsoft Entra ID token;
- an access token may remain valid until expiry or session invalidation;
- a backend credential may bypass controls that are only applied at the gateway;
- an overprivileged identity may lead to data, cloud resources and additional secrets.
Rotating one “APIM key” is not enough. Teams need a dependency graph: named value → APIM policy → application or backend → downstream credentials and data.
A four-hour response plan
1. Inventory every instance
Collect APIM instances from production and development subscriptions, acquired environments and vendor-managed estates. Old or shadow environments are particularly risky because they may still contain working credentials.
2. Record runtime and exposure
Capture the result with time, instance name, tier and region. Build an evidence table rather than relying on one screenshot; it can later be joined to logs and credential-rotation records.
3. Preserve telemetry
Retain Azure management activity, APIM diagnostics, Entra ID, Key Vault and backend logs. Extend retention before short logging windows remove evidence. If activity is suspicious, track every response-side change.
4. Rotate according to impact
Begin with credentials granting administrative, cross-tenant, Key Vault, production-data or critical-infrastructure access. Continue with subscription keys and narrower secrets. Primary and secondary keys can prevent an outage, but the old key must be invalidated after the switch.
5. Reduce reachable paths
Review network rules, management-plane access, RBAC, local accounts and anonymous developer-portal surfaces. If an instance has not received the mitigation, escalate to Microsoft and restrict reachability.
Detecting use of stolen credentials
Microsoft has not published a complete public IOC set for the activity. Detection therefore needs behavioural context:
- backend calls outside normal hours or regions;
- a sharp increase in one subscription key’s use;
- new source addresses calling APIs without preceding user activity;
- service-principal token acquisition from an unusual host;
- Key Vault reads outside the normal deployment pipeline;
- requests missing the application’s standard headers or client identifiers;
- APIM policy, named-value, user and permission changes;
- access to administrative endpoints or unpublished API versions;
- one identity appearing across multiple tenants or subscriptions.
Build a separate baseline for each integration. A new IP address alone is not evidence of compromise, while a valid token is not evidence of legitimate use. The strongest signals are correlated: a new source, unusual resource, missing application workflow and activity close to the exposure window.
Rotating without losing control
Unstructured secret deletion can take production offline and destroy useful evidence. A sound rotation process has an owner, order and completion proof:
- identify every consumer of the old value;
- create a replacement with minimal scope;
- deploy it to consumers;
- confirm activity on the new credential;
- revoke the old value;
- confirm that the old value is rejected;
- record time, owner and validation logs.
Microsoft recommends storing secrets as Azure Key Vault references, using managed identities and rotating primary and secondary subscription keys independently. Key Vault is not a universal answer: if a stolen token can read the vault, moving a value there does not remove the access path. Least privilege and separation between runtime and administration identities remain essential.
Building a more resilient APIM environment
- keep secrets in a managed store and reference them from APIM;
- prefer managed identities to long-lived application secrets;
- protect administrators with RBAC, MFA and Conditional Access;
- separate management-plane access from client traffic;
- export logs to independent storage with incident-ready retention;
- version APIM policies and require change review;
- avoid identities that can reach every backend;
- rehearse no-outage credential rotation;
- test whether each backend still enforces its own authorisation instead of trusting the gateway unconditionally.
These controls should be included in Azure cloud penetration testing and a structured Vault, KMS and secrets-management programme.
Source facts and Breachroad conclusions
Confirmed by NSM: active targeting of tokens, secrets and named values; Equinor and Skagerak Energi among affected organisations; multi-sector and international scope; published runtime thresholds; no identified service-delivery impact in Norway at the time of its notice.
Confirmed by Microsoft documentation: APIM stores and uses backend credentials; Microsoft recommends Key Vault, managed identity, restricted permissions and key rotation.
Not publicly disclosed: a CVE identifier, root cause, complete victim list, earliest exploitation time, attacker identity and complete IOCs.
Breachroad conclusion: every credential reachable from an affected instance needs blast-radius assessment and rotation, and the investigation must extend beyond APIM. This is an incident-response recommendation, not a claim that every secret was stolen.
Sources
- NSM: measures following the Azure API Management vulnerability
- Microsoft Learn: secure an Azure API Management deployment
- Microsoft Learn: API Management credential manager
- BleepingComputer: Azure Service Health notice and exposed credential types
What to do now
Check RuntimeVersion on every APIM instance, preserve logs and do not close the incident because “Microsoft patched the service.” Inventory tokens and secrets reachable from APIM, rotate them by impact and search for their use across Entra ID, Key Vault and backend systems.
Prepare cloud owners through organisational cybersecurity training. Validate permissions, segmentation and API resilience through cloud and application penetration testing.
Turn current threats into decisions your team can repeat.
We design role-based cybersecurity and secure-AI training around the situations employees actually face — with safe exercises, a clear reporting path and an improvement plan.
- Scenarios matched to roles
- No collection of real passwords
- Practical follow-up plan




