Protect.Computer
NEWS

Azure API Management Flaw Exploited to Steal Stored Credentials

· 3 min read · Got hacked Network safety
Azure API Management Flaw Exploited to Steal Stored Credentials

Microsoft has told customers that a vulnerability in the Classic tiers of Azure API Management (APIM) was exploited to reach secrets stored in the service, according to BleepingComputer, which saw the Azure Service Health advisory (tracking ID MZK9-GH0). APIM is the cloud service organizations use to publish and manage the APIs that connect their applications. Microsoft says it identified the problem on November 18 and closed the unauthorized access path on November 19. It also warns that the fix “does not automatically invalidate credentials that may have been accessed before the fix was deployed.”

Norway’s National Security Authority (NSM) ties the flaw to real attacks. It says an unknown actor has actively gone after access tokens, secrets and named values in APIM, and that the energy companies Equinor and Skagerak Energi are among those affected. Per NSM, Norway’s energy sector found the problem first, and organizations in other countries and industries were also hit. NSM says it is still unclear how widely the flaw has been or is being exploited, and it has no indication that attempted or successful compromises disrupted services at Norwegian organizations.

What Microsoft says may have been exposed, as quoted by BleepingComputer: secrets stored in Named Values, client secrets for identity providers and OpenID Connect providers, subscription keys, and tokens used to call direct management APIs. Those credentials could let an attacker reach other applications and backend systems, depending on their permissions. According to BleepingComputer, Microsoft says the access was possible when APIM Classic instances were not set up according to its recommended practices. The Record adds that the issue mainly affected customers who had not followed those recommendations or had stored sensitive data in APIM rather than in Azure Key Vault.

Several details are still unsettled:

  • Which tiers. BleepingComputer reports that Microsoft says APIM v2 tiers are not affected. Microsoft told The Record the flaw hit several tiers, including Developer, Basic, Standard and Premium.
  • Whether a patch is on your instance. BleepingComputer says Microsoft reports its fix needed no customer action, yet NSM tells organizations to check that their instances received the update. BleepingComputer notes it is unclear whether NSM’s runtime versions are separate from Microsoft’s initial mitigation.
  • Scale. Microsoft has not said how many customers may be exposed, or whether the same actor was behind the Norwegian incidents, according to The Record.
  • An unverified account. BleepingComputer cites a Reddit post in which an administrator claimed the flaw was an authentication bypass in a deprecated legacy API that produced no customer-visible logs. BleepingComputer has not verified those claims.

Equinor’s own statements say it detected a cyberattack on November 17 and stopped it on November 20. It reports no indication that data was stolen or altered, that production ran normally, and that the attack did not appear to target Equinor specifically. Equinor’s page does not mention Azure API Management; the link to APIM comes from NSM. Skagerak Energi says the activity did not affect operations or production and that it still has no indication that information was compromised.

How to check if you’re affected

Affected products are Azure API Management Classic tiers, per Microsoft’s advisory as reported by BleepingComputer. NSM’s instructions for checking an instance’s version:

  1. Open https://<your-gateway-hostname>/internal-status-0123456789abcdef and read the RuntimeVersion value.
  2. For 0.52.x, the instance is patched if the last number is 31936 or higher. For 0.53.x, it is patched if the last number is 31938 or higher. Lower numbers are still vulnerable.
  3. Other patterns (NSM’s examples are 0.53.4608.0 and 0.52.4150.0) indicate a V2 or Consumption tier, where the threshold does not apply and the instance is not vulnerable.
  4. If an instance has not been updated, NSM asks you to contact your service provider. If you see signs of or confirm a compromise, NSM asks you to contact it.

On credentials, NSM says anyone running APIM should assume their secrets and named values are exposed, rotate all tokens and secrets, and map what sits behind each APIM instance so the potential scope is clear. Microsoft’s advisory, as quoted by BleepingComputer, likewise urges customers to rotate potentially exposed credentials, investigate suspicious activity in systems reachable with them, and review logs. BleepingComputer says a cloud security researcher, Anders Kristiansen, shared threat-hunting queries for APIM; we did not read them.

Sources

Related reading