Malicious Microsoft Agent Framework Releases Target Cloud and CI/CD Credentials

Summary
Malicious agent-framework versions 1.26.1 and 1.26.2 on PyPI attempted to steal credentials, including cloud and CI/CD secrets. PyPI quarantined the releases; Microsoft is investigating, and the upload method remains unknown.
Key points
- The malicious agent-framework versions 1.26.1 and 1.26.2 were released on PyPI about 33 minutes apart and have since been quarantined; version 1.26.0 is identified as clean.
- The added code used a Python startup mechanism to run automatically, even when an application did not explicitly import the package.
- The malware targeted environment variables, configuration files, credentials from other running processes, Azure managed identity tokens, and Azure DevOps tokens.
- Version 1.26.2 expanded credential theft to GitHub Actions.
- Researchers found the malicious packages contained only built distributions, unlike legitimate releases; the upload method remains unknown.
- A newly created PyPI maintainer account had publishing permissions, but its involvement in the uploads has not been confirmed.
- Organizations are advised to check developer environments, CI/CD pipelines, and container images, replace affected packages, rotate potentially exposed credentials, investigate cloud activity, and rebuild affected environments.
Article Details
- Event Type
- Supply-chain attack involving malicious releases of the Microsoft Agent Framework Python package
- Impact
- Versions 1.26.1 and 1.26.2 attempted to steal credentials from affected environments, including secrets in environment variables and configuration files, credentials belonging to other running processes, Azure managed identity and Azure DevOps tokens, and, in version 1.26.2, credentials associated with GitHub Actions. Users who installed the releases may have exposed credentials; the versions were quarantined on PyPI.
MITRE ATT&CK
Vendors
Products
AzureIt also attempts to obtain Azure managed identity tokens and Azure DevOps authentication tokens that could provide access to cloud resources.Azure DevOpsIt also attempts to obtain Azure managed identity tokens and Azure DevOps authentication tokens that could provide access to cloud resources.GitHub ActionsThe second malicious release expanded the credential-stealing functionality to GitHub Actions.Microsoft Agent FrameworkMicrosoft Agent Framework is designed for developing AI agents and multi-agent applications.
