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
- Vendor
- Microsoft
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 | Affected | Fixed |
|---|---|---|
| Azure API Management Classic tiers | 0.52 runtimes before build 31936, and 0.53 before 31938 | Build 31936 or later on 0.52, and 31938 or later on 0.53 |
| Azure API Management v2 and Consumption tiers | Not affected | Not needed |
- Product
- Azure API Management Classic tiers
- Affected
0.52runtimes before build31936, and0.53before31938- Fixed
- Build
31936or later on0.52, and31938or later on0.53
- Product
- Azure API Management v2 and Consumption tiers
- Affected
- Not affected
- Fixed
- Not needed
Timeline
- Nov 17Equinor reports a cyberattack.
- Nov 18Skagerak Energi reports an incident, and Microsoft finds the issue.
- Nov 19Microsoft closes the access path.
- Nov 20NSM links the attacks to Azure API Management and gives its advice.
Sources
- Norwegian National Security Authority advisory in NorwegianPrimary source nsm.no
- SecurityWeek news reportReporting securityweek.com
- The Register news reportReporting theregister.com
- Anders Kristiansen researchPrimary source anderskristiansen.com