Microsoft Agent Framework PyPI package hijacked
2026-11-20 · IT之家
IT Home, citing TechRadar, reports Microsoft's official Agent Framework package on PyPI was hijacked and seeded with malware that steals login credentials and cloud tokens. The open-source Python toolkit helps developers build agents that call tools, follow instructions and interact with other agents, and gets nearly 200,000 downloads a month.
On Nov. 17 the attacker published version 1.26.1, whose malware runs automatically at Python startup even if the environment never imports the package. It targets credentials for Azure, AWS, GitHub, Docker, Hugging Face, OpenAI and more, and gathers local config files and data about other processes. PyPI detected and quarantined it within 31 minutes.
Two minutes later a second attack, 1.26.2, appeared, adding GitHub Actions OIDC token requests and automatic searches of GitHub Runner directories; it was removed after eight minutes. It's unclear whether developer data was compromised.
Recommended steps: if you downloaded 1.26.1 or 1.26.2, delete them, check for suspicious files, revoke credentials and look for unauthorized access in Azure, AWS and similar services. The incident shows agent toolchains are now supply-chain targets. This is a secondhand summary; defer to official notices.