Microsoft said two unauthorized versions of the agent-framework Python meta-package, published to PyPI on November 17, contained code that stole credentials. It advises users who installed either version to rebuild affected environments and rotate credentials. The code ran each time the Python interpreter started and targeted Azure CLI credentials, GitHub Actions and DevOps tokens, and credentials tied to npm, pip, Docker, Git and Hugging Face. PyPI quarantined the code about an hour after upload.
Microsoft says the malicious code never resided in the repository itself and reached developers through PyPI. The repository remains offline, and the company has not said when it will return.