Skip to content
MediumNews

Microsoft’s Agent Framework PyPI package compromised to steal credentials

Published
Record updated
View JSON

Summary

Hackers compromised Microsoft's official Agent Framework Python package on PyPI and published two malicious versions, 1.26.1 and 1.26.2, on November 17, 2026. The releases ran a credential stealer during normal Python startup, even when the package was not imported, and sent harvested secrets for Azure, AWS, GitHub, Docker, Hugging Face and OpenAI to an attacker-controlled webhook endpoint.

Mitigation

Developers who installed either malicious version should isolate affected environments, avoid running Python or pip until they are secured, and rebuild from a known-clean environment using the safe 1.26.0 release. Potentially exposed credentials should be rotated immediately, and investigators should look for the specific webhook URL path in egress logs.