Secretus logo
newsazureapi-managementcredential-rotation

Azure API Management Classic Incident: Rotate the Secrets Behind the Gateway

Norway confirmed activity targeting Azure API Management secrets. Check your gateway tier, rotate credentials at the issuing services, and verify the rollover.

·5 min read·Secretus Editorial

Your API gateway can be patched while a database password or client secret it once held still works. That is the practical concern in Norway's warning about Azure API Management (APIM). The country's National Security Authority, NSM, says an unknown actor targeted access tokens, secrets and named values in the service. The authority advises organisations to rotate those credentials and map what they could reach.

What Norway and the companies confirmed

NSM named Equinor and Skagerak Energi among the affected organisations. Equinor said on 20 November that it had stopped the attack, that production was normal and that it had seen no sign of data theft or alteration. Skagerak described activity consistent with an attempted attack and reported no effect on operations or production. The wider extent of exploitation and the fate of individual credentials remain uncertain.

The Register reviewed a private Microsoft advisory and reported that Microsoft applied a service-side mitigation on 19 November. The reported scope covers at-risk Classic deployments. NSM's runtime guidance identifies v2 and Consumption as outside the affected scope. Use the official guidance and your Azure support channel to verify the tier and runtime of each instance you manage, including test or standby gateways.

Find who can invalidate each credential

A named value is a setting that an APIM policy can reference. Some contain configuration such as a hostname, while others hold secrets or point to Azure Key Vault. List the secret-bearing values by identifier. For each one, record what accepts it, which policy or job uses it, and who can disable or replace it. Check whether production and test systems share a credential. That can put both in scope even if just one gateway was affected.

  • Gateway subscription key. Have the APIM owner regenerate the key, update authorised clients and verify that the retired key is rejected.
  • Backend API key or service password. Have the backend owner rotate it where it is accepted. Update the gateway's configuration and check whether any other consumers use the same credential.
  • Application credential or active token. Work with the identity owner to replace the client secret and assess existing sessions and tokens. Use the provider's revocation controls where supported. Check the lifetime and scope of any tokens that can remain valid.

Verify the rollout at the gateway and the backend

Where a short overlap is safe and supported, have the receiving service accept a replacement, switch authorised consumers, and retire the old value promptly. If there are signs of active misuse, prioritise containment and coordinate any resulting interruption. Use a narrow test to verify the authorised integration and confirm revocation at the accepting service. Review relevant access logs for activity before the mitigation and after the rotation.

A Key Vault update takes time to reach a gateway. Microsoft documents up to four hours for automatic refresh of versionless secret references, with a manual refresh available. Check what the gateway actually uses before closing the task. Where a backend supports managed identity, consider it to reduce the number of long-lived values you have to distribute and rotate.

Keep replacement values out of the incident record

Update applications through the approved secret store. In the ticket, keep the credential identifier, owner, affected consumers and revocation result. If a verified responder needs a temporary text secret, a Secretus one-time share can keep the value out of the ticket. Handle issuer-side revocation as part of the recovery plan.

Sources