Microsoft's Official Agent Framework PyPI Package Hijacked to Deliver Login-Stealing Malware
Logged · updated · Source: techradar.com ↗
The interesting thing about the second attack is that the threat actors somehow maintained access to Microsoft's PyPI account even after the first cleansing.
Threat actors compromised Microsoft's official Agent Framework Python package on PyPI on November 17, 2026, and pushed an infostealer to a package with nearly 200,000 monthly downloads. Version 1.26.1 contained malware that executed automatically at Python startup — even if the package was never imported — and silently siphoned credentials, environment variables, local config files, and access tokens for Azure, AWS, GitHub, Docker, Hugging Face, and OpenAI, among others.
PyPI quarantined the malicious version 31 minutes after upload. Two minutes later, the attackers pushed version 1.26.2 — this time adding GitHub Actions OIDC token requests and GitHub runner directory searches — suggesting they still held access to Microsoft's PyPI account after the first removal. PyPI pulled the second version eight minutes after it appeared. Developers who installed either release are advised to rotate all secrets and treat affected systems as fully compromised.