News Cloud Security

Azure API Management Flaw Exploited to Steal Secrets

Norway's National Security Authority says an unknown actor has actively gone after access tokens, secrets and named values in Azure API Management. The platform issue is reported fixed, but the fix does not undo credential theft, so affected customers are told to rotate everything.

Application and infrastructure security, over a decade in the field Published
Line-art banner of an API gateway with keys spilling out beside the headline about the exploited Azure API Management flaw

Key takeaways

  • Norway's NSM says an unknown actor has actively targeted access tokens, secrets and named values in Azure API Management.
  • NSM advises assuming secrets and named values are compromised and rotating all tokens and secrets.
  • Help Net Security reports that, per Microsoft, the issue affects APIM Classic tiers and that the fix does not invalidate credentials already accessed.
  • No CVE identifier or count of affected customers has been published.
  • Check each instance's RuntimeVersion against the patched builds listed by NSM.

If you run Azure API Management, treat the secrets stored in it as exposed and start rotating. That is the practical message from Norway's National Security Authority (NSM), which published an advisory on 20 November and updated it on 23 November.

What NSM says #

The NSM advisory is in Norwegian, so what follows is paraphrase. NSM says an unknown actor has actively gone after access tokens, secrets and named values in Azure API Management (APIM). It names Equinor and Skagerak Energi among the affected organisations and says it has no indication that the compromise affected deliveries at Norwegian organisations.

NSM says the vulnerability should now be closed, but that it is still unclear how extensive exploitation is and has been. Its advice: assume secrets and named values are compromised, and rotate all tokens and secrets. The advisory also gives the RuntimeVersion build values that indicate a patched instance. Instances that have not been updated should contact the vendor, and organisations with signs of compromise should contact NSM.

No CVE identifier and no count of affected customers have been published.

What Microsoft reportedly told customers #

Microsoft's own notice was delivered through the Azure Portal and is not public, so this section relies on Help Net Security's reporting of it. According to Help Net Security, Microsoft described a security issue in APIM Classic tiers that could allow unauthorised access to certain management functionality "if the service was not configured according to documented security best practices".

Per the same report, Microsoft said named values, identity provider and OpenID Connect client secrets, subscription keys and direct management API tokens may have been accessed, and that the newer generation of APIM tiers is not affected. Help Net Security reports that Microsoft identified the issue on 18 November and fixed it the next day, and that the fix does not invalidate customer credentials already accessed.

What to do #

  • Rotate. Named values, backend credentials, identity provider and OpenID Connect client secrets, subscription keys and management API tokens.
  • Verify the fix. Compare your instance's RuntimeVersion against the patched builds listed in the NSM advisory.
  • Review access. Look for use of those credentials directly against backend services. Researcher Anders Kristiansen, quoted by Help Net Security, makes the point that a stolen credential can be used against the service it protects, outside APIM.
  • Reduce what is stored inline. Moving secrets to Key Vault references and restricting network access to the management plane both shrink what a future management plane issue can reach.

The appsec takeaway #

An API gateway holds the keys to everything behind it. When its management plane is exposed, the incident is a credential incident, and a platform fix does not close it. Rotation does.

Sources

  1. NSM deler tiltak mot sårbarhet i Azure API Management, Nasjonal sikkerhetsmyndighet (NSM)
  2. Azure API Management vulnerability exploited to steal customers' secrets, Help Net Security

Questions this raises

What happened with Azure API Management?
Norway's National Security Authority (NSM) says an unknown actor has actively gone after access tokens, secrets and named values in Azure API Management. It names Equinor and Skagerak Energi among the affected organisations.
Which Azure API Management tiers are affected?
According to Help Net Security's reporting of a Microsoft notice sent through the Azure Portal, the issue affects APIM Classic tiers and does not affect the newer generation of tiers. Microsoft's notice itself is not public.
Is the Azure API Management issue fixed?
NSM says the vulnerability should now be closed, and Help Net Security reports Microsoft fixed it the day after identifying it. The fix does not invalidate credentials that were already accessed, so rotation is still required.
What should Azure API Management customers do?
NSM advises assuming secrets and named values are compromised and rotating all tokens and secrets. Customers should also confirm their instance reports a patched RuntimeVersion as listed in the NSM advisory.

azureAPI Securitysecrets