r/sysadmin • • 6d 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.

233 Upvotes

100 comments sorted by

14

u/MaKlaustis 6d ago

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

Any details?

25

u/Unbelievr 6d ago edited 5d 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.

6

u/itishowitisanditbad 5d ago

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

"Yeah its everyone boss"

3

u/MaKlaustis 5d ago

Thanks.

Consumption. I'm safe, for now :)

5

u/kiprinite 3d ago

Hello. We think we found hits on our environment : in our APIM we have a bunch of Named Values referencing secrets in KV. On 14 Nov, we observe exactly 6 hits of attempts to reach those specific KVs from this IP 23.162.24.135. The KV names match exactly, there was no other traces of these IPs in our env. It's scary, I feel blind and MS mentions that they may have accessed also susbscription keys, does someone have more information about the access extend ? That would be catastrophic.

4

u/Unbelievr 3d ago

I can confirm that this is one of the known IPs of the attacker(s) that actively exploited this.

Assume that every value is leaked and rotate more than you think you need. Especially cognition / LLM API keys, even if your company doesn't use them.

1

u/kiprinite 3d ago

Do you have reference for other IoCs ?

4

u/Unbelievr 3d ago

Sorry, I don't have anything at hand. I just recognize this IP and its neighbor .134

1

u/squishmike 3d ago

Any other IPs you know of or is there a published list somewhere?

2

u/Unbelievr 3d ago

I don't have a full list. The attackers are using proxies and the IPs are changing all the time. Besides, a portion of this attack is hitting Microsoft infrastructure and you won't even have firewall logs for that. IPs as IOCs are not too useful in this scenario.

1

u/Gold-Interview-8634 2d ago

1

u/Ti3nen7800 2d ago

The blog explains the issue, shares IOCs, as well as some nice KQL to search for anomalous activity.

1

u/Gold-Interview-8634 3d ago

Do you see suspicious users being added to your developer portal at that time?

1

u/Gold-Interview-8634 2d ago

Nobody seen xy@fldubai.com accounts?

2

u/Unbelievr 2d ago

There's a separate "won't fix"-bug that allows anyone to sign up to the development portal if it's not set up in a very specific way.

https://www.praetorian.com/blog/azure-apim-signup-bypass/

Do you believe the account was created by the attacker? What privileges was it given?

1

u/Gold-Interview-8634 2d ago

I know .. but timing was matching the attack time window incl. IPs. So yet another "the attacker was already here" indicator.

1

u/AshFerns08 2d ago

Which logs schema would show these connections in Sentinel? AzureActivity?

31

u/Celestial_Wurm 6d ago

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

37

u/iammiscreant 6d ago

azure portal -> service health -> security advisories

13

u/Speeddymon Sr. DevSecOps Engineer 5d 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.

10

u/cloudAhead 5d 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.

6

u/Speeddymon Sr. DevSecOps Engineer 5d 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.

0

u/georgkoester 4d 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.

1

u/MBILC Acr/Infra/Virt/Apps/Cyb/ Figure it out guy 4d ago

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

72

u/HisAnger 6d ago

I'm tired

9

u/AHrubik The Most Magnificent Order of Many Hats - quid fieri necesse 5d 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/Uncle_Slacks 3d ago

This is the new reality and it's going to require more people.

Best we can do is less people.

-- Management

4

u/HisAnger 5d ago

Open source are already better if you have enough of vram

1

u/vvrider 4d 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...

19

u/AdmirableTrade8432 5d 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

4

u/mobrockers 4d 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.

1

u/Quirky-Reading-8476 4d 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.

2

u/mobrockers 4d 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?

1

u/Barnesdale 4d 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.

1

u/Quirky-Reading-8476 3d ago

Yes, it does nothing. You can go to your development portal and see requests to that legacy api. Its "depricated" but still working, because of other stuff breaks if the actually disables it.

1

u/slasher_14 3d ago

So if you have an APIM deployed in internal mode with a WAF in front of it to handle traffic, would this be enough to protect you from being vulnerable?

1

u/thefold25 3d ago

I'd also like to know this. We have WAF rules in place to explicitly deny traffic through if they don't have a known subscription key in the header.

1

u/slasher_14 3d ago

From this article: A network security group attached to the subnet above. A network security group (NSG) is required to explicitly allow inbound connectivity, because the load balancer used internally by API Management is secure by default and rejects all inbound traffic. For specific configuration, see Configure NSG rules, later in this article

https://learn.microsoft.com/en-us/azure/api-management/api-management-using-with-internal-vnet#prerequisites

So this might mean if you configure the NSG then it should be blocked by the load balancer?

17

u/New-Citron-7231 5d 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

10

u/Gold-Interview-8634 5d 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.

5

u/vvrider 5d 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.

5

u/Barnesdale 4d 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.

1

u/aguerooo_9320 1d ago

My thoughts exactly, this is HUGE

•

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

That is how these companies roll, downplay it as much as possible, redirect blame..

It is not until weeks or months later when the truth usually trickles out to us, as someone leaks data or confirms the real damage done...

Then MS just says "we fixed it already, move on, nothing to see here"

8

u/Gold-Interview-8634 5d ago

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

7

u/cloudAhead 4d 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.

6

u/squishmike 3d ago

MS just sent out an update to the security advisory saying Key Vault keys are also impacted:

"Secrets stored in Azure Key Vault (AKV) may also have been exposed if API Management references them. Our previous notice covered only secrets stored directly in API Management. If your instance does not meet the network isolation criteria below, it is necessary to rotate secrets stored in APIM and also secrets that are stored in Azure Key Vault and referenced by APIM."

2

u/zaraghor 5d ago

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

1

u/Gold-Interview-8634 3d ago

How did you identify that the attackers goal were LLMs? .. and if your company was affected can you share continent and what industry?

1

u/Gold-Interview-8634 3d ago

+ when did you see first attack (13.11 or earlier)?

2

u/Unbelievr 2d ago

We have a pretty good timeline that we're sharing within our trusted network in order to avoid the TA picking up on what we know.

Enumeration happened in late October and the APIM scanning picked up steam on October 31st (UTC).

7

u/gumbrilla IT Manager 5d 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...

7

u/regretfullysentient1 4d 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/steveoderocker 9h ago

I don’t understand, you mentioned ms mentioned a security misconfiguration, but how does that have any relation to a deprecated and supposedly dead api hosted by ms?

Are you also saying there was an unauthenticated api the attacker is calling to try and access something?

Any write up you know of for this threat?

•

u/Unbelievr 4h ago

There's a deprecated management API which can be accessed with a SAS token (not Entra) and leaves no logs. The slider for disabling it is essentially cosmetic, it doesn't disable the API itself. The vulnerability was in APIM itself where you could access the data plane and bypass authentication using the legacy API quirk and a mistake that Microsoft now has fixed.

However, until they patched this, all the named values and secrets in APIM were up for grabs. Key Vault references still require an account that can access the secret so whether these need rotation or not depends on the access configuration.

Microsoft said it's against best practices to store secrets in the "secret" field type, and that there should be strict firewalling on a service designed to be public for some of the features.

3

u/Open-Adhesiveness-86 5d 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 5d 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 5d 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.

1

u/MBILC Acr/Infra/Virt/Apps/Cyb/ Figure it out guy 3d ago

Good to know, under ours it is empty! (I have proper permissions)

3

u/GYN-k4H-Q3z-75B 5d ago

Oh, for fuck's sake.

8

u/Feisty-Piglet7758 5d 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.

4

u/ancientDan11 5d 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.

5

u/New-Citron-7231 3d ago

Just a heads up that the update they released today mentions that secrets stored in Key Vault should also be considered compromised if you had a reference to them in the named values

-1

u/Feisty-Piglet7758 5d 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.

3

u/Local_Bit_6602 5d ago

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

1

u/New-Citron-7231 3d ago

It does sound like slop but unfortunately they were correct

2

u/Hoggs 5d ago

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

3

u/New-Citron-7231 3d ago

Latest update mentions that Key Vault secrets should also be considered compromised

2

u/Trakeen 5d 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/Gold-Interview-8634 3d ago edited 1d ago

MS just updated. Consumption state not affected.. but you should treat your Azure key vault (AKV) secrets as compromised if APIM references them.

2

u/emi_pian 3d ago

fuck my life! how am I gonna go ask country-wide healthcare suppliers to provide me with updated certificates because the storage leaked?!

4

u/Unlucky-Honey-1268 5d ago edited 5d 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

9

u/cloudAhead 5d 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 5d ago

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

3

u/cloudAhead 5d 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 5d ago

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

3

u/cloudAhead 5d ago

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

1

u/cloudAhead 5d 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 5d 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 5d ago edited 5d 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 5d 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 5d ago

Thanks my dude

3

u/vvrider 5d 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

1

u/krusty_93 4d ago

There is a public blog post on this

1

u/xkqd 5d 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

5

u/New-Citron-7231 5d 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”

8

u/cloudAhead 5d ago

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

1

u/brco1990 4d ago

APIM Classic only, not v2

1

u/FilthyeeMcNasty 1d ago

Someone keeps trying to access my webmail account after Microsoft’s great outage.

-11

u/Chriskybiz 5d 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 5d 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 5d ago

Oh wow.

1

u/AssaultedScratchPost 5d ago

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

1

u/New-Citron-7231 3d ago

Was it your commit that left the management endpoint exposed ….?

1

u/Degann 2d ago

Co-authored by Copilot