Rotate Secrets After the Azure API Management Flaw
Microsoft closed an Azure API Management Classic hole on November 19. Customer secrets stay valid until you rotate them. Dev and test instances count.
By Muhammad Saif and Aashan Khan · Techtribe co-founders
Microsoft found a flaw in Azure API Management Classic, and people used it. The company told customers it identified the issue on November 18, 2026, and deployed a mitigation the next day. BleepingComputer's November 23 account of the advisory, Microsoft Azure flaw exploited to steal customers' API credentials, quotes Microsoft directly: customers were exposed, and an unauthorized party could have reached secrets stored in Classic instances before Microsoft identified the problem. Norwegian authorities linked the same flaw to attacks that included energy companies. Norway's National Security Authority, NSM, told organizations that run API Management to assume secrets and named values were exposed and to rotate them.
The mitigation closed a management-plane path. It did not invalidate the secrets a caller might already have copied. That sentence is the whole incident for a customer. The cloud vendor patched its service. Your API keys, your identity-provider secrets, and your subscription keys still work until you change them. A green status in the portal is not a rotation.
This note stays on what to rotate and how to tell a Classic instance from a v2 instance. It does not describe how the access worked. Unverified accounts of a particular legacy API, including a Reddit post BleepingComputer said it had not verified, are not the basis for the steps below. Microsoft's list of secret types, the tier list, and NSM's published version check are.
The order of rotation, once you know a key left a system, is the same order as any other exposure. That order is written in what to rotate when an API key is exposed. API Management is one more place the key was stored.
Who was in the window
Microsoft told BleepingComputer the vulnerable tiers were Developer, Basic, Standard, and Premium on API Management Classic. Consumption on Classic was not. All v2 tiers were not. The advisory Microsoft described also tied exposure to Classic instances that were not configured the way Microsoft recommends, including instances that stored secrets directly instead of referencing Key Vault. Do not use that sentence to skip rotation. NSM's public advice is to assume secrets and named values are gone if you run API Management, and to rotate. A "we followed best practice" memory is not a log. If you are Classic, rotate. If you are not sure you are Classic, check before you skip.
The window that matters is anything stored before the November 19 mitigation, and anything an attacker could use after that date because you did not rotate. Identification on November 18 does not prove the first access was November 18. Assume a longer lookback if your logs allow it. Equinor and Skagerak Energi were named publicly as affected. You do not need to be an energy company. You need a Classic instance that held secrets.
Dev and test instances are the ones teams skip. The Register reported customers warning that forgotten non-production instances were still exposed. A Developer-tier service with the production database password in a Named Value is production. The tier name is a billing label. The secret is the asset. Inventory every instance in every subscription, including the subscription a contractor created.
What Microsoft said could be read
The advisory's list, as reported, is specific.
Named Values that store secrets. Teams put backend passwords, function keys, and third-party API keys there because policies can read them. If the value was stored in the instance rather than referenced from Key Vault, treat it as copied. If it was a Key Vault reference, rotate the underlying secret anyway if you cannot prove the vault was untouched. A reference is not automatically safe. It is a pointer. NSM's instruction is to rotate tokens and secrets, not to sort them into theories.
Client secrets for identity providers, and client secrets for OpenID Connect providers. Those are the credentials your gateway uses to talk to an identity service. A copied client secret lets someone else talk to that identity service as your app, within the lifetime of the secret. Rotate it at the identity provider, then update API Management, then confirm the old secret fails.
Subscription keys. Callers present these to reach your APIs. A copied key is a copied client. Regenerate keys, update the real callers, and watch for use of the old key after regeneration. The caller you forgot is the integration that breaks. The caller you did not know about is the incident continuing.
Tokens used to call the direct management API. Those tokens administer the instance. A copied management token is how someone comes back after you think the vendor path is closed. Revoke them. Issue new ones only to identities you can name. Prefer the control-plane access you already audit over a long-lived direct token.
Microsoft said it rotated Microsoft-controlled keys where appropriate. Those are not your Named Values. Both can be true: Microsoft changed its own credentials, and your backend password is unchanged. Do your list.
How to check the build without guessing
NSM published a practical check. Open the instance's internal status endpoint, https://<your-service>.azure-api.net/internal-status-0123456789abcdef, and read RuntimeVersion.
For 0.52.x, NSM says the instance is patched when the last number is 31936 or higher. For 0.53.x, the threshold is 31938 or higher. Patterns such as 0.53.4608.0 or 0.52.4150.0 are, in NSM's note, v2 or Consumption version strings where this threshold does not apply, and those tiers were not the vulnerable ones. A lower build on 0.52 or 0.53 means you are still not on the fixed build. Contact the vendor path NSM names if the instance did not update. If you see signs of compromise, NSM asked Norwegian organizations to contact NSM. Elsewhere, use your own incident channel and Microsoft's support path. Do not post the secrets to a forum while you ask.
Record the version, the tier, the subscription, and the date you read them. You will be asked. A portal memory does not survive a second question.
Patched does not mean rotated. Run the version check and the rotation. Teams that only do the version check leave the copied key alive on a fixed platform, which is the outcome Microsoft warned about.
What to do, in order
- List every API Management instance. Subscription, resource group, tier, Classic or v2, and whether it is called dev. Include instances with no recent traffic. Idle secrets are still secrets.
- For each Classic instance on Developer, Basic, Standard, or Premium, read the runtime version and write down the build. Do not skip an instance because the production gateway "is v2." The other one in the same tenant is the usual miss.
- Export the names of Named Values, identity providers, and subscription key owners. Names and types, not the secret values, into a ticket. The ticket is the rotation checklist. Pasting the values into the ticket creates a second copy.
- Rotate at the source. Backend passwords, third-party API keys, identity client secrets, subscription keys, management tokens. Create the replacement, deploy the policies and apps that use it, then revoke the old value. Revoking first is correct when you can tolerate the outage and dangerous when you have not found every caller. Decide that on purpose, per secret, with the owner of the API.
- Look for use. API Management logs, the backend's auth logs, the identity provider's sign-in logs, Key Vault logs if a secret there was in play. You want calls that succeeded with the old credential after a date you did not make them. Absence of diagnostic logs is a finding. Turn them on after you rotate, so the next window is visible.
- Move secrets that were stored directly in the instance to Key Vault references, and restrict who can read those vault secrets. Microsoft pointed at that configuration. Do it after the values are new, so you do not carefully relocate a credential an attacker already has.
- Repeat for the next instance. Then write the date each secret changed. The November 19 mitigation date and your rotation date are the two timestamps that bound the customer's question.
If a subscription key is embedded in a mobile app or a partner's server, rotation is a release, not a portal click. Start that release the day you start the list. A key left for "the partner to update next month" is a key that still works next month.
Backends that trusted the gateway's IP and not a secret are a different design. They were not made safe by the gateway's secret list, and they are not the main item in this advisory. If your backend's only control was a key stored in API Management, that key is the control you just assumed was copied. Network rules do not replace the rotation. They reduce what a copied key can reach if you add them now.
What does not hold
Waiting for Microsoft to rotate your Named Values does not hold. They said they would not. The path is closed. The secret is yours.
Skipping Developer tier because it is not production does not hold. The tier is affected. The value inside it might be a production password a developer copied there to debug a policy. Open the Named Values and read the names. The names tell you whether the instance matters.
Assuming v2 because the product is new does not hold until you read the resource. Classic and v2 can sit in the same subscription. The version string is the check. The age of the company is not.
Rotating the subscription key and leaving the OpenID Connect client secret does not hold. The advisory lists both. A partial list is how the unused credential becomes the way back. Finish the types, then the instances.
Publishing the internal status page, or the secrets, in a chat log does not hold. The status check is for you. The secret values should not be in the chat at all.
A WAF in front of the API does not hold as a substitute for rotation. The issue Microsoft described was management-plane access to stored secrets, not a request a WAF would have scored on the data plane. Rotate. Then improve the edge if you want defense on the calls themselves.
After the list is done
Turn on diagnostic logs you can retain. Restrict who can read Named Values and who can create management tokens. Put a quarterly reminder to export instance names and confirm each one is still v2, or still justified if it is Classic. New subscriptions appear when someone follows an old tutorial. The tutorial is how Classic comes back.
Tell the owners of downstream systems what you rotated, in one note, without the secret values. The partner whose key changed needs the new key through a channel you already trust. Emailing it to a list is a new exposure.
If a customer of yours calls your API with a key you issued, and that key lived in API Management, your customer communication is the same shape as any credential incident. You revoked it, here is the date, here is what they must update. Do not wait for a perfect forensic timeline to revoke. NSM's public position is to assume exposure. Assumption is enough to rotate. It is also enough to be honest that you are still reading logs.
What to tell your own API customers
If you issue keys to outside developers, your rotation is also their rotation. Prepare a note before you revoke, not after their integration pages you. The note says which key type changed, when the old value stops, and how they receive the new value. Deliver the new value in the channel you already use for secrets, not in the same email as a long explanation. The explanation can be wide. The secret cannot.
Give partners a date that is soon and real. Forty-eight hours is enough for a scripted client and not enough for a mobile app store review. If you know a key is inside a shipped app, plan a longer overlap where both keys work, and watch the old key's traffic so you know who has not shipped. An overlap is a choice. An infinite overlap is the incident remaining open. End it on the date you published.
Internal callers are partners too. The function app, the logic app, and the script on a build server need the same notice, sent to the people who own them. A revoked key at 4 p.m. with no owner is an outage you caused on top of the one you were preventing. The checklist's "who breaks" column is this paragraph in operational form. Fill the column before you click regenerate.
If you cannot find a consumer for a Named Value, rotate it anyway and leave the new value unused until someone complains. An unused secret that still works is not harmless. It is the one nobody monitors. Rotation that produces a complaint is how you learn the consumer. Rotation that produces silence is how you learn the value was dead, which is also worth knowing.
Store the checklist where the next on-call can find it without asking who ran November. The resource ids, the version strings, the date each secret type was rotated, and the log query you used. The next advisory will not give you time to reconstruct the tenant from memory. A tenant that took a day to inventory this time should take an hour the next time, because the list exists. If it does not exist, you did the rotation and threw away the only asset that makes the next one faster.
The next time a cloud advisory says "customer credentials are not invalidated," the work is this list, already practiced. API Management happened to be the service. The pattern is a secret store you do not fully control, plus a fix that does not rotate your half. Know your half before the next notice.
If this is your app, send the repo.
A 30-minute scope call. We read what is live, name what is dangerous, and quote a fixed scope.
How Techtribe runs the API Management rotation
We inventory every API Management instance you can reach, separate Classic from v2, and build the rotation list from Named Values, identity-provider secrets, subscription keys, and management tokens. You get the order, the callers who will break, and the timestamps. We do not need the secret values in a chat. Names, tiers, and a portal role that can read configuration are enough.
A single subscription with a handful of APIs is a fixed pass. A tenant full of dev instances and partners who embed keys is a Dedicated Team so the rotation finishes and the next instance does not come back as Classic with a production password inside it. The general rotation habit, if keys are also sitting in repos and agent settings, starts with the exposed-key guide.
Bring the list of subscriptions and say whether anyone has already rotated a subset. A partial rotation changes the order. If you have not opened the Developer-tier instance since last year, say that too. That is the one we will open first.
The fixed scope for taking a generated app to production is a page per tool: Lovable, Bolt, v0, and Replit.
Questions
Which Azure API Management instances were affected?
Microsoft told reporters the flaw hit Developer, Basic, Standard, and Premium tiers of API Management Classic. The Consumption tier of Classic, and all API Management v2 tiers, were not affected. Forgotten dev and test Classic instances are in scope if they are those tiers.
Did Microsoft's fix rotate customer secrets?
No. Microsoft said it closed the unauthorized management-plane path on November 19, 2026, and rotated Microsoft-controlled credentials where appropriate. It warned that customer secrets copied before the fix stay valid until the customer rotates them.
What might have been readable?
Microsoft's advisory lists secrets in Named Values, client secrets for identity providers, client secrets for OpenID Connect providers, subscription keys, and tokens used to call direct management APIs. What those open depends on how you used them. Treat the list as exposed if the instance was Classic and unpatched during the window.
How do we tell if the instance is patched?
Norway's NSM published a runtime check. On the instance status page, 0.52.x is patched when the build is 31936 or higher, and 0.53.x when the build is 31938 or higher. Other patterns, such as a v2 or Consumption version string, are the tiers NSM said this threshold does not apply to.