If you build AI agents in Python, this is a supply chain hit. Versions 1.26.1 and 1.26.2 of the Microsoft Agent Framework were compromised with an infostealer. The payload sits in a .pth file that executes on every Python run, targeting credentials for Azure, Git, and Docker. It downloads roughly 200,000 times a month, so the exposure is real.
Do not trust the package index blindly. If you installed those versions, assume breach. Isolate the affected systems immediately. Stop active projects. Rotate every credential that touched that machine. Check activity logs for Azure and Git for unauthorized access. This is why you need to audit dependencies in CI, not just on your laptop.
The story — Security researchers found malware in Microsoft’s Agent Framework versions 1.26.1 and 1.26.2. The infostealer, hidden in a Python .pth file, exfiltrates credentials for Azure, Git, and Docker. Attackers allegedly used compromised Microsoft logins to push the malicious updates. Microsoft has taken affected GitHub repositories private while investigating the incident. Users are advised to isolate systems and rotate credentials. (Source)