Azure APIM Flaw Stole API Secrets, Microsoft Warns

Microsoft has warned customers that attackers exploited a flaw in the Classic tiers of its Azure API Management service to steal stored API credentials, in attacks Norway's security authority has linked to two of the country's energy companies.
The company said it identified the vulnerability on 18 November 2026 and deployed a mitigation the following day. The flaw let an unauthorised party reach management functions on affected instances and read the secrets stored inside them.
"Our investigation found that customers were exposed and an unauthorized party could have used the issue to access secrets stored in Azure API Management Classic instances before Microsoft identified the security issue," Microsoft said in an Azure Service Health advisory sent to customers, tracked as MZK9-GH0.
What attackers could take
Microsoft said the information that may have been exposed includes secrets stored in Named Values, client secrets linked to identity providers and OpenID Connect providers, subscription keys, and tokens used to call the service's direct management APIs.
Those credentials could let an attacker reach other applications, services or back-end systems, depending on the permissions each one grants. The flaw affected the Developer, Basic, Standard and Premium tiers of API Management Classic. The Consumption tier of Classic, and all tiers of the newer APIM v2, were not affected.
According to Microsoft, the flaw allowed unauthorised access to certain management functions when an instance was not configured in line with its recommended security practices. That access could then be used to carry out administrative operations, including reading stored secrets.
The fix does not undo stolen credentials
Microsoft said it closed the unauthorised access path on 19 November and rotated Microsoft-controlled keys and credentials where appropriate. But the company warned that its fix does not automatically cancel customer credentials that may already have been taken.
"This remediation blocks the unauthorized management-plane access path that could allow an actor to perform administrative operations, including secrets management, against Azure API Management services," Microsoft warned. "However, it does not automatically invalidate credentials that may have been accessed before the fix was deployed."
Microsoft urged affected customers to rotate any credentials that may have been exposed straight away, to investigate suspicious activity in systems those credentials can reach, and to review logs for signs of unauthorised access.
Norway links the flaw to energy attacks
Norway's National Security Authority, known as NSM, said an unknown threat actor actively targeted access tokens, secrets and Named Values stored in Azure API Management, and linked the flaw to cyberattacks on the energy companies Equinor and Skagerak Energi.
Equinor disclosed an ongoing cyberattack on some of its IT systems on 17 November, a day before Microsoft says it identified the flaw. The company later said it had stopped the attack, that production was running normally, and that there was no indication data had been stolen or altered. Skagerak Energi also reported an attempted attack, saying it had no impact on operations and no evidence that information was compromised.
NSM published guidance on 20 November and updated it on 23 November. It credited Norway's energy sector, and Equinor in particular, with detecting the problem first. The agency said the flaw affects several sectors in Norway and beyond its borders, and urged every organisation using the service to assume its secrets and Named Values had been exposed, rotate all tokens and secrets, and map out what information sits behind each instance.
NSM also advised customers to check the RuntimeVersion of their gateway: a 0.52.x build is fixed from 31936 and a 0.53.x build from 31938. Microsoft said its 19 November remediation was fully deployed to Microsoft-hosted instances and needed no customer action, but did not explain why NSM continued to advise customers to check their runtime versions.
No CVE, no public advisory
No CVE identifier has been assigned to the flaw, and Microsoft has not published a public security bulletin. Customers were told through the private Service Health advisory instead. That makes the incident harder for defenders to track than a normal patched vulnerability, because there is no public reference number to search for.
The incident comes days after Microsoft confirmed a separate breach in which attackers abused its Entra Connect Health service to harvest tenant data. For organisations running API Management Classic, the practical step is the same in both cases: rotate the credentials, check the logs, and do not assume the vendor's fix alone has closed the exposure.