this article contains no affiliate links. All links are plain links, and we earn nothing if you click them. See our affiliate disclosure. How this article was prepared: AI helped gather and draft this research; a person checked the facts against the cited sources.
Quick answer: Two malicious releases of Microsoft's agent-framework Python package, versions 1.26.1 and 1.26.2, were published to PyPI on November 17, 2026. Each added a credential stealer that ran on every Python start, even when the package was never imported, and sent Azure, Azure DevOps, GitHub and other cloud credentials to a webhook.site address. Both were removed within about 40 minutes. Version 1.26.0 is the last clean release. Anyone who installed either version should rotate the credentials reachable from the environment.
What happened
Microsoft's agent-framework is the Python package for Microsoft Agent Framework. On November 17, 2026, versions 1.26.1 and 1.26.2 appeared on PyPI with a credential stealer that was not in 1.26.0, the last clean release. The GitHub Advisory Database lists the incident as GHSA-764m-3ppc-5m73 and says both releases have since been removed from PyPI. The package gets roughly 200,000 downloads a month, according to BleepingComputer.
Version 1.26.1 used agent_framework_meta.pth and version 1.26.2 used af_runtime_diag.pth. Python runs .pth files on every interpreter start, so the stealer ran whenever Python started in that environment, even if agent-framework was never imported.
What the stealer collected
The stealer collected environment variables, Azure DevOps OIDC tokens, Azure managed-identity tokens and Azure instance metadata. It also read local configuration files and the environment of other running processes. Version 1.26.2 added theft of GitHub Actions OIDC tokens. The collected data was sent by HTTP POST to https://webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb. Stolen managed-identity and OIDC-exchanged tokens are valid for up to 24 hours, according to Wiz.
How long they were live
Version 1.26.1 was published at 20:35 UTC on November 17, 2026. PyPI quarantined it at 21:06 UTC. Version 1.26.2 followed at 21:08 UTC and was quarantined at 21:16 UTC. The two releases were live for about 40 minutes in total. Despite the short window, Renovate bots were opening upgrade pull requests in downstream repositories within six minutes of 1.26.1 appearing.
How the attacker published them
Wiz says the attacker appears to have compromised a client certificate and private key for Microsoft ESRP. A first publish attempt from AWS was rejected by ESRP's IP filtering, and a second attempt from Microsoft-owned IP space succeeded. Microsoft has not yet published a root cause.
What Microsoft said
Microsoft has acknowledged the incident. A maintainer stated in a GitHub discussion that the compromised releases had been removed from PyPI and an investigation was in progress. Microsoft has not yet published a root cause. BleepingComputer said it contacted Microsoft and had not received a response by publication time.
What to do if you installed them
If you installed 1.26.1 or 1.26.2, isolate the affected environment, avoid running Python or pip until it is secured, and rebuild from a known-clean environment using the safe 1.26.0 release. Pin the package to 1.26.0. Rotate exposed credentials from a clean system. Audit Azure identities and review sign-in and activity logs, and audit GitHub Actions workflows that deploy to Azure.
Quick questions
Am I affected if I use Microsoft Agent Framework?
Only if you installed version 1.26.1 or 1.26.2. Version 1.26.0 is the last clean release.
How do I check if I installed a malicious version?
Check whether agent_framework_meta.pth (version 1.26.1) or af_runtime_diag.pth (version 1.26.2) is present in your Python environment.
Did the attacker get my credentials?
Wiz analysed the captured requests and found only three unique, successful cases of victim data exfiltration. If you installed either version, rotate the credentials that were reachable from the environment.
How did the attacker publish the malicious versions?
Wiz says the attacker appears to have used a compromised client certificate and private key for Microsoft ESRP. Microsoft has not yet published a root cause.
Is 1.26.0 safe to use?
Yes. Version 1.26.0 is the last clean release, and PyPI now lists 1.26.0 as the current version.
Sources
Wiz: Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelines — https://www.wiz.io/blog/malicious-version-of-microsofts-agent-framework-published-to-pypi — November 17, 2026 (updated November 18, 2026)
BleepingComputer: Microsoft's Agent Framework PyPI package compromised to steal credentials — https://www.bleepingcomputer.com/news/security/microsofts-agent-framework-pypi-package-compromised-to-steal-credentials/ — November 18, 2026
The Hacker News: Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials — https://thehackernews.com/2026/11/attackers-compromise-microsofts-agent.html — November 18, 2026
GitHub Advisory Database: Malicious code in agent-framework (PyPI) · GHSA-764m-3ppc-5m73 — https://github.com/advisories/GHSA-764m-3ppc-5m73 — November 18, 2026
PyPI: agent-framework — https://pypi.org/project/agent-framework/ — date not shown on the page
Omnistu: Microsoft's agent-framework PyPI compromise: how a startup file ran code without an import — https://omnistu.com/blog/agent-framework-pypi-startup-hook-python/ — November 19, 2026
Reef Sentinel: Renovate Opened the Upgrade PR in Six Minutes: Microsoft's Poisoned agent-framework Shows Auto-Updates Now Race the Attacker — https://www.reef-sentinel.net/p/131 — November 19, 2026
The Five Nines: Microsoft Agent Framework packages on PyPI poisoned to steal credentials — https://www.thefivenines.com/security/microsoft-agent-framework-packages-on-pypi-poisoned-to-steal-credentials — November 18, 2026
Last checked: November 19, 2026, MYT.