Skip to content
MediumNews

Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials

Published
Record updated
View JSON

Summary

Threat actors compromised Microsoft's agent-framework PyPI package and published malicious versions 1.26.1 and 1.26.2 33 minutes apart on November 17, 2026. Both versions add a .pth file to site-packages that runs a credential stealer on every Python start, even without importing the package, and send harvested credentials and cloud identity tokens to a webhook[.]site endpoint. Both releases have been quarantined on PyPI, and how the attacker obtained publishing access is unclear.

Mitigation

Isolate affected hosts and runners, and pin the package. The source text is truncated before the full list of recommended steps is given.