Microsoft Patches Azure API Management Classic Flaw After Actor Hunts Customer Secrets
Microsoft has addressed a security flaw in the classic tier of its Azure API Management (APIM) service after Norway's National Security Authority (NSM) confirmed that an unknown actor had been actively probing the platform for sensitive credentials, according to The Hacker News.
What Happened
NSM disclosed that it became aware of a vulnerability in Azure API Management that affected multiple organizations in Norway, including energy companies Equinor and Skagerak Energi. According to the agency, the intruder was not exploiting a memory corruption bug or a remote code execution path, but was instead hunting for the credentials that organizations store inside APIM itself.
"An unknown actor has been actively looking for access tokens, secrets, and named values in APIM," NSM stated. The authority added that it remains uncertain how the actor initially obtained the access needed to conduct that search — a critical open question, since it determines whether the activity was the result of credential theft elsewhere, misconfiguration, or a flaw in the service itself.
The affected companies are notable targets. Equinor is one of the largest energy operators in Europe, and Skagerak Energi is a significant regional utility. Both run substantial cloud estates, and API gateways in such environments frequently sit in front of internal systems, partner integrations, and operational data flows.
Why API Gateways Are a High-Value Target
Azure API Management is Microsoft's managed gateway for publishing, securing, and monitoring APIs. To do that job, it must hold secrets: subscription keys, backend credentials, OAuth tokens, and the service's own "named values" — a key-value store that teams use to centralize configuration data and sensitive strings across API policies.
That design makes APIM a concentrated repository of exactly the material an attacker needs to pivot. A single leaked named value can expose a backend database connection string. A stolen access token can grant access to downstream services without ever touching a password. Because these secrets are legitimately consumed by the gateway, their use can blend into normal traffic patterns.
Security researchers have long warned that API management planes are under-monitored relative to their value. Organizations often apply rigorous logging to production applications while treating the gateway's internal configuration as infrastructure rather than as an attack surface.
The Classic Tier Dimension
The flaw specifically concerns APIM's classic tier. Microsoft has been steering customers toward newer service tiers and has previously retired or deprecated older infrastructure components across Azure. Legacy tiers can lag behind in security hardening and may not receive the same depth of monitoring or default protections as current offerings.
For defenders, the practical takeaway is that the tier an organization runs matters. Environments left on older service generations for cost or migration-lag reasons should be inventoried and reviewed, particularly where they hold credentials to production systems.
Recommended Response
NSM's disclosure points to a set of actions that security teams running APIM should consider, regardless of whether they operate in Norway:
- Rotate secrets and tokens. Any credential stored in APIM named values, subscription keys, or backend authorization headers should be treated as potentially exposed and rotated.
- Audit access logs. Review gateway and control-plane logs for unusual enumeration of named values or secrets, and for token use from unexpected locations or at unexpected times.
- Apply least privilege. Restrict who can read and modify APIM configuration. The ability to view named values is effectively the ability to read secrets.
- Move off legacy tiers. Where feasible, migrate to supported service tiers that receive current security updates.
- Centralize secret storage. Prefer managed secret stores such as Azure Key Vault with references from APIM policies, rather than storing raw values directly in the gateway.
The Bigger Picture
The incident fits a broader pattern in which attackers target the control plane rather than the application itself. Instead of breaking authentication, they look for the places where organizations have already assembled the keys. API gateways, CI/CD secret stores, and identity providers all concentrate risk in the same way.
NSM's acknowledgement that the initial access vector remains unclear is itself a warning. When an investigation cannot establish how an actor reached a sensitive store, defenders should assume the credentials inside it were compromised and act accordingly. Microsoft's patch closes the known issue, but the operational work — rotation, auditing, and migration — falls to customers.
Organizations running Azure API Management should verify their tier, review their secret-handling practices, and confirm that logging captures configuration-level activity, not just API traffic.