I think the lesson of the Azure API Management case is a design one: a gateway should hold as few long-lived secrets as possible, because a vendor-side flaw will eventually read whatever it holds. Rotation after a disclosure is necessary, and it only limits the damage once the exposure is already there.

What the case shows

Norway’s National Security Authority says an unknown actor has been actively looking for access tokens, secrets and named values in Azure API Management, and it asks every organisation that uses the service to assume those values are out and rotate all of them. Martin Albert-Hoff, head of operational cybersecurity at NSM, said “Det er derfor viktig at virksomhetene som benytter tjenesten Azure API Management iverksetter tiltakene som NSM deler” which is NSM’s way of telling users to act on its published steps. Microsoft’s rotation guide shows how much there is to rotate: subscription keys, secret named values, backend credentials, identity provider client secrets, connection strings and secrets written into policies.

That is a long list for one component, and each entry is a credential for some other system. A gateway that stores them all becomes the most valuable single read an attacker can make in the estate.

Advertisement

CyberTech Your brand belongs here. Reach the decision-makers who read CyberTech every day. Premium placements across the site and newsletter. Advertise with us

My argument

Security teams should spend the next quarter shrinking what their gateways hold, before they perfect the speed of rotating it. Two changes do most of the work. Where a backend supports managed identities, use them, so the gateway presents a short-lived identity and no reusable secret exists to read. Where a secret has to exist, keep it in a vault and reference it, so one place controls its value and its rotation.

Microsoft’s guide says the same in its best-practice list: use managed identities instead of keys and connection strings wherever they are supported, and store secrets in Azure Key Vault referenced as named values. I read that advice as the main control, and I read the rotation steps as the cleanup that follows when the main control was not in place.

There is a workload argument as well. Every secret in a gateway needs an owner, an expiry date and a rotation runbook, and teams rarely keep all three current for hundreds of values. A smaller set is easier to keep honest. When NSM tells users to rotate everything, the size of the job depends on how many secrets the gateway holds, and that number is a choice the team made earlier.

The strongest objection

The best counter-argument is that a vault reference does not make a secret safe from everyone who can reach the gateway. Researcher Anders Kristiansen writes that Microsoft documents that policy editors can read named values and that request tracing can reveal Key Vault-backed values. If that holds for your instance, a vault reference reduces how many secrets sit in the gateway and leaves the readers of the gateway able to see them.

That objection is correct as far as it goes. It argues for the second half of the change, which is to limit who can edit policy and switch on tracing, and for the first half more strongly, because a managed identity leaves nothing to read at all. Neither point removes the case for moving secrets out of the gateway.

Newsletter

Get the week's best tech coverage.

Free. Read by thousands of HR, tech, and business leaders.

What I would do on Monday

Pick the five gateway instances that front your most sensitive backends. For each backend credential, record whether a managed identity could replace it. Where one can, schedule the switch. Where one cannot, move the secret into a vault reference and write down who may edit policies and enable tracing on that instance.

Then set a rotation interval for the rest that you can meet without an incident. Our own report on four vendor-run service exposures and our earlier column on rotating secrets after a poisoned package both end in the same place: the customer was left with credentials to replace and logs to read, because the exposed layer was not theirs to patch.

The cost of this work is real. Switching a backend to a managed identity touches the backend team, and some partners only accept a static key. I would still accept that cost over repeating a full credential rotation each time a gateway vendor discloses a flaw.

Source: Nasjonal sikkerhetsmyndighet (NSM), NSM deler tiltak mot sårbarhet i Azure API Management