The Second Malicious Release Shipped After PyPI Quarantined the First
At 20:35:20 UTC on 17 November, version 1.26.1 of agent-framework appeared on PyPI. Version 1.26.2 followed at 21:08:39. Both were gone by about 21:30 [3][4].
Each was a wheel-only repack of the legitimate 1.26.0, and each added a .pth file to site-packages. Python executes .pth lines when an interpreter starts in that environment, so the payload ran whether or not anything imported agent_framework [2][3].
It went after environment variables matching TOKEN, SECRET, KEY, AZURE, AWS, GITHUB and OPENAI; credential files including ~/.azure, pip.conf, .npmrc, .netrc, .git-credentials, Docker config, Hugging Face tokens, Azure DevOps agent .credentials, and .env files under /app and /workspace; the /proc/*/environ of other processes on the same host; and managed identity tokens for ARM, Graph, Key Vault, Storage, ACR and Azure DevOps [2][3]. Version 1.26.2 added GitHub Actions OIDC tokens, which is the escalation worth noticing, because a federated credential can be exchanged for Azure access with no stored secret at all [3]. Everything was zlib-compressed into one POST to a hardcoded webhook.site URL [2][3].
I wrote about this mechanism on 8 November, when litellm==1.107.0 put cook.pth and sitecustomize.py into site-packages for two hours [5]. The sentence I used then still holds: an application did not need to import the package for the payload to run [5]. Chainguard makes the same point about this package and adds the part that matters when you are auditing a lockfile, that an unused dependency in one is still a live stealer [4].
The second upload went up after the quarantine
Thirty-three minutes separate the two releases, and the second shipped after PyPI had already quarantined the first [4]. Chainguard records that alongside a third fact in its own account: the Microsoft-associated PyPI publisher has been quarantined [4]. A file and an account are different things to revoke, and between the two there was room for a second upload. Removing a version closes a download URL. It does not close the ability to publish the next one.
Microsoft’s own guidance says the same thing in a different register, that “PyPI removal does not remove copies already downloaded”, and the list of places to look runs through lockfiles, pip freeze output, CI logs, container images, internal mirrors, artifact proxies and pip caches [1].
Chainguard’s timings for its own blocking are 48 seconds after the first upload and 42 seconds after the second, with no advisory in hand at the time [4]. It sells the scanner that did the blocking and was measuring its own product, so take the seconds as an illustration rather than a benchmark. What does transfer is the scale. One upload was the attacker’s unit of work, and a defender reviewing releases one at a time was never in that race.
How the release got out
Microsoft says the two versions were “uploaded to PyPI without authorization” and stops there [1]. It does not describe the route.
Wiz’s reconstruction is the specific one. A client certificate and private key for Microsoft ESRP, the Engineering System Release Pipeline that signs and publishes the package, appear to have been compromised. A first publish attempt from AWS was rejected by ESRP’s IP filtering. A second, from Microsoft-owned IP space, worked. How the credentials were obtained is not known [3].
That account belongs to Wiz, and Microsoft has not confirmed it, so read the ESRP certificate as one company’s reconstruction and not a root cause. Two other details support the broader reading that this came through the legitimate publishing path, without settling it. SecurityWeek reports SafeDep’s finding of a PyPI maintainer account named vibiret, created the day of the attack, with publishing rights to agent-framework and five related projects, and says the account’s involvement has not been confirmed [7]. And the packaging differed from every normal release: real ones ship a wheel and an sdist, and 1.26.1 and 1.26.2 shipped wheels only [2][7].
Wiz also reports that the tooling identifies itself as Cairn, staged the package at /tmp/cairn_pkg and sent a connectivity probe named CAIRN_ESRP_PROBE2 before publishing [3]. Cairn is one of the five agentic offensive frameworks we looked at on 24 November [6].
Microsoft’s account of where the code sat is separate and matters: the malicious code was in the published packages and not in the repository, and Wiz found no malicious releases or code in the main source repository [1][3]. Microsoft also draws the boundary of the blast radius, that the affected package was the agent-framework meta-package and that the other Agent Framework Python packages were unaffected [1]. It is also not the first Microsoft Python package to be hit this year. Wiz notes that durabletask was compromised after its PyPI token was stolen, and says explicitly that it has not linked the two incidents [3].
The response is a 404
The newest thing Microsoft has said in public is a blog post from 25 November, and it is still the newest item on the Agent Framework blog as I write this [1]. Dan Taylor, a principal product architect, apologises for the disruption, calls the takedown “a necessary precaution”, and writes that the repository “will remain unavailable until we can confidently determine it is safe to re-enable”. There is no confirmed timeline [1].
I checked this morning. github.com/microsoft/agent-framework returns 404 to the HTML and to api.github.com. The last capture in the Wayback CDX index that still returns 200 is timestamped 2026-11-14 03:25:36 UTC, and the page behind it carries the repository title, which tells you the path is the right one and the outage is recent. Nothing in that index after the capture.
The same 404 covers the release notes and the issue tracker. SecurityWeek points at a thread in microsoft/agent-framework issue 10411, where a maintainer confirmed the removals and an investigation; that URL returns 404 too [7]. The one public place where a maintainer answered users is inside the thing that is offline.
The payload survives. The advisory’s links into PyPI’s inspector for the malicious files still resolve, which is how you can read what the attacker shipped [2]. What you cannot read is the source tree or the release notes that would tell you what changed between 1.25.0 on 7 November and 1.26.0 five days later [8]. The hash of the clean wheel is still published, so a cached file can be checked against it. The release notes cannot be checked at all.
github.com/microsoft/onnxruntime also returns 404. SecurityWeek notes that several Microsoft repositories have gone the same way and that any relationship to this incident is unclear, which is as far as the reporting goes [7].
The recommended pin has no provenance
Microsoft’s instruction to anyone who never installed either version is to pin agent-framework==1.26.0 and hold [1]. On PyPI’s file table for 1.26.0 this morning, both the wheel and the sdist are labelled “Without provenance”, and the integrity endpoint returns 404 for each [8].
Most of PyPI carries no attestations, so I do not read that as negligence specific to Microsoft. The point is narrower and it is about the advice rather than the vendor. The recommendation is to trust a build, from a publisher that was compromised, at a moment when the vendor’s explanation is four days old and its source repository is dark. A reader can make that decision. It is a decision, not a verification, and it is being offered as the safe default.
The fallback was archived three days later
On 20 November, microsoft/autogen was archived and made read-only [9]. The notice is blunt: Microsoft is not providing bug fixes, security fixes, new features, or support for that project, and “we continue to advise against production use” [9]. Its README tells new users to start with Microsoft Agent Framework and links to github.com/microsoft/agent-framework, which is the 404 above [9].
No source connects the archival to the PyPI incident. Three days apart is chronology, and Microsoft says the framework “has not been discontinued” [1]. Together, though, the two events remove the option inside Microsoft’s own line. There is no maintained predecessor to fall back to, and the migration target is a repository nobody outside Microsoft can read. I have mixed feelings about the containment. Taking a repository offline while the signing path is in question is what you want a named supplier to do. The same decision also withdraws the material you would use to check the release you are being told to keep.
What “production ready” was measuring
Four days before the malicious uploads, Entrans published a comparison whose TL;DR reads: “Major enterprise consolidation has shifted the market toward production-ready tools like LangGraph for stateful graphs and Microsoft Agent Framework following AutoGen’s retirement” [10].
I pulled the release history off PyPI’s JSON API to see what that phrase is attached to. Between 1.0.0 on 2 April and 1.26.0 on 12 November there are 33 stable releases, which works out to one every seven days, and 1.25.0 landed on 7 November, five days before 1.26.0 [8]. A weekly train is a support commitment, not a stability claim, and a week is not long enough for anyone to read the diff.
We have argued the consolidation case on this site since 17 September, revised it in October when the silos turned out to leak into each other, and taken a position on control against autonomy [14][15][16]. On 10 November I argued that framework choice was never the binding constraint [11], and I still think that. The failure here sits one layer down from the API, in who built the wheel and who can tell you.
The bill for consolidation is therefore not a shorter list of frameworks. Entrans’s own list runs to ten entries [10]. What narrowed is how many parties you can call and how many places a fix can come from. The package name, the publishing path and the repository all belong to one vendor, and this month all three were in question at once.
MCP is a different layer
On 11 November the MCP maintainers put the specification on a fixed six-month cycle, releases on the last Tuesday of March and September, the next one targeted at 30 March 2027, with a formal Release Manager role to hold the schedule [12]. Two weeks later the project’s second-anniversary post reported SDKs past five billion total downloads, more than 4.5 billion of them in the past year alone [13].
Both are worth knowing and neither is a control. MCP standardises how an agent talks to a tool. It says nothing about whether the wheel implementing it was built by the party on the label, which is the question this incident asked. If anything the relationship runs the other way: an interface that everything implements makes the SDKs behind it a bigger target, and that is how a protocol’s success becomes its users’ exposure.
Quincy Castro at Chainguard has the sentence I would keep from a post that is otherwise about a product: “Provenance tells you which account pushed the button, not whether the account was theirs that day” [4].
As of this morning, 1.26.0 is still the newest release on PyPI, the repository still returns 404, and Microsoft has published no timeline [1][8]. If you are checking an environment, do not start with pip. Chainguard warns that pip uninstall starts Python and runs the stealer once more, so the safe first step is a shell search of site-packages for agent_framework_meta.pth or af_runtime_diag.pth, then rotation, then a rebuild from a clean image [1][4].
Sources
- Microsoft Agent Framework, Microsoft Agent Framework repository update (Dan Taylor, 25 November 2026)
- OSV, PYSEC-2026-4388: agent-framework 1.26.1 and 1.26.2 contain credential-stealing code (published 17 November 2026, modified 18 November 2026)
- Wiz Research, Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelines (17 November 2026, updated 18 November 2026)
- Chainguard, Microsoft agent-framework compromised on PyPI: 1.26.1 and 1.26.2 ship a credential stealer that runs on every Python start (Quincy Castro, 17 November 2026)
- Clarion Street, The Payload Was Not a Component (8 November 2026)
- Clarion Street, The Scope Check Was a Prompt (24 November 2026)
- SecurityWeek, Microsoft Agent Framework Releases Poisoned With Credential Stealer (Eduard Kovacs, November 2026)
- PyPI, agent-framework project page and JSON API (retrieved 29 November 2026)
- GitHub, microsoft/autogen (archived 20 November 2026)
- Entrans, Top 10 Agentic AI Frameworks in 2026: How to Pick One That Survives Production (Aditya Santhanam, 13 November 2026)
- Clarion Street, The Reality Check Was Not About the Framework (10 November 2026)
- Model Context Protocol, A More Predictable Release Cycle for MCP (11 November 2026)
- Model Context Protocol, Two Years of MCP Builders (24 November 2026)
- Clarion Street, The Great Agent Framework Consolidation of 2026 (17 September 2026)
- Clarion Street, Orchestration Is a Spectrum, Not Four Silos (5 October 2026)
- Clarion Street, The Agentic Framework Schism Is Over, and Control Won (15 October 2026)