MediumVulnerabilityMonitoring

HIBP says Azure APIM flaw may have exposed API keys; impact unclear

iTnews reports Microsoft says Azure APIM Classic credentials may be exposed; if you run APIM, check your Service Health advisory.

Published
Exploitation
Not independently confirmed. iTnews describes the flaw as exploited by attackers, but HIBP’s email said only that it could not confirm its keys were affected, and Norway’s NSM says it is still unclear how extensive the exploitation is.

What happened

According to iTnews, Have I Been Pwned (HIBP) has told subscribers with active API keys that those keys may have been exposed through a flaw in Microsoft’s Azure API Management (APIM) service. iTnews itself describes the flaw as one that attackers have exploited; that is iTnews’s description, not a statement HIBP made in its email. iTnews says HIBP’s email said it could not confirm whether its keys were affected but had concluded that this was possible. HIBP founder Troy Hunt told iTnews the message was genuine and not phishing.

iTnews reports that Microsoft found the flaw in APIM’s Classic tiers on November 18 and closed the access path the next day. According to the same report, Microsoft warned that the fix did not cancel credentials taken earlier. iTnews says Microsoft listed credentials for backend systems, subscription keys and management tokens as material that may have been accessed.

iTnews reports that Microsoft notified customers through private Azure Service Health advisories (tracking ID MZK9-GH0) and has not published a public incident page. Hunt called Microsoft’s messaging “infuriatingly vague”. Per iTnews, an updated advisory widened the scope: secrets in Azure Key Vault may also have been exposed if APIM referred to them. The update also set out network isolation criteria. Basic and Standard tier instances cannot be deployed in a virtual network, so they could not have met those criteria. The Consumption tier, listed as affected in the first notice, has since been ruled out, and the APIM v2 tiers were never affected.

iTnews says Norway’s National Security Authority (NSM) named energy companies Equinor and Skagerak Energi among organisations hit, and said other sectors in Norway and abroad were also affected. According to iTnews, both companies say there is no indication data was stolen. iTnews quotes NSM’s Martin Albert-Hoff as saying it is still unclear how extensive the exploitation is.

Hunt told iTnews his “gut feel” is that this is a non-event for HIBP, and that HIBP has received no customer reports of unusual key activity.

What is not confirmed: whether HIBP’s keys were affected, whether and how the flaw was exploited against any given organisation, how many organisations were affected, the entry point and technical details of the flaw, and whether any data was stolen. A CVE identifier is not confirmed in the source. The only source is iTnews; Microsoft’s advisory was not published publicly and was not available for this advisory.

Am I affected?

Based on iTnews’s reporting:

  • APIM Classic tiers: the flaw was reported in these tiers, and Microsoft’s notices went to affected customers privately through Azure Service Health.
  • Basic and Standard tiers: these cannot be deployed in a virtual network, so per the updated advisory they could not have met Microsoft’s network isolation criteria.
  • Consumption tier: listed as affected at first, now ruled out according to the update.
  • APIM v2 tiers: reported as never affected.
  • HIBP API subscribers: HIBP has said its keys may have been exposed and left rotation to each subscriber.
  • Key Vault users: secrets may also have been exposed if APIM referred to them.

Whether your own instance was accessed is not confirmed in the source. Your Azure Service Health advisory is the place to check.

What to do now

  1. Check Azure Service Health for the advisory under tracking ID MZK9-GH0 and read the updated version, including the network isolation criteria.
  2. Identify which APIM tier each of your instances uses and whether it meets those criteria.
  3. Note that, per iTnews, Microsoft’s fix did not cancel credentials taken before it. Decide whether to rotate the subscription keys, management tokens and backend credentials that APIM holds, and any Key Vault secrets it refers to.
  4. If you hold an HIBP API key, decide whether to rotate it. HIBP left that choice to subscribers because rotation can break integrations. Hunt says no unusual key activity has been reported to HIBP.
  5. Watch for further notices from Microsoft and for updates from NSM, since the extent of exploitation is described as unclear.

Sources