SMSMC BlogPortal Login

Attackers took secrets from Azure API Management Classic. Rotate every secret and keep the record an auditor asks for.

Norway's security authority says to assume secrets in Azure API Management were exposed. How a town, county, school or utility checks its instances, rotates credentials and documents it for state auditors and insurers.

By Jim Venuto

A service nobody on staff remembers owning

When we sit down with a county or a school district to map what runs where, there is nearly always one cloud service that the IT director cannot place. A vendor set it up for the permit portal, or for the open-data site, or for a payments connection. It has been working for years. The invoice goes to a department, not to IT.

For many governments and utilities, Azure API Management (APIM) is that service. It sits in front of the APIs that feed apps and portals, and it stores the keys that let those APIs talk to the systems behind them. This week it is in the news for the wrong reason.

What happened

Norway’s National Security Authority (NSM) said on November 20 that an unknown actor had gone after access tokens, secrets and named values stored in Azure API Management. It named Equinor and Skagerak Energi among the organizations hit, and credited the energy sector with finding the problem. [1]

The Register, which saw Microsoft’s advisory, reports that: [2]

  • Only the Classic tiers are affected, not API Management v2.
  • Microsoft says it identified the issue on November 18 and automatically applied a mitigation the next day.
  • Customers were exposed where a Classic instance did not follow Microsoft’s network guidance, or where secrets were stored directly in APIM instead of being referenced from Azure Key Vault.
  • Microsoft says customers still have to investigate whether an instance was compromised before the mitigation.
  • The secrets at risk include named values, client secrets for identity providers, subscription keys and tokens for the direct management API.

NSM’s advice is direct. Assume the secrets and named values were exposed, and rotate every token and secret. Map what information sits behind each APIM instance. Check whether the instance has been updated. If it has not, call the provider. [1] NSM also says the extent of exploitation is still unclear. [1]

This is a Norwegian report, but NSM says the flaw reaches several sectors and countries beyond Norway. [1] A U.S. town or district running a Classic instance should treat it the same way.

Why this belongs on an audit calendar

Anyone who has sat through a state audit, a grant review or a cyber insurance renewal knows the questions that follow an event like this:

  • Do you know every cloud service that holds credentials?
  • Who owns each one, and who can change it?
  • When was each secret last rotated, and can you show it?
  • Do your logs go back far enough to show what happened?
  • What did the exposed credentials give access to?

If the honest answer is “we think so,” the fix for this week’s flaw will not fix the finding. The same questions would have been asked after the next vendor-side incident. A short, well-kept record is how the next one stays a calm afternoon.

What to do this week

1. Find your instances, including the forgotten ones

Search every Azure subscription the organization controls, including the ones a vendor or a former employee created. The Register’s customers warned that old development and test instances could leave organizations exposed. [2] Write down the name, tier, owner and purpose of each.

2. Check the runtime version

NSM’s guidance for checking a gateway: open https://your-gateway-hostname/internal-status-0123456789abcdef and read the RuntimeVersion. On the 0.52.x line, the instance is patched if the last number is 31936 or higher. On 0.53.x, it needs 31938 or higher. Version patterns such as 0.53.4608.0 or 0.52.4150.0 belong to V2 or Consumption tiers, where the threshold does not apply and the instance is not vulnerable. A lower number means it is still vulnerable. If it is not updated, contact the provider. [1]

Screenshot the result with the date and keep it.

3. Rotate, in an order that does not break the town

A security researcher’s checklist is a good model: rotate backend credentials, app registration secrets, subscription keys, the Key Vault secrets APIM references and the tenant access keys. [3] Rotation can break a payment link or a public app if done blind, so do it with the vendor or the app owner, one service at a time, and note the date and the person.

4. Close the doors you do not use

The same researcher recommends turning off the old direct Management API, which Microsoft retired in March 2025 but which may still be switched on: set Enable Management REST API to No on every instance. That endpoint bypasses Entra ID and Azure role controls, and its calls do not appear in the Azure Activity log. Unpublish an unused developer portal and disable sign-up. Remove user accounts you do not need. [3]

5. Confirm the logs exist, then look

Before anyone hunts, find out what is collected and for how long. The researcher lists the sources to check: the Azure Activity log, APIM gateway logs, developer portal logs, Entra service principal sign-ins, Key Vault audit logs and Microsoft Graph activity logs. [3] Confirm each one is switched on, when collection started and how long it is kept. If one was never switched on, say so in the record. An honest gap is a finding you can fix. A gap you hid is a different kind of problem.

6. Map what sits behind each instance

For each APIM instance, list the data and systems its credentials could reach: a records system, a billing database, a SCADA-adjacent reporting feed, a student information link. NSM asks for exactly this so the scope of any compromise can be judged. [1] This map also feeds your risk assessment and your data inventory.

The one page to keep

ItemWhat to record
Instances foundName, tier, subscription, business owner
Version checkDate, runtime version, screenshot
RotationEach secret type, date rotated, who did it
LogsSources enabled, retention period, any gaps
Look-backWhat was reviewed, by whom, result
What sits behind itSystems and data reachable with the credentials
Follow-upsOpen items, owner, due date

Keep it with your other incident and change records. If a state auditor, an insurer, a school board or an elected body asks, the answer is one document.

How you know it worked

  • Every APIM instance has a named owner and a recorded version.
  • Each secret has a rotation date after November 19.
  • The unused direct Management API and developer portal are off.
  • You can say how far back your logs go, and who read them.
  • The map of what sits behind each instance exists.

Who does what

TaskDepartment head or IT directorVendor or integratorSMC (if engaged)
Name an owner for each instanceYesSupplies what it builtHelps find the forgotten ones
Version check and patch statusReviewsYesVerifies
Rotate credentials without breaking servicesApprovesYesPlans the order
Logs, look-back and the written recordSignsSupplies dataReviews and prepares the record
Contract language for the next incidentDecidesAgreesDrafts the notification and rotation terms

A call can help

Security Medic Consulting works with towns, counties, schools and utilities on the practical side of audit readiness: knowing what you run, who owns it, and having the record ready before anyone asks. If you would like help with a cloud service inventory or a one-page incident record, book a free 30-minute call: https://bookings.cloud.microsoft/book/SecurityMedicConsulting@securitymedic.com/

Sources

  1. Norwegian National Security Authority (NSM), NSM deler tiltak mot sårbarhet i Azure API Management (published November 20, updated November 23, 2026): https://nsm.no/aktuelt/nsm-deler-tiltak-mot-sarbarhet-i-azure-api-management
  2. The Register, Norway links energy firm cyberattacks to critical Azure API Management flaw (November 23, 2026): https://www.theregister.com/security/2026/11/23/norway-links-energy-firm-cyberattacks-to-critical-azure-api-management-flaw/5311598
  3. Anders Kristiansen, Azure API Management advisory: what to check and how to hunt after recent attacks (November 21, 2026): https://anderskristiansen.com/post/2026/apim-legacy-access/