Microsoft's Python framework hijacked to spread credential-stealing malware
Summarised from 2 outlets · Updated 19 Nov, 14:27 · Archive
Attackers compromised Microsoft's official Agent Framework Python package to distribute malware designed to steal login credentials.
Attackers compromised Microsoft's official Agent Framework Python package on PyPI and distributed two malicious versions within roughly half an hour. The framework is an open source toolkit that helps developers build AI agents and applications, with almost 200,000 monthly downloads.
On November 17, 2026, the first malicious version (1.26.1) was released containing an infostealer that executed automatically when Python boots up, even when the framework was not imported. The malware was designed to steal login credentials and secrets from environment variables, local configuration files and running processes. It targeted Azure, AWS, GitHub, Docker, Hugging Face and OpenAI, and also attempted to steal Azure managed identity access tokens and Azure DevOps OIDC tokens.
PyPI detected the attack within 31 minutes and quarantined the malicious version. However, two minutes later attackers released a second malicious version (1.26.2) with expanded capabilities, adding GitHub Actions OIDC token requests and searches of GitHub runner directories. The compromise suggests that someone with GitHub organisation admin credentials for Microsoft's repository had their account compromised.

How it is being reported
- Microsoft's official Agent Framework Python package on PyPI hijacked to push login-stealing malwareAttackers push two versions in roughly half an hour, potentially compromising hundreds of developers.TechRadar · 19 Nov, 14:05
- Microsoft's official Python agent framework hijacked to distribute malwareIn today's how-could-things-get-worse-for-Microsoft news, it seems someone's GitHub org admin creds have been compromisedThe Register · 18 Nov, 17:23
In this story: Microsoft · PyPI · GitHub · Azure · AWS
This summary was written by AI from the headlines and standfirsts above, and states as fact only what at least two outlets report. How we use AI · Report a problem · Corrections log
Comments (0)