News

Azure API Management Incident: How to Verify the Fix and Rotate Secrets

An API gateway can be running normally after a security update while the credentials it previously stored still work against the services behind it.

That distinction matters in the Azure API Management incident, especially for teams deciding whether a healthy dashboard means they can close the response.

Two different fiber leads at a blue distribution panel, one seated and one disconnected.

Overview

Norway’s security authority confirmed active attempts to obtain credentials

The Norwegian National Security Authority, known as NSM, said an unknown actor targeted tokens, secrets, and named values stored in Azure API Management.

NSM said several Norwegian organizations were affected and advised organizations to rotate tokens and secrets even after the underlying weakness was believed closed.

This was a reported incident involving a cloud service, not a notification that anyone who ever called an Azure-hosted API had their account compromised.

Microsoft took action on the service, but customers control many of its secrets

A Microsoft customer notice reported by Help Net Security says the issue affected Classic-tier instances under certain configurations and was closed by a service-side change.

The credentials potentially exposed depended on what the individual instance stored or used, such as backend secrets, subscription keys, or credentials for an identity provider.

A token accepted by a separate service is not necessarily invalidated because the platform that held a copy has received a security fix.

Checking the gateway version is only one part of the response

NSM lists builds that indicate the relevant Classic runtime has been patched and distinguishes other version patterns associated with the v2 and Consumption tiers.

  • Verify each gateway’s actual pricing tier and current runtime through the supported process rather than drawing conclusions from a resource’s display name.
  • Map the secrets and keys the gateway could use to the people and services that can issue, replace, test, and revoke them.
  • Check traffic to the backend services as well as gateway activity, because a copied credential can sometimes be used outside the normal route.

See Which Direction the Credential Works

A gateway can authenticate an incoming caller and also call a separate service on that caller’s behalf, which creates two different relationships to review.

An API subscription key may let a customer call a particular set of APIs through the gateway, depending on how its subscription is scoped.

A backend credential may let the gateway call a storage service, internal API, or another system, and that service controls what the credential can do.

An identity provider credential may be managed by a different team entirely, even if the gateway references it when handling customer requests.

Keep these categories separate so a team fixing access through the public gateway does not assume it also replaced credentials at a service behind it.

If an API uses a managed identity instead of a stored secret, document its permissions and usage rather than asking staff to rotate a nonexistent key.

What Named Values Can Tell You Without Showing the Secret

A named value is an entry that a gateway policy can reference, and its name may be all you need to identify the relevant owner.

The Microsoft documentation on named values distinguishes plain values, encrypted secrets stored in API Management, and references to secrets held in Azure Key Vault.

A named value can be harmless configuration, such as a timeout, so inventory the entries before treating every string as an active password.

For secret entries, note which backend accepts the credential and whether multiple instances reference the same issuer, without exporting the credential itself to a spreadsheet.

A readable name does not tell you how much access is granted, and a label like test is not reliable proof that a credential is harmless.

The owner needs to confirm which resource the value can reach, what privileges it has, and whether it was still usable during the incident window.

Do Not Turn a Rotation Into an Unplanned Outage

Some app integrations accept two keys so you can move a caller to a replacement before retiring its previous key, but not every service works that way.

If a credential is actively being abused, the response lead may need to revoke it immediately and accept a short loss of a dependent service.

Where a managed switch is appropriate, identify the owners who can change the gateway and the backend, then arrange a test before invalidation.

If both keys on an API subscription might have been exposed, don’t switch users to the unchanged secondary key and assume you have solved the problem.

Regenerate the unused slot first where the service permits, distribute that new value securely, and then replace the other slot after confirming callers moved successfully.

Keep the record by credential identifier, slot, and time, so teams can investigate later without saving the old and new values in plain text.

Verify the fix and retire old access. Confirm the tier and runtime. Rotate credentials at their issuer. Test the new values and revoke the old

How to Check Your Gateway and Replace Its Affected Credentials

Step 1: Identify the service and verify its current patch status

Sign into the Azure portal through your established address, select the correct tenant and subscription, and open the relevant API Management resource.

Check the resource’s pricing tier, then open the HTTPS status path /internal-status-0123456789abcdef on your organization’s own gateway hostname and read RuntimeVersion.

For the Classic patterns in that notice, builds from 0.52.31936 and 0.53.31938 are patched on their respective lines, not interchangeable version targets.

If a matching Classic runtime reports an older build or you cannot verify the result, ask Azure Support to confirm the service’s status.

Step 2: List what the gateway could authenticate to

From the same API Management instance, open APIs and Named values, and identify the entries that the affected policies use as credentials.

Check Subscriptions separately for client keys, and work with the identity or backend team to map other stored secrets and who can revoke them.

Record each name, consumer, issuer, last known version, and planned owner, without putting the secret values into the incident record or sending them by email.

If you cannot identify a secret’s owner, raise that gap with the application team and avoid deleting a live configuration entry as a shortcut.

Step 3: Replace values at the place that issues them

For a backend credential, first arrange the replacement with the service that accepts it, then update the named value or its Key Vault reference.

In Named values, select the relevant entry, check its type, and edit that named value only after identifying the policies and consumers that depend on it.

For a versionless Key Vault reference, publish the new secret version in the vault and refresh the named value in the portal when immediate action is necessary.

For client keys issued by API Management, open Subscriptions, select the matching subscription, and use the supported regeneration controls for the correct slot.

Step 4: Confirm clients work and old credentials no longer do

Use an approved test client and a normal, low-risk API operation to confirm that the replacement reaches the right backend and returns the expected response.

Record which callers have moved before revoking the previous value, unless active exploitation requires immediate revocation under your incident plan.

Check the issuer’s record to make sure the old credential is revoked, disabled, or regenerated rather than relying on a successful call with the replacement.

An Azure Key Vault refresh changes the gateway’s copy, so separately verify that the service which accepted the previous secret will no longer honor it.

What to Do If You See Evidence of Unexpected Access

  1. Notify your response lead with the Azure subscription, gateway name, credential identifiers, and relevant dates, but do not transmit the raw secret values.
  2. Preserve Microsoft notices from the portal, deployment and rotation times, gateway diagnostics, and relevant backend or identity logs under the organization’s incident procedure.
  3. Review the backend services for activity the gateway would not normally generate, and compare it with known jobs or application traffic before drawing conclusions.
  4. Escalate attempted use of an old key after revocation, unexplained permissions changes, or activity against an unexpected service to the team that owns the credential.
  5. Check whether a shared credential served development, production, or another gateway, and extend the review to those consumers when the evidence warrants it.
  6. Ask Azure Support to verify any unresolved platform status, and coordinate notifications with the relevant response authority and your organization’s incident lead.

What the Platform Logs Can and Cannot Settle

The Azure activity record can help establish changes to the gateway, while its diagnostic records may help confirm which clients used an API.

A downstream service can have its own access and audit records, especially when it accepts the same credential outside the usual gateway path.

If a team only looks at gateway requests, it can miss activity that never came through that gateway, so preserve the relevant backend records separately.

Check how long each system keeps logs and which kinds of events were enabled before saying that a credential was never used in a certain way.

When a policy links to Key Vault, review relevant vault records and the service accepting the secret rather than assuming either log tells the whole story.

If retention leaves a gap, record the gap and the choices you made in response, such as revocation and watch periods, rather than inventing certainty.

Make the Next Rotation Easier to Verify

Give each production credential an owner and document the expected clients so an incident does not begin with a search for who can authorize a replacement.

Where suitable, use managed identity for backend authentication and versionless Key Vault references for secrets that cannot yet be removed from a policy.

Microsoft says the gateway can take up to four hours to pick up a changed versionless vault secret unless you trigger a refresh sooner.

A reference pinned to a specific vault version won’t update automatically when you add a newer version, so inspect it before planning a timed switch.

Run the service team’s approved health check after a change, but include a real authorized API call to catch authentication failures that a health endpoint cannot see.

Keep alerting on unusual failures and unexpected access after the change, while distinguishing callers that missed the rotation from signs that an old credential is still accepted.

Avoid Reusing the Old Credential When You Roll Back

A release team may need to restore a known-good gateway policy after rotation, but its previous policy can still refer to the credential you just replaced.

Review the rollback copy for stale secret references, including version-pinned entries or older configuration templates that get reapplied during an incident.

Where possible, restore the application’s behavior without restoring the previous credential, and test that the supported rollback still uses the replacement.

If a client cannot accept the new value yet, discuss a temporary restriction with the incident lead rather than quietly restoring a potentially copied secret.

Write down which services are still being moved so another team does not distribute an old credential while resolving an unrelated interruption.

Check the identity and billing reports after the switch where relevant, since changing a secret doesn’t reverse an action that was already accepted.

Frequently Asked Questions

Did Microsoft fix every customer’s exposed credentials?

Microsoft’s service-level change addresses the access path described in the notice, but credentials belong to customers or the services that issue them.

An affected organization needs to verify the replacement and revocation of its own credentials instead of relying on the gateway version alone.

Do the Classic runtime numbers apply to v2 and Consumption tiers?

NSM distinguishes the v2 and Consumption version patterns from the two Classic lines for which it provides minimum patched builds.

Confirm the SKU directly with the Azure portal and use Microsoft’s scope before interpreting a different runtime number as either newer or vulnerable.

Is hiding a secret in Key Vault enough?

A Key Vault reference helps avoid storing a literal value directly in gateway policy, but it does not prove a specific secret was never exposed.

Map the actual configuration and incident scope, then verify whether the issuer must replace a value the gateway previously used.

Will changing the vault value turn off the previous credential?

Updating a stored copy does not necessarily invalidate the old value at the backend, identity provider, or other service that accepts it.

Verify revocation separately, especially when clients could still use the old credential without connecting through the gateway at all.

Do both subscription keys need attention?

If both keys may have been exposed, plan to regenerate both through separate slots, while arranging an approved migration for clients that depend on the subscription.

If misuse is active, your incident lead can choose faster containment even if the normal migration would avoid downtime.

Is this proof that my customers’ data was accessed?

NSM documented targeted secret access and warned organizations to respond, but that does not establish the impact for every individual Azure customer.

Check the privileges of the relevant credentials, whether they were used, and which systems they could reach before describing the scope.

The Bottom Line

Verify that your Azure API Management instance received the service fix, but keep the incident open until affected credentials are replaced and the old values are invalidated.

If logs or costs show activity you cannot explain, preserve the records and investigate the services behind the gateway rather than limiting the review to Azure’s dashboard.

Join the discussion

0 comments

Share your experience or ask a question about this article.

Discussion

Start the conversation

Have a question or something useful to share? Add the first comment.

Written by

Lapain Epuran

Lapain Epuran investigates product scams, from supplements sold with miracle-cure claims to gadgets pushed through misleading ads. She has more than 10 years of experience in investigations and checks each product's claims, seller and refund terms before giving a verdict.

5,993 articlesWriting since 2024
More from Lapain →

MalwareTips community · since 2010

Stuck on a step? 75,000+ members can help you for free.

Post your question on the forum and our volunteer malware removal experts will walk you through it, step by step.

75K+members
999K+forum messages
100K+forum topics
16+years online

Previous

Gamdom80017.com EXPOSED – Casino Scam or Legit? Key Findings