A supply chain attack compromised Microsoft's agent-framework package on PyPI, specifically versions 1.26.1 and 1.26.2 released on November 17, 2026. The attacker inserted a silent .pth startup hook into repacked legitimate wheels, causing a credential stealer to execute every time Python starts, regardless of package import. The malicious code harvests environment variables and configuration files containing cloud credentials for Azure, AWS, GitHub, OpenAI, and others, queries Azure metadata services for OAuth tokens, and exfiltrates compressed data to an external endpoint. Both affected versions were quarantined within 40 minutes, but automated dependency bots had already begun propagating the malicious updates. The stealer targets 31 credential patterns, reads up to 80 files, and on Linux scans running processes for secrets.
Microsoft's Agent Framework meta-package on PyPI was compromised in versions 1.26.1 and 1.26.2, published on November 17, 2026. These versions included a malicious .pth startup hook that executed credential-stealing code every time Python launched, without requiring package import. The malware harvested Azure, Azure DevOps, and GitHub Actions tokens from environment variables, credential files, and cloud metadata services across approximately 300 running processes. It collected tokens from various sources including Azure CLI caches, pip, npm, Docker, git, and Hugging Face credentials, and minted fresh cloud tokens via OIDC endpoints and Azure Instance Metadata Service. All stolen data was compressed, encoded, and exfiltrated to a remote webhook.site endpoint. The compromise was detected within six minutes and removed within hours, but any host running these versions should be considered fully compromised.