Attackers poisoned Microsoft Agent Framework's PyPI package to steal cloud credentials
Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials
Microsoft Agent Framework (an open-source framework for building and orchestrating AI agents in Python)'s PyPI meta-package agent-framework was poisoned by attackers; the malicious versions 1.26.1 and 1.26.2, released 33 minutes apart on November 17, 2026, have been quarantined on PyPI, and the incident was reported by multiple security vendors including Aikido, Socket and Wiz. The package has about 190,000 monthly downloads, and the report recommends that users pin to the safe version 1.26.0, check for exposure between 8:35 and about 9:20 UTC on November 17, and rotate credentials. How the attacker obtained publishing permissions is still unclear; this is the second Microsoft-related PyPI package poisoning incident this year.
The poisoned versions use a .pth startup hook to steal cloud credentials and identity tokens every time Python starts, triggering even without importing the package.