Trusence Every claim has a source
Last updated 21 November 2026 Search Türkçe
Security

Malicious Microsoft agent-framework builds on PyPI stole cloud credentials on every Python start

Anyone who installed versions 1.26.1 or 1.26.2 should treat the host and any credentials it held as exposed, even if the package was never imported.

Malicious builds of Microsoft's agent-framework package appeared on PyPI on November 17, 2026, when versions 1.26.1 and 1.26.2 were pushed about half an hour apart and both were later quarantined. The packages carried a credential stealer that ran on every Python interpreter start through a .pth file, even when the framework was never imported. Version 1.26.2 widened the theft to GitHub Actions OIDC tokens. Because the package sees roughly 190,000 monthly downloads, developers and CI operators who installed either version should isolate affected hosts, pin to the clean 1.26.0 release, and rotate any exposed cloud and pipeline credentials. How the attacker obtained publishing rights remains unexplained, and Microsoft has not said what the breach point was.

Why it matters

The stealer ran whenever Python started, so simply having the package installed was enough to expose a machine. Version 1.26.2 extended the theft to GitHub Actions OIDC tokens, which means pipeline identities were also at risk, not only local secrets. The package's roughly 190,000 monthly downloads put a large population in that position. A second malicious upload appeared about 2.5 minutes after the first was quarantined, which suggests the attacker still held publishing access at that point, and how that access was obtained has not been established.

Sources · 3