Sulat.com / Writing on AISaturday, November 28, 2026
Cloud Security/28 November 2026

Have I Been Pwned tells API key holders to consider rotating after Azure incident

Troy Hunt emailed Have I Been Pwned API key holders on 25 November: Microsoft's Azure API Management incident could have exposed their keys, HIBP can't tell, and rotating is their call.

A silver-blue 3D Have I Been Pwned logo in front of an open glass vault with a glowing key inside
Illustration: Sulat, featuring the Have I Been Pwned logo

At a glance

  • Troy Hunt emailed Have I Been Pwned API key holders on 25 November to say a Microsoft Azure API Management incident, tracked as MZK9-GH0, could have exposed the keys.
  • HIBP says it can't confirm whether its keys were affected, has had no reports of unexpected use, and leaves rotating the key to each subscriber.
  • Microsoft says its fix closed the access path on 19 November but doesn't invalidate credentials taken before it.
  • Changing a key in the HIBP dashboard invalidates the old key straight away, so anything that uses it needs the new one ready.

Troy Hunt has told subscribers to the Have I Been Pwned (HIBP) API that a Microsoft Azure security incident could have exposed their API keys. HIBP couldn’t confirm whether its keys were hit. It concluded that it was possible, and it left the decision to rotate a key to each subscriber rather than forcing it.

The email is dated 25 November and went to subscribers with an active key. It names Microsoft’s incident tracking ID, MZK9-GH0, which covers a flaw in Azure API Management (APIM) Classic tiers. HIBP uses APIM to manage the subscriber keys that people send when they query its public API. I couldn’t find a public post from HIBP or Hunt on the same subject, so this article works from the email, as shown in a screenshot posted on X, and from Microsoft’s own account of the incident.

Shcallaway’s post on X, showing Hunt’s email to HIBP API key holders.

What the notice says

The email is titled “A heads-up about your HIBP API key and a recent Microsoft Azure security issue”. It opens with Microsoft’s warning, which Hunt says “could have” let an unauthorised party reach stored API keys, and explains why HIBP is writing: “We use APIM to manage our subscriber keys which are used when querying the public API, which is why I’m contacting you now.”

We’ve been reviewing the details provided by Microsoft and have been unable to confirm whether HIBP keys were impacted, but have concluded that it’s possible. I know that’s vague, but we just don’t have any more info to tie it down further than that.

Troy Hunt, HIBP notice to API key holders, 25 November 2026

Hunt adds that HIBP hasn’t had “any reports from customers about unexpected use of their keys, but that’s absence of evidence rather than evidence of absence.” The notice then sets out the choice. HIBP decided to send the message and “let you make the call on rotating it rather than forcing it and breaking things”. Hunt says the impact of both rotation and a compromised key “are specific to the subscriber; the risk is different if you’re just querying addresses versus having monitored domains, for example.”

Hand-drawn graphic: Microsoft says stored keys could have been read, HIBP cannot confirm whether its keys were hit, and rotating is each subscriber's call
HIBP’s position in three steps, from its 25 November notice. Illustration: Sulat.

The mechanics are short. A subscriber can change their key in the HIBP dashboard. Hunt says “that will invalidate the old key so make sure you’re in a good position to quickly update any references to it if need be”, and that changing the key “has no impact on your subscription in any other way.”

What Microsoft says happened

Microsoft’s advisory went to Azure customers and was shared with BleepingComputer, which reported it on 23 November. Microsoft says it identified the flaw on 18 November and closed the unauthorised access path the next day. It says an unauthorised party “could have used the issue to access secrets stored in Azure API Management Classic instances before Microsoft identified the security issue”.

Only some instances were in scope. Microsoft told BleepingComputer the Developer, Basic, Standard and Premium tiers of APIM Classic were affected, while the Classic Consumption tier and all APIM v2 tiers were not. It also said the access depended on instances not following its recommended security configuration. The advisory lists five kinds of data that may have been exposed.

What may have been exposedWhy it matters
Secrets stored in named valuesHold connection strings and credentials that policies use to call other services
Identity provider client secretsUsed to connect the service to an identity provider for sign-in
OpenID Connect provider client secretsThe same, for OpenID Connect providers
Subscription keysThe keys callers send to use a published API, which is what HIBP subscribers hold
Tokens for direct management APIsAllow administrative calls against the service
Source: Microsoft advisory MZK9-GH0, as reported by BleepingComputer. The right-hand column is a plain-language gloss, not Microsoft’s wording.
Hand-drawn timeline: Microsoft finds the flaw on 18 November, closes the access path on 19 November, and HIBP emails key holders on 25 November
Seven days from Microsoft finding the flaw to HIBP writing to subscribers. Illustration: Sulat.

The detail that drives HIBP’s wording is what the fix doesn’t do. Microsoft says its remediation “blocks the unauthorized management-plane access path”, but “does not automatically invalidate credentials that may have been accessed before the fix was deployed.” It rotated the keys and credentials it controls, and told affected customers to rotate theirs, look for suspicious activity and review logs.

Hand-drawn graphic: Microsoft closed the access path on 19 November, but keys taken earlier still work until they are rotated
Closing the path stops new access; it doesn’t cancel keys already taken. Illustration: Sulat, based on Microsoft advisory MZK9-GH0.

Why an HIBP key is in scope

An HIBP API key is an APIM subscription key. The HIBP API documentation has callers send it in an hibp-api-key header, and APIM checks it and applies the rate limit for the subscriber’s plan. Subscription keys are on Microsoft’s list of data that may have been exposed, which is the link Hunt draws.

What a stolen key is worth depends on the plan. Every key can search an email address against breaches and pastes. Subscribers who have verified a domain can search it, and the Pro tier adds stealer logs. That is Hunt’s own distinction between “just querying addresses” and “having monitored domains”, and it is why he doesn’t give one answer for everyone. A stolen key lets someone run queries on that subscriber’s quota and, on a domain plan, see results meant for the domain’s owner.

Hand-drawn graphic: every HIBP key searches email addresses in breaches and pastes, domain plans search a verified domain, the Pro tier searches stealer logs
What an HIBP key can do, by plan. Illustration: Sulat, from the HIBP API documentation.

There is one fact that would settle the question, and the notice doesn’t give it: which APIM tier HIBP runs. If HIBP’s service is on a v2 tier or Classic Consumption, Microsoft says it wasn’t affected. If it is on one of the four Classic tiers, the exposure was real but may depend on the configuration Microsoft mentions. That is my inference, not something HIBP has said.

4

APIM Classic tiers affected: Developer, Basic, Standard and Premium

5

kinds of secret Microsoft says may have been exposed

7 days

from Microsoft identifying the flaw to HIBP’s email

0

customer reports of unexpected key use, per HIBP

Rotate or wait

Hunt’s reason for not forcing rotation is practical: a forced swap breaks every integration that still holds the old key. A subscriber whose key sits in one script can rotate in minutes. A subscriber whose key is spread across several services, scheduled jobs and customer deployments needs a plan first.

The decision aid below is mine, built from Hunt’s own distinction. It isn’t HIBP advice. Weighing it against the other official guidance, I’d lean towards rotating soon if the key guards domain monitoring or anything live, and treating it as a scheduled job otherwise.

Hand-drawn flowchart: a key holder who guards domain monitoring or other live use leans towards rotating soon, others decide for themselves
A decision aid built from the HIBP notice. The recommendation is Sulat’s, not HIBP’s. Illustration: Sulat.

If you do rotate, the order matters, because the old key stops working the moment the new one is issued.

  1. List every place the key lives: code, environment variables, secret stores, CI settings and any customer-facing deployments.
  2. Choose a time when a short gap won’t hurt, and tell anyone who relies on the integration.
  3. Change the key in the HIBP dashboard, then update each place straight away.
  4. Run one request with the new key to confirm each integration works.
  5. Check your own logs for HIBP queries you don’t recognise from before the change.
Hand-drawn graphic: the old HIBP API key stops working at once, the new key needs to be put into your apps
Hunt’s warning in one picture: be ready to swap before you click. Illustration: Sulat, based on the HIBP notice.

Microsoft’s own guidance for APIM customers goes a step further, and its engineers have written up how to rotate credentials in API Management. The point that matters for HIBP-style setups is that a secret should be rotated at the service that issued it, not only inside APIM.

The wider picture

HIBP is a downstream customer of this flaw, not its centre. The people at the centre are Microsoft and the organisations whose APIM instances were reached, and the evidence of real exploitation comes from Norway. Norway’s National Security Authority (NSM) published its advice on 20 November and updated it on 23 November. It says an unknown actor went after access tokens, secrets and named values in APIM, that Equinor and Skagerak Energi are among those hit, that Norway’s energy sector found the flaw first, and that it also affects other sectors in Norway and abroad. NSM says it is still unclear how far the exploitation went, and that it has no indication so far that any compromise has affected deliveries by Norwegian organisations.

NSM’s advice is stricter than Hunt’s. It tells everyone who runs Azure API Management to assume their secrets and named values have leaked and to rotate all tokens and secrets, and to check that their instance is patched by reading its runtime version, with thresholds listed in the advisory. Hunt leaves rotation to each subscriber. The two aren’t in direct conflict: HIBP is describing a risk it can’t size, and NSM is advising organisations in a country where attacks have been confirmed. Microsoft told BleepingComputer its 19 November fix was fully deployed to Microsoft-hosted instances and needed no customer action, but didn’t explain why NSM still tells customers to check their runtime versions.

WhoWhat the source saysRotation advice
MicrosoftFlaw in APIM Classic tiers found 18 November and closed on 19 November; secrets may have been read before thenRotate potentially exposed credentials, investigate and review logs
Norway’s NSMUnknown actor went after APIM tokens, secrets and named values; other sectors and countries affected; extent still unclearAssume secrets leaked, rotate all tokens and secrets, check the instance is patched
Equinor and Skagerak EnergiEquinor disclosed an attack on 17 November and later said it had stopped it, with no sign of stolen or altered data; Skagerak reported an attempted attack with no impact on operations, per BleepingComputerNamed by NSM as hit; no rotation advice of their own in the statements I read
Have I Been PwnedCan’t confirm whether its subscriber keys were affected; no reports of unexpected useSubscriber’s call; changing the key invalidates the old one
Sources: Microsoft advisory MZK9-GH0 as reported by BleepingComputer, NSM, Equinor, Skagerak Energi and the HIBP notice.

Two neighbouring incidents are separate stories, not part of this one. BleepingComputer notes that the APIM report came days after Microsoft confirmed a breach involving its Entra Connect Health service, in which attackers used a flaw to steal tenant configuration information and administrator email addresses. And in the same week, 1Password disclosed that a stolen employee GitHub login had led to customer account records being downloaded; that case is covered in our 1Password report. The causes differ, and none of the three companies links its incident to the others. The common thread is that stolen credentials, not broken encryption, were the way in.

What nobody has said

  • Which APIM tier and configuration HIBP runs, and whether Microsoft has told it the service was in scope.
  • Whether HIBP can see from its own APIM logs any queries made with keys that don’t belong to their holders.
  • How many organisations beyond Norway’s energy companies were reached, and whether any attacker has used what was taken.
  • Why NSM still warns about runtime versions after Microsoft says its fix needs no customer action.
How this was checked

I read Hunt’s email as it appears in the screenshot Shcallaway posted on X and quoted it word for word. I read Microsoft’s advisory only through BleepingComputer’s 23 November report, which quotes it,. I read NSM’s advisory, in Norwegian, directly, along with the Equinor and Skagerak Energi statements. I left out an anonymous administrator’s account of how the flaw worked, which BleepingComputer says it couldn’t verify. I found no post from HIBP or Hunt on the subject, and I haven’t seen the email from HIBP itself.


Sources: Shcallaway on X (HIBP notice), BleepingComputer on the APIM flaw, NSM advisory, Equinor, Skagerak Energi, Microsoft on rotating credentials, HIBP API documentation, BleepingComputer on Entra Connect Health.