Skip to content

Defender Daily

Azure API Management flaw used to go after secrets at Equinor and others

Affected
Azure API Management Classic tier instances on runtimes below NSM’s patched builds. All versions and fixes

An attacker used a flaw in Microsoft’s Azure API Management service to go after access tokens, secrets and named values stored in customers’ instances, Norway’s National Security Authority (NSM) says. Equinor and Skagerak Energi are among the Norwegian organizations hit, and NSM says the flaw affects several sectors in Norway and abroad. Microsoft found the issue on Nov 18 and closed the access path the next day, SecurityWeek reports, citing a Microsoft notice to customers.

NSM says everyone using Azure API Management should assume their secrets and named values are exposed, and rotate all tokens and secrets. It also says to map the data behind each instance, so the scope is clear if signs of compromise turn up. Customers whose instance isn’t updated should contact Microsoft, and organizations in Norway that see signs of compromise should contact NSM.

To check, NSM says to open the /internal-status-0123456789abcdef path on the instance’s gateway and read its RuntimeVersion. A 0.52 runtime is patched when its last number is 31936 or higher, and a 0.53 runtime at 31938 or higher. Any other pattern means a v2 or Consumption tier instance, which NSM says isn’t vulnerable.

Microsoft’s notice to customers isn’t public, but SecurityWeek and The Register quote it. It says an unauthorized party could have used the issue to reach secrets in Azure API Management Classic instances before Microsoft found it. Exposed data can include named values, identity provider client secrets, subscription keys and tokens for the direct management API. Microsoft ties exposure to Classic tier setups that skipped its network security guidance or stored secrets directly instead of referencing Azure Key Vault. It says v2 tiers aren’t affected, and that customers still need to check for compromise from before the fix.

Equinor reported an attack on Nov 17 and found no sign that data was stolen or changed, SecurityWeek reports. Skagerak Energi reported an incident on Nov 18 that didn’t affect operations. NSM says it’s unclear how widely the flaw was exploited, and that it has seen no effect on Norwegian organizations’ deliveries so far.

Anders Kristiansen’s hunting guide, based on public sources, adds that the old direct Management API skips Entra ID and isn’t recorded in the Azure Activity log. He advises turning it off on every instance and gives log queries for secret reads, policy changes and newly seen subscription keys.

Vendor
Microsoft

What to do

6 steps

Affected and fixed versions

  • Product
    Azure API Management Classic tiers
    Affected
    0.52 runtimes before build 31936, and 0.53 before 31938
    Fixed
    Build 31936 or later on 0.52, and 31938 or later on 0.53
  • Product
    Azure API Management v2 and Consumption tiers
    Affected
    Not affected
    Fixed
    Not needed

Timeline

  1. Nov 17Equinor reports a cyberattack.
  2. Nov 18Skagerak Energi reports an incident, and Microsoft finds the issue.
  3. Nov 19Microsoft closes the access path.
  4. Nov 20NSM links the attacks to Azure API Management and gives its advice.

Sources

Subscribe

Get the Daily Brief by email

Weekdays at 7am ET.

We’ll email you a link to confirm. Unsubscribe from any email.