Attackers hijacked Microsoft’s agent-framework package on PyPI to release versions 1.26.1 and 1.26.2 containing a credential stealer targeting Azure, GitHub Actions, and other CI/CD secrets. The malicious versions used a .pth startup hook that executes every time Python is launched, allowing the code to run in the background even if the agent-framework package is never imported. The affected package averages nearly 200,000 downloads a month.
PyPI has since removed or quarantined the compromised versions. Security researchers advise users who installed the malicious updates to pin their installation to version 1.26.0 and rotate their cloud credentials. The breach was made possible after attackers compromised credentials for Microsoft’s ESRP release pipeline to bypass IP allowlisting.
