Malicious Microsoft AI Package Targeted Cloud Credentials
Two malicious versions of Microsoft’s Agent Framework Python package were uploaded to PyPI on Nov. 17, targeting cloud, CI/CD and other credentials.
Hackers uploaded two malicious versions of Microsoft’s Agent Framework Python package to the Python Package Index (PyPI) on Nov. 17. The releases targeted credentials belonging to users who installed them.
The affected package, agent-framework, is used to build artificial intelligence agents and multi-agent applications. It receives about 190,000 downloads a month. Versions 1.26.1 and 1.26.2 were published about 33 minutes apart before PyPI quarantined them. Version 1.26.0 remains the latest known clean release.
The compromised packages kept the framework’s normal functions, allowing applications to continue running. Additional code used a Python startup mechanism that runs when the Python interpreter launches, even if an application does not directly import the affected package.
The malware searched environment variables and configuration files for secrets and attempted to access credentials used by other running processes. It targeted Azure managed identity tokens and Azure DevOps authentication tokens, which can provide access to cloud services and development resources. Version 1.26.2 added code targeting credentials used by GitHub Actions.
Microsoft acknowledged the incident in a GitHub discussion. An Agent Framework maintainer confirmed that the compromised releases had been removed from PyPI and that an investigation was under way. Researchers from OX Security, Wiz, Endor Labs and SafeDep analyzed the packages independently.
The method used to publish the malicious releases has not been established. Legitimate versions contained source and built distributions, while the compromised versions contained only built packages. Wiz found no matching releases or malicious code in Microsoft’s main source repository, indicating that the packages may have been uploaded outside the standard release process.
SafeDep identified a PyPI maintainer account named vibiret that was created on the day of the attack. The account had permission to publish the affected package and five related projects. Researchers have not confirmed that the account was used to upload the malicious files.
Microsoft’s Agent Framework repository on GitHub was inaccessible when the incident was reported. Several other Microsoft repositories, including projects related to ONNX Runtime, had also disappeared. No connection between those events and the PyPI incident had been established.
Organizations that used versions 1.26.1 or 1.26.2 should inspect developer systems, CI/CD pipelines and container images for the packages. They should replace affected installations with verified versions, rotate potentially exposed credentials, review cloud activity for unauthorized access and rebuild affected environments where necessary.







