Microsoft Azure API Management Flaw Allowed Access to Customer Secrets

Compromised credentials could still let attackers access backend applications, databases, and cloud services, leaving affected organizations with potentially significant remediation and investigation work.

Security

Key Takeaways:

  • Attackers exploited a vulnerability in Azure API Management Classic tiers to access stored credentials and secrets.
  • Microsoft fixed the issue and deployed service-side mitigations, but previously exposed credentials may still be valid.
  • Affected organizations should rotate secrets, review logs, and assess downstream systems that may have been accessible through compromised credentials.

Microsoft has disclosed a security flaw in Azure API Management (APIM) Classic tiers that attackers actively exploited to access customer credentials and secrets stored in affected instances. This vulnerability allowed unauthorized access to APIM management functions, which potentially exposed sensitive data such as Named Values, subscription keys, identity-provider secrets, OpenID Connect credentials, and management API tokens.

This issue affected APIM Classic Developer, Basic, Standard, and Premium tiers, while APIM v2 services were not impacted. The security flaw has already been linked to real-world attacks, with Norwegian authorities connecting it to incidents involving energy companies Equinor and Skagerak Energi.

Stolen secrets could extend the impact beyond APIM

According to an Azure Service Health security advisory, stolen credentials could provide attackers with access to backend applications, APIs, databases, or cloud services protected by those credentials. Attackers may have been able to bypass APIM entirely and use the stolen secrets directly against connected systems.

Microsoft believes some credentials may have been accessed before the company discovered and mitigated the vulnerability. As a result, organizations cannot assume that applying Microsoft’s fix eliminates the risk. Any compromised credentials may still be valid and usable by attackers.

Microsoft closes the Azure APIM vulnerability

Microsoft closed the unauthorized access path on November 19 after identifying the vulnerability a day earlier. The company also rotated Microsoft-managed credentials where appropriate and deployed service-side mitigations to prevent further exploitation.

Microsoft recommends that affected organizations must rotate all APIM-stored secrets, tokens, and subscription keys, investigate logs for signs of suspicious management activity, and review whether sensitive credentials were stored directly in APIM instead of Azure Key Vault. Administrators must also verify that APIM instances are running patched runtime versions, and assess what backend systems could be accessed using exposed credentials.

Microsoft’s mitigation stops the vulnerability from being exploited going forward, but it does not automatically invalidate credentials that may have already been stolen. This limits disruption for customers but shifts much of the remediation burden onto IT and security teams. Organizations must manually rotate secrets, verify downstream dependencies, and investigate potential compromise.

It’s highly recommended to store sensitive secrets in Azure Key Vault rather than directly within APIM. It can improve security, but add deployment complexity and operational overhead that some organizations may have previously chosen to avoid.