APIM Secret Rotation Starts at the Credential of Record
APIM secret rotation is several operations, not one, because the credentials inside an Azure API Management instance have different issuers, and a rotation that stays inside APIM replaces only a copy. On November 20, Norway’s National Security Authority (NSM) told all Azure API Management users to proceed on the premise that their secrets and named values had gone astray, and that this means rotating all tokens and secrets. The same page says V2 and Consumption tier instances are not vulnerable and gives a runtime version check, so the blanket instruction and the vulnerable population are not the same set. NSM says an unknown actor actively went after access tokens, secrets and named values, and it names Equinor and Skagerak Energi among those affected. The rotation instruction is explicit. What it leaves open is a question that the revocation unit already frames: for each credential, where is the credential of record, who issues it, what consumes it, and how does a replacement reach every consumer while the old one is shown to fail?

What the Advisories Establish, and What They Do Not
Where a platform keeps the credentials that reach your backends and identity providers is a cloud strategy architecture question before it is an incident-response one, because the answer decides who can rotate what. The table labels each claim by how it was read.
| Claim | Source | Status |
|---|---|---|
| An unknown actor went after access tokens, secrets and named values in APIM; assume secrets and named values are exposed; rotate all tokens and secrets; map what sits behind each instance to gauge potential scope if evidence of compromise is found; the guidance opens with “Alle som har Azure API Manager” and sets no tier or version limit | NSM advisory, published November 20, updated November 23 (the page’s stated change is a sector-wording correction); read in the browser pane 11/23, re-read 11/23 for scope wording | Primary |
| Extent of exploitation is uncertain; NSM so far has no indication of consequences for deliveries at Norwegian firms | NSM, same page | Primary |
| Runtime check: 0.52.x is patched at build 31936 or higher, 0.53.x at 31938 or higher; V2 and Consumption tiers are not vulnerable and the thresholds do not apply | NSM, same page | Primary |
| Classic tiers affected, v2 not; identified November 18, mitigated November 19; the access path applied when instances were not configured to recommended practice; exposed categories were named-value secrets, identity-provider and OIDC client secrets, subscription keys and direct management API tokens; the fix does not invalidate earlier-accessed credentials | Microsoft’s customer advisory (tracking ID MZK9-GH0), as described by BleepingComputer; delivered through Azure Service Health, not found published | Reported, not read |
| Named value types, Key Vault refresh behavior, policy-edit and tracing visibility | Microsoft Learn, named values; read in the browser pane 11/23 | Primary |
| The direct management API is deprecated, support ended March 15, 2025, and an instance that has it enabled should disable it | Microsoft Learn, retirement notice; read in the browser pane 11/23 | Primary |
| Rotation order: create the replacement at the issuer, update API Management, test, revoke the old secret; updating the value in API Management does not revoke the old credential at its issuer; the credentials covered include logger connection strings and credentials written directly into policies | Microsoft Tech Community: Rotating credentials in Azure API Management, November 21, updated November 22; read in the browser pane 12/1 | Primary (Microsoft guidance, not the advisory) |
NSM is the operative instruction here. The Microsoft advisory text is a paraphrase of a document this post did not read, so every statement from it is attributed and none is treated as confirmed. Microsoft’s public rotation guide is read directly: it sets the issuer-first order this post builds on, and it does not ask for proof that the old credential is refused or say what regenerating a management key does to tokens already signed. That is enough to build the decision APIM secret rotation turns on, and the last section lists what it cannot settle.
APIM Secret Rotation Starts With the Credential of Record
The credential of record is the place where a credential is issued and where it can be invalidated. It is not necessarily where APIM keeps it. A named value that holds a backend’s API key is a copy; the record is at the backend. A client secret in an APIM identity provider configuration is a copy; the record is the application registration. APIM secret rotation that stops at the copy leaves the old credential valid at the issuer, and the holder of the old credential never notices. Who holds a credential and who can invalidate it are different facts, the same split between holding and governing that the Control Plane Architecture stage develops as ownership versus authority, and APIM concentrates both kinds of fact in one instance.
The classes below differ in authority and lifecycle, and the closure evidence differs with them. This is analysis, built from Microsoft’s documentation and the reported advisory categories, not a Microsoft taxonomy.
| Class | Held in APIM as | Credential of record | Rotation authority | Primary closure evidence |
|---|---|---|---|---|
| Named values | Plain, secret or Key Vault-referenced named value | The issuer of the underlying value: a backend, an identity provider, or whoever generated it. Only a string the team generated itself has APIM or the vault as its record | Issuer owner first, then the APIM or Key Vault owner for the copy | New value issued at the issuer; old value rejected at the issuer; new value or version in use; consumers validated |
| Identity-provider and OIDC client secrets | Client secret in an APIM identity provider or authorization server configuration | The application registration at the identity provider | Identity or application owner | New secret issued; old secret removed or rejected; a sign-in verified with the new one |
| Subscription keys | Primary and secondary key on an APIM subscription | The APIM subscription entity | APIM subscription owner | Key regenerated; old key rejected at the gateway; consumers updated |
| Direct management API keys and tokens | Instance-level management API key material and tokens signed with it | That key material | APIM control-plane owner | Key regenerated and an old token rejected, or the API disabled; the documentation read does not state that regeneration invalidates signed tokens |
| Backend credentials | Named values, policies, certificates, backend entities or logger connection strings | The backend system or its credential issuer | Backend or service owner | Changed at the issuer; old credential rejected at the backend; APIM-to-backend path validated |
| Managed identities | An identity assigned to the instance, used for Key Vault and backend access | The Entra identity and the authorization on each target resource | Identity or resource owner | No secret to rotate; permissions reviewed; access path validated |
The last row is the exception, and it matters. A managed identity is not a secret and has no value to rotate. If an identity or its permissions are implicated, the work is an access-control review of what that identity can reach, not a row in a rotation list. Putting it in the same list as client secrets is how an APIM secret rotation plan ends up with a step nobody can execute.
Issued tokens stay out of the table’s rows for a reason. A token is the product of a credential, and replacing the credential that acquired it does not establish that tokens already issued have stopped working. That is a property of the issuer and the token type. For the direct management API, the pages read for this post describe a token built by signing an identifier and an expiry with either the primary or the secondary key, with the two keys giving equivalent access, and they do not say what regenerating a key does to tokens already signed. The direct management API is also separate from Azure Resource Manager: its tokens are valid only on its own endpoint, and Microsoft’s page says it can bypass limits such as throttling on the Resource Manager API. Microsoft’s retirement notice says an instance that has it enabled should disable it, and does not say which instances still do. Whether a given Classic instance still exposes it is an inventory fact, not something the documentation settles.
Key Vault Changes Where Rotation Happens, Not Whether the Value Was Exposed
Microsoft Learn describes three named value types: plain, secret (encrypted by API Management) and Key Vault, which stores the identifier of a vault secret. It recommends vault references, and says a vault update reaches the named value within four hours, with a manual refresh available from the portal or the management REST API. That is propagation behavior. It says nothing about whether a secret was reachable during the incident, and nothing about whether the old credential has been revoked.
The same page carries two statements that bear on exposure. A user who can edit policies can read the contents of any named value by referencing it, even without read access to the named value resource, so policy-edit permission is read access to all of them. And a vault value referenced in a policy is visible to users who have access to subscriptions with API request tracing enabled. That is the shape Workflow Write Access Is Secret Read Access describes in a pipeline, where authority over the file that requests a secret is secret read access only while four conditions hold together. Microsoft’s page states the APIM case as a plain fact, so the parallel is to the shape, not to those conditions. Moving a value into Key Vault changes where it is stored and where it is rotated. It does not remove those read paths.
The Key Vault section of an APIM secret rotation plan should answer three questions for each credential, not recommend a store.
01 — WHERE WAS THE CREDENTIAL ISSUED?
If it is a backend key or an identity-provider secret, the vault holds a copy and the issuer holds the record.
02 — WHERE MUST IT CHANGE TO INVALIDATE THE OLD ONE?
At the issuer. Writing a new version to the vault changes what APIM will serve. It does not touch the old credential, which stays valid at the issuer until the issuer is told.
03 — HOW DOES THE NEW VALUE REACH EVERY CONSUMER, AND HOW IS PROPAGATION VERIFIED?
For vault references the documented path is the refresh interval or a manual refresh, and a secret identifier entered with version information does not rotate automatically. Verification is a call that exercises the named value after the refresh, not the vault write. Consumers of the same credential outside APIM need their own update path.
Whether the incident reached values referenced from Key Vault is not stated by NSM or by the reported Microsoft text. This post makes no claim either way, and Key Vault is not presented here as reduced exposure.
The APIM Rotation Inventory
NSM also asks organizations to map what sits behind each instance, to gauge potential scope if evidence of compromise is found. That mapping is the consumer column of an inventory most teams have not written. NetScaler Compromise Response lists what one appliance concentrates and what response has to change; an APIM instance concentrates credentials the same way, and this register is the equivalent list for it. APIM secret rotation becomes executable only once the register exists, with one row per credential per instance:
| Instance | Credential class | Credential of record | Issuer or owner | Consumer or dependency | Rotation action | Executor | Validation | Closure evidence |
|---|---|---|---|---|---|---|---|---|
| apim-prod-01 | Named value | Partner payment API key | Partner portal; integration owner | Outbound policy on the orders API | Issue a new key at the partner; add the new version; refresh | Integration owner, then APIM owner | Call through the policy succeeds | Partner rejects the old key; named value version updated |
| apim-prod-01 | Subscription key | Subscription mobile-app | APIM subscription owner | Mobile app release | Regenerate secondary, move clients, regenerate primary | APIM owner | Clients on the new key | Gateway rejects the old key |
The two rows are invented to show the form. They are not findings. A real register has a row for every credential in the classes above, per instance, with the executor named before the incident, because the person who can issue the new credential is often not the person who owns the APIM instance.
CREDENTIAL ROTATION QUESTIONS
- What credentials exist in this APIM instance?
- Where is each credential issued and maintained?
- Which services, applications, policies or consumers depend on it?
- Does the credential have an independent revocation mechanism?
- Does rotation invalidate previously issued credentials or tokens?
- What is the propagation delay?
- Who owns rotation at the issuer?
- Who owns updating the dependent systems?
- How will we validate the new credential?
- How will we prove the old credential is no longer accepted?
- What evidence is required to close the incident?
A Version Check Is Not Closure
NSM tells operators to read the runtime version from the gateway and compare it with its thresholds. That closes the platform side of APIM secret rotation and nothing on the credential side. It establishes that the fix is in place, and nothing about what was accessed before the fix, and Microsoft’s advisory, as described, says the fix “does not automatically invalidate credentials” accessed earlier. Four conclusions follow, each of them a statement about what a successful step does not prove:
WHAT A SUCCESSFUL STEP DOES NOT PROVE
- A patched APIM instance is not proof of credential revocation.
- A newly generated credential is not proof that the old credential is invalid.
- Updating a secret in Key Vault is not proof that APIM or its consumers are using the new value.
- A successful test with the new credential is not proof that the old credential fails.

Closure needs both sides of each transition: the new credential works, the old credential no longer works, and the dependent services have been validated. A test with the new credential proves only the first. The second needs a deliberate attempt with the old one, from where an attacker would hold it, and a record of the rejection kept where the rotated system cannot rewrite it. The revocation unit post sets out the closure test over the whole set of principals; the APIM contribution is the per-credential transition test, and the propagation delay (the documented four-hour refresh is one example) is part of the window that test has to bound.
What the Record Cannot Settle
The mechanism behind this incident is not described in any source read: no source read ties a CVE to this incident, and no technical write-up of the access path was found. Extent is uncertain by NSM’s own account, and neither source gives a count of affected customers. The Microsoft advisory text is reported through a third party and delivered through Azure Service Health; no published copy was found.
Which credential classes were actually accessed in any one instance is not stated. The reported advisory describes what could have been accessed, not what was. The direct management API sits in the reported exposure list, but Microsoft’s documentation does not state what regenerating its keys does to tokens already signed, and which Classic instances still have the API enabled is unknown. Whether Key Vault-backed values were reachable is not stated. The credential classes, the credential-of-record test and the closure criteria are analysis, not Microsoft’s or NSM’s wording. And the register is an inventory instrument: it shows what APIM secret rotation has to touch and how to prove it, not whether any credential was taken.
Architect’s Verdict
The order to rotate everything is the part of this incident that is already decided. APIM secret rotation is the part that is not, because each credential in an instance has its own issuer, its own consumers and its own way of being invalidated, and a rotation inside APIM changes the copy.
The real problem is that the credential of record is rarely where the credential is stored. Named values, client secrets and backend keys are held in APIM and issued elsewhere, subscription keys and management keys are issued by APIM itself, and a managed identity is not a secret at all. Treating them as one list of secrets turns APIM secret rotation into steps that rotate nothing or cannot be executed.
Closure is a claim about two credentials, not one. The new one works, the old one fails, and the services that depend on the change have been checked. A patched instance, a fresh value and a green test with the new credential each prove something, and none of them proves the old credential is dead.
APIM secret rotation is finished when someone has tried the old credential and been refused.
Additional Resources
View 2 more resources
Editorial Integrity & Security Protocol
This technical deep-dive adheres to the Rack2Cloud Deterministic Integrity Standard. All benchmarks and security audits are derived from zero-trust validation protocols within our isolated lab environments. No vendor influence.
Get the Playbooks Vendors Won’t Publish
Choose the architecture problems you care about. Get field-tested playbooks and frameworks delivered to your inbox.
- > AI Infrastructure & Inference Economics
- > Cloud Strategy & Hidden Cost Models
- > Virtualization & Deterministic Migration
- > Kubernetes, IaC & Modern Infrastructure
- > Data Protection & Recovery Engineering
Zero spam. Includes The Dispatch weekly drop.
Need Architectural Guidance?
Independent review before major infrastructure decisions.
- > Validate assumptions
- > Identify hidden dependencies
- > Quantify migration risk
- > Challenge vendor narratives
Triage · Advisory · Fractional · Direct Hire