Hackers Raided Azure API Management for Secrets. Microsoft’s Fix Won’t Cancel Stolen Keys
If your company runs APIs on Microsoft Azure, there is a job for this week that a patch alone will not do. Microsoft has confirmed that attackers exploited a flaw in the older “Classic” tiers of Azure API Management (APIM) to get at secrets stored inside the service. Microsoft has closed the hole, but any keys that were stolen before the fix still work.
That last point is why this matters. Fixing the flaw did not cancel the stolen credentials. You have to replace them yourself.
A quiet back door into the place where API keys live
Azure API Management sits between an organization’s apps and the services behind them. To do that job it often holds a lot of sensitive material: API keys, client secrets for sign-in providers, and tokens that unlock other systems.
In a Service Health advisory sent to customers, Microsoft said it identified the issue on November 18 and blocked the unauthorized access path on November 19. According to BleepingComputer, which saw the advisory, the exposed data may include secrets stored in Named Values, client secrets for identity and OpenID Connect providers, subscription keys, and tokens used to call management APIs.
Microsoft said the problem mainly hit Classic instances that were not set up the way it recommends, or that stored secrets directly in APIM instead of pulling them from Azure Key Vault. The newer APIM v2 tiers are not affected.
Norway’s energy sector spotted it first
The flaw was not a lab finding. Norway’s National Security Authority (NSM) says the country’s energy sector found it, with Equinor playing a key role. Equinor and electricity producer Skagerak Energi both reported cyberattacks last week, The Record reports.
Equinor said some internal services were disrupted but oil and gas production carried on normally, and that it has seen no sign that data was stolen or changed. Skagerak said its operations and power production were not affected.
NSM says organizations in other countries and sectors were also affected. It has not named the attacker, and Microsoft has not said how many customers were exposed. NSM also warned that more groups may now try to abuse the flaw because it is public.
What is still unconfirmed
One administrator posted on Reddit that attackers used an authentication bypass in a deprecated legacy API that left no logs customers could check. BleepingComputer says it could not verify those claims, and Microsoft has not confirmed them. If they are true, a quiet log does not prove you were safe.
A to-do list for teams on APIM Classic
- Check your tier. If any APIM instance runs on a Classic tier (Developer, Basic, Standard or Premium), treat it as possibly exposed, and look in Azure Service Health for Microsoft’s notice.
- Rotate everything it held. Replace Named Values, subscription keys, and client secrets for identity providers. Microsoft says its own fix does not invalidate them.
- Follow the keys downstream. Review logs on the backend systems, Key Vaults and apps those credentials could open, not just APIM itself.
- Move secrets out. Store secrets in Azure Key Vault and reference them from APIM, as Microsoft recommends, and lock down management access on the network.
For everyone else, this is a reminder that cloud services can store more secrets than anyone keeps track of. Make a list of where your organization’s keys actually live. When the next advisory lands, that list will save you days.
