Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials
Key Points:
- Threat actors compromised Microsoft's agent-framework Python package, releasing malicious versions 1.26.1 and 1.26.2 on November 17, 2026, which install a credential stealer that runs on every Python interpreter start.
- The compromised package silently collects environment variables, credential files (e.g., Azure CLI, .npmrc, .git-credentials), Azure DevOps OIDC tokens, managed identity tokens, and instance metadata, exfiltrating the data to a webhook.site endpoint.
- The attack leverages Python’s .pth files to execute malicious code on interpreter startup, affecting any Python launch in the environment, even if the package is not explicitly imported.
- Users are advised to isolate affected systems, revert to the safe version 1.26.0, audit logs for suspicious activity, rotate exposed credentials, and review Azure and GitHub Actions workflows for compromise.
- This incident highlights ongoing threats targeting the AI developer ecosystem and CI pipelines, marking the second Microsoft-related PyPI package compromise in 2026 after the durabletask package was hijacked in May.