Microsoft agent-framework on PyPI: Two Rogue Releases Run a Credential Stealer at Every Python Start
- AI Supply Chain
- AI Infrastructure
- Credential & Identity Theft
- Data Exfiltration
On November 17, 2026, two malicious releases of agent-framework, the PyPI meta-package that installs Microsoft Agent Framework (Microsoft's open-source Python SDK for building AI agents), were published 33 minutes apart: 1.26.1 at 20:35 UTC and 1.26.2 at 21:08 UTC. Each added a .pth startup hook, so a credential stealer ran whenever Python started in that environment, with no import of the framework. It collected secrets from environment variables, other processes and credential files, requested fresh Azure and CI identity tokens, and sent everything to a webhook.site URL. PyPI quarantined both versions, yet the second appeared 2 minutes 23 seconds after the first was quarantined. Wiz found only three unique cases of victim data among the 50 requests the URL stored. How the attacker obtained publishing access is not confirmed.
Mapped threat techniques
AML.T0017.003MalwareAML.T0010.001SoftwareAML.T0011.001Malicious PackageAML.T0142Event Triggered ExecutionAML.T0055Unsecured CredentialsAML.T0025Exfiltration via Cyber Means