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.
Malicious PyPI Package Compromises Cloud Credentials
Malicious PyPI uploads of Microsoft agent-framework stole Azure and GitHub credentials from developer environments.
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.
Actionable insights
PremiumWhat Premium adds to this story
- 5 concrete actions your team can take on this story
- The same on every Monday and Friday story
- Every Monday and Friday edition by email, on top of Wednesday
€2 a month. New to Premium? The first 7 days are free, no card needed.
Unlock with PremiumOriginal source
cybersecuritynews.com

