Malicious versions of Microsoft's agent-framework package harvested credentials via PyPI
Two compromised releases of the official Microsoft Agent Framework package ran a credential stealer every time a Python interpreter started, even without importing the package.
Security researchers at Wiz and JFrog have detailed the compromise of two releases (1.26.1 and 1.26.2) of Microsoft's official agent-framework package on PyPI, published on 17 November 2026 from a Microsoft publisher account. Wiz traced the access to a client certificate tied to Microsoft's engineering release pipeline. The malicious payload was a 28-byte .pth file that Python executed at interpreter startup, sweeping environment variables for tokens and secrets, copying up to 60 credential files, and reaching into hundreds of running processes before exfiltrating data to webhook.site.
The package, which receives roughly 200,000 downloads per month, retained a legitimate dependency, so compromised applications ran normally and the tampering was hard to notice. Malicious versions were quarantined within about 40 minutes, but a second release appeared minutes later. The clean version is 1.26.0. Microsoft has opened an official issue, and the incident has become a reference case for supply-chain risk in AI agent tooling.