ATTACKERS COMPROMISE MICROSOFT AGENT FRAMEWORK PACKAGE
Attackers compromised Microsoft’s Agent Framework package on the Python Package Index, PyPI, and distributed two versions containing credential-stealing malware, security researchers found. The affected releases were versions 1.26.1 and 1.26.2. OX Security said the first release was reverted to a safe version before an attacker uploaded the second through Microsoft’s official PyPI publisher account. PyPI removed both releases.
Microsoft’s open-source Python toolkit helps developers build and deploy artificial intelligence agents, including applications in which agents work together. The package has nearly 200,000 downloads a month. The malicious code ran when a Python interpreter started, even if the package was not imported. It retained a dependency on the genuine version 1.26.0, allowing the framework to keep functioning.
The malware sought environment variables, credential files and other secrets associated with services including Azure, AWS, GitHub, Docker, Hugging Face and OpenAI. It also sought Azure managed identity access tokens and Azure DevOps OIDC tokens. Version 1.26.2 added requests for GitHub Actions OIDC tokens and searches of GitHub runner directories. The malware encoded the information it gathered and sent it to a webhook.site address. Developers who installed either affected release should rotate secrets and investigate their environments.