r/sysadmin • • 1d ago

Critical security advisory affecting APIM instances globally

Are you using Microsoft API Management (APIM) in the classic tier? Your data might have been accessed and there are no log events for it.

Microsoft just sent out a security advisory about this, but it's hidden inside some portal. The owners of APIM on the subscription level might have received a cryptic email about this, which is trying to blame it on a misconfiguration that wasn't following security best practices. But this is the default configuration. We wouldn't have seen the advisory if we weren't expecting it.

Our company has been fighting this for days, after discovering that someone logged into our keyvaults using a valid administrator token and not following the normal access pattern. The attacker essentially had a 0-day authentication bypass straight to the system user on all APIM classic instances worldwide. They used a deprecated legacy API that officially "doesn't exist" and has no available logging options. Microsoft support was adamant about this API not working anymore and that this must have been a credential leak on our side, until they suddenly went silent and applied a global shadow patch.

If you are running APIM in the default configuration, assume that every single secret stored in there has been compromised. And if those secrets can be used to access additional systems, consider those breached as well. The advisory should list the affected subscriptions.

182 Upvotes

62 comments sorted by

11

u/MaKlaustis 1d ago

I only see the Microsoft Entra Connect Health at security advisories.

Any details?

23

u/Unbelievr 1d ago edited 1d ago

An excerpt:


Microsoft is notifying you of a security issue involving Azure API Management (APIM), a service that lets organizations publish, secure and manage the APIs that connect their applications, data and services. This security issue affects Azure API Management Classic tiers and does not impact Azure API Management v2 tiers. Your Azure API Management resources may have been accessed if you use a Classic tier without following network security best practices or have stored secrets in Azure API Management instead of in Azure Key Vault.

What happened?

On 18 November 2026, Microsoft identified a security issue affecting Azure API Management Classic tiers that could allow unauthorized access to certain management functionality if the service was not configured according to documented security best practices. Note that this security issue does not impact Azure API Management v2 tiers. Microsoft closed the access path on 19 November 2026. Our investigation found that customers were exposed and an unauthorized party could have used the issue to access secrets stored in Azure API Management Classic instances before Microsoft identified the security issue.

How does this affect my organization?

Credentials or configuration secrets associated with your API Management resources may have been accessed by an unauthorized party if your service is not configured according to security best practices. Specifically, if you are using an Azure API Management Classic tier in the following configuration, your resources may have been accessed:

  • Lacking the networking integration configuration stated in the “Network security” section of the recommended secret management practices document.
  • Storing secrets in Azure API Management instead of storing them in Azure Key Vault and referencing them within Azure API Management. Learn more about recommended secret management practices.

The information potentially accessed could include:

  • Secrets stored in Named Values Client secrets associated with identity providers
  • Client secrets associated with OpenID Connect providers
  • Subscription keys
  • Tokens used to call direct management APIs

It's downplaying the fact that the administrator token can be used to retrieve items from the Key Vaults too. So it's not like that "security best practice" would've necessarily helped.

5

u/itishowitisanditbad 1d ago

if your service is not configured according to security best practices.

"Yeah its everyone boss"

3

u/MaKlaustis 1d ago

Thanks.

Consumption. I'm safe, for now :)

60

u/HisAnger 1d ago

I'm tired

7

u/AHrubik The Most Magnificent Order of Many Hats - quid fieri necesse 1d ago

It's only going to get worse as the open source models gain ground against the big boys. This is the new reality and it's going to require more people.

4

u/HisAnger 1d ago

Open source are already better if you have enough of vram

•

u/vvrider 13h ago

Old school folks, are leaving. AI slop is in. AI security attacks are in
So, there is little to no one to address these
Probably bunch of managers running around shouting, and engineers with claude - asking claude how to fix it

But, this will be always late...

29

u/Celestial_Wurm 1d ago

Can you elaborate on which portal this is hidden in, exactly?

34

u/iammiscreant 1d ago

azure portal -> service health -> security advisories

11

u/Speeddymon Sr. DevSecOps Engineer 1d ago

So not really hidden. You can setup notifications for when things pop up in there. My team gets them via Teams. Thankfully we don't have APIM classic.

8

u/cloudAhead 1d ago

They're definitely obscuring it. If you have a reader role, you can't see details behind the advisory, just that there is one.

4

u/Speeddymon Sr. DevSecOps Engineer 1d ago

Personally I wouldn't call it obscured if you don't have the correct permissions to view it. That's common sense in a least privilege setup. That being said, I appreciate you highlighting this because I just discovered I'm missing the permissions necessary to view security events for services that I'm responsible for.

•

u/georgkoester 14h ago

A bit hidden: So far no alert email was sent - usually you get email alerts for those, like the parallely open one on Entra information exposure JZWY-MG0 which I found in my inbox.

•

u/MBILC Acr/Infra/Virt/Apps/Cyb/ Figure it out guy 1h ago

Could be you do not run any legacy related to this, so no email?

16

u/AdmirableTrade8432 1d ago

Since Equinor was the first to see this we have worked on this in Norway for the last few days. Here is a write up of what to look for https://anderskristiansen.com/post/2026/apim-legacy-access/

This vulnerability was found using the management rest api of the classic v1 tier. So does not affect consumption tier or v2. Attackers tried to use the SPN found to gain access to Cognitive services (like foundry) to sell LLM access.

Just send me a DM if you need more details

•

u/mobrockers 9h ago

Why does none of the reporting, including Microsofts service notification, mention whether or not having the direct management api turned off or using internal mode with the mgmt endpoint blocked is sufficient mitigation? This article hints at it, but is not explicitly saying if you had it off already you're fine. Nor does it say just turn that shit off now, even tho Microsoft has patched the vulnerability.

•

u/Quirky-Reading-8476 8h ago

because is does not help. Even though you disable the mgmt api its still accessible from the internet. its "depricated", but still in use.

•

u/mobrockers 6h ago

There is literally a disable direct management api property and toggle, unrelated to whether or not it's deprecated. Are you saying that toggle does nothing?

•

u/Barnesdale 4h ago

Yes, that is what they are saying. That is what I had also heard. And now I have also seen that situation in the wild myself.

12

u/New-Citron-7231 1d ago

This seems to be being kept incredibly quiet for its significance?

The language of the advisory is very well done I suppose, it makes it appear as if they’re warning of a common misconfiguration rather than disclosing a gaping vulnerability that may have affected a huge number of orgs

•

u/Gold-Interview-8634 17h ago

I am also surprised.. no breaking news .. nothing. Given the size of the impact.. I would have expected to see this in mainstream media.

•

u/vvrider 14h ago

yeap. nothing...
Also, there has been entra id health endpoint and APIM security breaches
Both communicated, over the weekend and occurred already days back

Basically, leaving most of customer system breached for weeks or days with no communication

Circus.

•

u/Barnesdale 13h ago

"API Management Classic", a name no one has heard of instead of mentioning the SKUs.

Redirecting to the documentation about configuration instead of keeping focus on the issue and the required actions.

Not making it clear that it was being exploited in the wild.

6

u/Gold-Interview-8634 1d ago

Please take this serious. It was actively exploited also outside Norway.

•

u/cloudAhead 9h ago

This may get buried here, but please look in service health portal under 'service issues' and see if there is a notice from Microsoft showing that they have force-rotated Microsoft Foundry API Keys. This is a different, second advisory separate from the APIM advisory.

•

u/GYN-k4H-Q3z-75B 15h ago

Oh, for fuck's sake.

5

u/gumbrilla IT Manager 1d ago

Well I just read the notification you provided below, and normally I'm pretty sanguine about this stuff. But OMFG, that's bad.

They had one job! And they passive aggressively wave it away, well it's not even aggressive, it snivelling. A lot of lawyers sat on that notification write up...

•

u/regretfullysentient1 11h ago

The part that should scare people is not the bypass, it is "no log events." If access leaves no trace, you cannot prove what was taken, so the only honest answer is rotate everything and assume the worst. Microsoft calling the default configuration a misconfiguration afterwards is just the cherry on top.

•

u/vvrider 14h ago

What a blessing Microsoft/Azure is lately...

Used to be somewhat reliable, and not every single day or week we have security, capacity and rollout issues affecting millions

And we pay more and more each month...

And communication on this... They haven't shared this anywhere publicly. What a mess

7

u/Feisty-Piglet7758 1d ago

The part people will skip: rotating secrets inside APIM is not enough. If the system identity had Get on a Key Vault, the bypass becomes a data plane read and the network restrictions never come into play. Check the Key Vault diagnostic logs for SecretGet calls from that identity, then rotate everything it could read, because the legacy API leaving no logs means you cannot prove nothing happened, only that it might have.

2

u/Hoggs 1d ago

I didn't see this mentioned in the security advisory. What's your source?

•

u/ancientDan11 23h ago

Please do not spread false information. There are actual stakes involved with things like this - including notifications to customers and insurance. There is nothing to suggest this was the case on any reports that Microsoft have disclosed so you saying this without any source is harmful.

•

u/Feisty-Piglet7758 23h ago

Conditional, not a claim. The advisory text quoted above lists tokens for the direct management APIs among what may have been accessed, and the OP says that token reaches Key Vault items. So the ask is simple: check SecretGet in your Key Vault logs, and if they are clean you have evidence I do not, which is a good outcome. I am arguing against skipping the check, not telling anyone to notify customers on my word.

•

u/Local_Bit_6602 19h ago

I hope you realize it's obvious that this is slop

2

u/zaraghor 1d ago

Spent most of my time hunting this last week... Main goal of the attackers were Cognitive Services (aka LLMs) to resell.

2

u/Trakeen 1d ago

Is the network design ms is referring to not making it public? We have some contractors doing some apim work right now and i don’t recall seeing any notices from ms. Our azure policies block services from being publicly exposed by default

2

u/Open-Adhesiveness-86 1d ago

Service Health > Security advisories, and it's scoped per subscription, so you have to flip the subscription filter at the top or you'll just see whatever your default sub has (usually the Entra Connect Health one). Faster to loop it: az rest --method get --url " eq 'Security'". You need ResourceHealth read on each sub, Reader is enough.

2

u/cloudAhead 1d ago

Reader doesn't seem to be enough to read the details, only to see that there is an advisory.

3

u/Open-Adhesiveness-86 1d ago

yeah, that's by design - the advisory body is gated behind the Microsoft.ResourceHealth/events/fetchEventDetails/action permission, which Reader doesn't include. Security Reader or Security Admin at the subscription scope will show the full text, or you can roll a custom role with just that action if you don't want to hand out the rest.

4

u/Unlucky-Honey-1268 1d ago edited 1d ago

I've written (with Claude obviously) a small analysis-script to see if your tenant runs any classic APIMs. It also checks for suspicous logons. It works really well for us.
Script here.
TacII/APIM-Analyzer: Analyzes tenant and subscriptions for vulnerable classic APIM

8

u/cloudAhead 1d ago

This is flagging APIM v2 instances as 'LIKELY EXPOSED', but the advisory says v2 is not affected. Appreciate the contribution, but this could alarm people unnecessarily.

5

u/Unlucky-Honey-1268 1d ago

You are correct. That shouldn’t happen. I’ll have a look asap. Thanks.

3

u/cloudAhead 1d ago

To be specific, these are stv2**.1** resources. Is that a deliberate inclusion? I can't see the security advisory; while i have contributor-like resources I don't have the exact 'Contributor' role, so I can't see exactly what is impacted.

0

u/Unlucky-Honey-1268 1d ago

Great. Fix is implemented! Thanks again for pointing this out. The new version shows Tier Family in scope.csv

3

u/cloudAhead 1d ago

Edit: Going to retest, i see you made two commits to fix this, and I only pulled the first.

1

u/cloudAhead 1d ago

Same problem with the latest version; still seeing LIKELY EXPOSED for stv2.1 apim instances. This is a little too vibecoded for me to debug, but appreciate the attempt - not having any v2 SKUs in your tenant has got to make this near impossible to test.

3

u/Unlucky-Honey-1268 1d ago

Are you possibly reading "stv2.1" as "v2 tier"?

stv2.1 is the compute platform of the Classic tiers, not the v2 tiers. The v2 tiers are the SKUs BasicV2, StandardV2 and PremiumV2. Almost every Classic instance runs on stv2.x today, and Classic instances on stv2.1 were on Microsoft's impacted list in the tenant we tested. So a Classic instance on stv2.1 being rated LIKELY EXPOSED is by design.

I'll make this harder to misread in the console output by putting the tier family directly in the status line. New version is up in a few minutes.

4

u/cloudAhead 1d ago edited 1d ago

Thank you for clarifying. Yes, I was reading stv2.x as the v2 sku.

edit: I hope someone reads this thread and enjoys the schadenfreude of me going from denial to acceptance

2

u/Unlucky-Honey-1268 1d ago

Great, then it should work for you! I read your first comment as I sat down in my car so I missed the detail about stv2 and v2 as well. Good luck hunting.

3

u/BrokenPickle7 1d ago

Thanks my dude

1

u/xkqd 1d ago

What a mess. Was your APIM instance networked privately?

IAPIM is very popular for public API distribution and lots of people put it right on the internet

4

u/New-Citron-7231 1d ago

Yes the language of the disclosure is crazy, “you shouldn’t have exposed a service to the internet that is commonly used this way, and you shouldn’t have actually stored secrets in a field with a “Secret” type”

5

u/cloudAhead 1d ago

They're awful quiet about 'we should have actually deprecated APIs we said we deprecated in 2025', though.

•

u/brco1990 11h ago

APIM Classic only, not v2

-10

u/Chriskybiz 1d ago

Its called cloud cadence. You shouldnt be on classic and if you cant keep up at a cloud pace, dont run in the cloud.

12

u/kramer314 1d ago

Except ... Premium (v2) APIM instances weren't even generally available in most Azure regions until Ignite last week, and the v2 tier currently doesn't natively support a bunch of features major customers rely on in the prior tier including native support for multi-region service deployments (supposedly "on the roadmap"). Premium (v1) tier is nowhere near being deprecated from the service side.

This is mostly on Microsoft (and people who weren't following security best practices for their APIM instances).

2

u/ycnz 1d ago

Oh wow.

•

u/AssaultedScratchPost 23h ago

Yeah V2 just isn’t ready yet (at least not for a bunch of customers)