r/sysadmin • u/Unbelievr • 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.
11
u/MaKlaustis 1d ago
I only see the Microsoft Entra Connect Health at security advisories.
Any details?
60
u/HisAnger 1d ago
I'm tired
29
u/Celestial_Wurm 1d ago
Can you elaborate on which portal this is hidden in, exactly?
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
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
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/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.
•
u/city_girl_ 3h ago
OP - you’re famous: https://www.bleepingcomputer.com/news/security/microsoft-azure-flaw-exploited-to-steal-customers-api-credentials/
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
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
•
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.