Malicious versions of Microsoft's agent-framework package on PyPI stole Azure and CI credentials, Wiz says

Nov 18, 2026
Versions 1.26.1 and 1.26.2 ran a credential stealer on every Python start and were removed within an hour.

Two malicious versions of Microsoft's agent-framework package, the Python package for Microsoft Agent Framework, were published on PyPI on 17 November with a credential stealer aimed at Azure and CI pipelines, security firm Wiz reports.

Version 1.26.1 appeared at 20:35 UTC and 1.26.2 at 21:08 UTC, and both had been removed by 21:30 UTC. The package gets about 41,000 downloads a week. The malicious versions drop a .pth file that Python runs every time it starts, so the stealer runs even if agent-framework is never imported. There is no matching release in Microsoft's GitHub repository, suggesting the versions were built outside the normal process and uploaded directly; the root cause is not confirmed.

The stealer collects secret-looking environment variables, credential files for tools such as the Azure CLI, npm, pip, git and Docker, Azure DevOps and GitHub Actions OIDC tokens, and Azure managed-identity tokens, then sends them to a webhook.site address. Wiz says at most 50 requests were captured, but they may hold working credentials.

Wiz advises teams to search for versions 1.26.1 and 1.26.2, pin to 1.26.0 and rotate every credential on affected hosts and runners, according to Wiz.

We hope you enjoyed this article

Consider subscribing to one of our newsletters like Cybersecurity AI Weekly or Daily AI Brief.

Also, consider following us on social media:

Free newsletter

Cybersecurity AI Weekly

Weekly newsletter about AI in Cybersecurity.

Market report

2025 Generative AI in Professional Services Report

Thomson Reuters

This report by Thomson Reuters explores the integration and impact of generative AI technologies, such as ChatGPT and Microsoft Copilot, within the professional services sector. It highlights the growing adoption of GenAI tools across industries like legal, tax, accounting, and government, and discusses the challenges and opportunities these technologies present. The report also examines professionals' perceptions of GenAI and the need for strategic integration to maximize its value.

Read more
Free, six days a week

Daily AI Brief: the AI news that matters, in your inbox.