# Malicious PyPI Package Compromises Cloud Credentials

*Published November 20, 2026*
*Source: [https://cybersecuritynews.com/microsofts-agent-framework-pypi-package/](https://cybersecuritynews.com/microsofts-agent-framework-pypi-package/)*

## Executive Summary

Two compromised versions of Microsoft's agent-framework package on PyPI were used to steal Azure and GitHub credentials, posing risks to developer environments. The breach exploited Python's startup processes to execute malware, highlighting the need for vigilance in dependency management.

*This is a Premium edition: its actionable insights are available to sec-news.ai Premium members —*
*[read the story](https://www.sec-news.ai/news/malicious-pypi-package-compromises-cloud-credentials) or [see plans](https://www.sec-news.ai/pricing).*

## Article

In a recent cybersecurity breach, hackers uploaded two compromised versions of Microsoft's agent-framework package to the Python Package Index (PyPI), jeopardizing Azure and GitHub credentials. These malicious versions, 1.26.1 and 1.26.2, were designed to execute credential-stealing malware during the normal startup of Python applications, even if the applications did not directly import the affected package. The malware specifically targeted Azure identities and GitHub credentials, posing a significant threat to developer environments. The breach was quickly identified by Wiz, who noted that the compromised versions were uploaded within a short timeframe on November 17, 2026, and removed from PyPI shortly thereafter. However, the threat remains for systems that had already downloaded these versions. The attack exploited the PyPI repository under the legitimate Microsoft-associated publisher name, which may have contributed to its initial credibility. The malicious code was embedded in .pth files within the site-packages directory, a strategy that allowed it to execute during Python's startup process. This method made it possible for the credential stealer to activate even when unrelated Python scripts were running on the affected systems. The hackers aimed to capture a wide array of sensitive information, including Azure CLI data, Azure DevOps credentials, Docker configurations, and more. Notably, version 1.26.2 added capabilities to request GitHub Actions OpenID Connect tokens, which could potentially be exchanged for Azure access. The stolen data was sent to a specific external server, although the extent of the data breach remains unclear. Security teams are advised to search for these versions in dependency lockfiles and build logs, isolate affected environments, and review Azure and GitHub logs for unauthorized access.
