Azure API Management flaw used to attack Norwegian energy firms

Microsoft has mitigated a critical flaw in Azure API Management Classic tiers that let attackers steal secrets, but customers must still check for compromise and rotate credentials.

SecurityPublished
What happened
Attackers exploited a critical flaw in Azure API Management Classic tiers to steal secrets, hitting Norwegian energy companies including Equinor and Skagerak Energi.
What’s new
Microsoft says it identified the issue on 18 November and automatically applied a mitigation the next day.
Why it matters
Stolen credentials could give attackers direct access to the services behind API Management, so affected customers need to investigate and rotate secrets.

Microsoft has issued a critical advisory about a flaw in Azure API Management (APIM). Attackers used it to pull secrets out of customer instances and to carry out admin operations. The Register reports this based on a nonpublic Microsoft advisory it says it has seen. According to that advisory, only the APIM Classic tiers are affected, not Azure API Management v2.

Microsoft ties the exposure to Classic-tier setups that ignored its network security recommendations, or that kept secrets inside APIM itself rather than pointing to them in Azure Key Vault. Secrets that may have been exposed include:

  • named values
  • client secrets for identity providers and OpenID Connect providers
  • subscription keys
  • tokens used to call management APIs

Microsoft says it identified the problem on 18 November and closed the access path with an automatic mitigation on 19 November. The company says customers still need to check whether their instances were compromised before that fix took effect.

Norway's National Security Authority (NSM) says the country's energy sector first detected the flaw. NSM named gas company Equinor and hydropower firm Skagerak Energi among the affected organisations, and says the vulnerability reaches several sectors both inside and outside Norway.

NSM's advice to APIM users:

  • treat their secrets and named values as exposed
  • rotate all tokens and secrets
  • map the data each instance can reach, to gauge the possible scope of a compromise

NSM also tells organisations to check each instance's runtime version against the patch levels NSM has published, and to get in touch with their provider if the instance has not been patched.

Security expert Anders Kristiansen warned that a stolen credential could be turned against the protected service itself, bypassing APIM. Customers who spoke to The Register cautioned that overlooked development and test instances might widen the exposure. How widely the flaw was exploited remains unclear.