Microsoft Agent Framework Package Compromised with Malware Targeting Azure and CI/CD Credentials
Cybersecurity and privacy · AI assistants · AI coding
The Python package agent-framework for Microsoft Agent Framework was compromised on PyPI with malicious versions 1.26.1 and 1.26.2 targeting Azure and CI/CD credentials. Both have been removed.
Security firm Wiz reported that malicious versions 1.26.1 and 1.26.2 of the Python package agent-framework, part of Microsoft's open-source AI agent framework, were uploaded to PyPI on November 17 to steal credentials from Azure, Azure DevOps, and GitHub Actions environments. The infected versions have been taken down, leaving 1.26.0 as the latest safe release, while the total impact remains unconfirmed. The malware leverages Python .pth files to execute automatically on startup and exfiltrate data, with version 1.26.2 adding capabilities to intercept GitHub Actions OIDC tokens. Because no corresponding commits or release tags appeared in Microsoft's GitHub repository, attackers likely bypassed standard release workflows, and researchers recommend inspecting environments and rotating credentials.
Key takeaways
- Malicious versions 1.26.1 and 1.26.2 of agent-framework were published to PyPI on November 17 targeting Azure and CI/CD credentials, and have since been removed.
- The malware uses .pth files to execute upon Python startup, harvesting environment variables, developer credentials, Azure managed identity tokens, and GitHub Actions OIDC tokens.
- No release tags or malicious code were found in Microsoft's main GitHub branch, suggesting the attacker uploaded unauthorized packages directly to PyPI.
- Security researchers advise organizations to inspect CI/CD logs, Python environments, and container images, remove compromised packages, and rotate exposed credentials.
Source:iThome Read the original ↗
Prepared, checked and automatically published by AI; not individually reviewed by a human. Translation checked by AI.