🔍 Read the full analysis: How A PyPI Hijack Put Microsoft AI Agent Framework Credentials In Focus on ThorstenMeyerAI.com
Get the latest gadgets delivered free with Prime
- Fast, free delivery on millions of items
- Prime Video, Amazon Music and more included
- Member-only deals all year
TL;DR
Two releases of Microsoft’s Python package agent-framework, versions 1.26.1 and 1.26.2, carried credential-stealing code before PyPI quarantined them on Nov. 17, 2026. Security advisories say the framework continued to work while the code ran at Python startup; anyone who installed either release should treat the environment as exposed, rebuild it and rotate credentials it could access.
Two malicious releases of Microsoft’s Python package agent-framework appeared on PyPI on Nov. 17, 2026, and were quarantined within minutes, according to security advisories and researchers. The releases, versions 1.26.1 and 1.26.2, included credential-stealing code alongside the functioning framework, putting developer machines and build environments that installed them at risk of exposing cloud, CI and AI-service credentials.
The GitHub Advisory Database says the malicious code was absent from the last clean release, version 1.26.0, and rates the incident critical. The first affected version, 1.26.1, was published at 20:35 UTC; PyPI quarantined it at about 21:06 UTC, according to StepSecurity. The attacker then uploaded 1.26.2 at 21:08 UTC. PyPI quarantined that release at 21:16 UTC. Both versions have since been removed from the registry, the source material reports.
The code added a Python startup hook, meaning it could run when Python started in an affected environment without the user importing agent-framework, according to the advisory. The package itself continued to operate, so a successful install or routine test would not necessarily reveal the compromise. The advisory describes collection of sensitive environment variables and developer-tool credentials, as well as requests for cloud and pipeline identity tokens. StepSecurity reported additional token-related capabilities in version 1.26.2.
Security researchers including Socket, StepSecurity, Wiz, JFrog and Endor Labs analyzed the releases. The GitHub Advisory Database and the OpenSSF malware database also published entries. The source material says guidance is to treat a machine, container or pipeline that installed either version as exposed, rebuild it from a clean base using 1.26.0, and rotate credentials it could reach, including CI and GitHub Actions secrets.
agent-framework on PyPI · UTC
Two poisoned releases, one evening
The official package of Microsoft’s Agent Framework, step by step. Blue: what happened. Green: the clean version.
November 12 to 18, 2026
- Clean 1.26.0 publishedStill the current version on PyPI
- Malicious 1.26.1 appearsFramework works normally, a credential stealer runs whenever Python starts
- PyPI quarantines 1.26.1After about 31 minutes
- Attacker uploads 1.26.2Renamed files, also targets GitHub Actions tokens
- PyPI quarantines 1.26.2Eight minutes later
- Malware databases list itMAL-2026-20101 (OpenSSF), GHSA-764m-3ppc-5m73 (GitHub)
Sources: GitHub Advisory Database GHSA-764m-3ppc-5m73, Nov 18, 2026; OSV MAL-2026-20101, Nov 17, 2026; PyPI project data, checked Nov 19, 2026; StepSecurity analysis (quarantine times).
Graphic: Powered by Thorsten Meyer AI
Why Build Credentials Were at Risk
The incident matters because software packages are routinely installed in environments that hold credentials with access beyond a developer’s local project. A compromised laptop, build server or CI runner may have cloud keys, source-control tokens, package-registry logins or AI-service credentials available to software running on it. If copied out, those credentials could potentially be used to reach connected services; the available source material does not establish that any such follow-on access occurred.
The startup hook also made the risk less visible than a broken dependency. An affected package could appear to work normally, while later Python activity triggered the added code. The advisory says token requests were part of the behavior, and OpenSourceMalware told The Register that active requests alongside passive credential collection could make short-lived tokens useful to an attacker if obtained promptly. That is an assessment of potential risk, not evidence that particular accounts were accessed.
The brief availability window does not by itself establish how many systems were affected. Automatic dependency updates and build processes can install releases without a developer selecting them manually. Security teams therefore need to check package and build records, rather than relying only on whether someone remembers installing the framework.
Products Worth Considering

Jackery Solar Generator 1000 V2 with 200W Solar Panel, 1,070Wh, 1,500W, Dune White

Amazon Kindle Paperwhite (2024, 16 GB) – 7-inch Display, Black

Anker SOLIX C300 DC Portable Power Station, 288Wh, 300W
As an affiliate, we earn on qualifying purchases.
How the Two Releases Appeared
Microsoft Agent Framework is an open-source toolkit for building AI agents and coordinating them in workflows. The PyPI package agent-framework is an umbrella package that brings in framework code and integrations. The source article says Microsoft’s installation instructions direct users to the official package, making this different from a similarly named third-party copy.
The clean release, 1.26.0, was published on Nov. 12. Researchers’ timelines describe 1.26.1 as a wheel-only upload on Nov. 17. After PyPI quarantined it, another release followed roughly two minutes later, with renamed files and additional capabilities, according to StepSecurity. The sequence has drawn attention to the fact that quarantining a release may not, by itself, remove an attacker’s ability to publish another one.
Wiz said it promptly reported its findings to Microsoft on Nov. 17. The source material reports that Microsoft told The Register: “We have made some repositories private while we investigate malicious content.” It also says no Microsoft security advisory had been found at the time of publication. These details describe the status reported by the source on Nov. 19, 2026.
““a credential stealer that is not present in the last clean release, 1.26.0””
— GitHub Advisory Database
Victim Count and Access Remain Unknown
The available source material does not provide a confirmed number of affected installations or victims. It reports that Wiz estimates the package receives almost 200,000 downloads a month, but that figure is not a count of downloads of the malicious versions and does not establish how many installations occurred during their brief availability.
It is also unclear whether any stolen credentials were used after collection, which organizations were affected, or whether any data or systems were accessed through them. The researchers’ findings about the inspected code do not settle those questions. The source says StepSecurity found no remote-code-loading second stage and that the malware was not persistent beyond the installed package; neither point rules out exposure or later use of stolen credentials.
The source material does not report a complete public account from Microsoft or confirmation that the publishing credentials were revoked. Further investigation and affected organizations’ own logs may clarify the scope.
Rebuild, Rotate and Check Records
Organizations should check dependency lockfiles, package caches, CI logs, container images and deployment records for versions 1.26.1 and 1.26.2. Any environment found to have installed either should be treated as exposed, rebuilt from a clean base with the clean 1.26.0 release, and reviewed for credentials that were available to it. The advisory’s guidance includes rotating reachable secrets, including CI and GitHub Actions credentials.
Security teams should also review relevant cloud, source-control and pipeline audit logs for unusual use of credentials or tokens. The source material does not give a single confirmation point that would prove an environment was unaffected; local records and provider logs will be important to each organization’s assessment.
Further updates may come from Microsoft, PyPI and the researchers as they establish how the publishing access was obtained, how many systems installed the releases and whether credentials were misused. Until then, the confirmed scope remains the two quarantined package versions and the environments that installed them.
Key Questions
Which package versions were affected?
The affected PyPI releases were agent-framework 1.26.1 and 1.26.2. The source material identifies 1.26.0, released Nov. 12, as the last clean version.
Could the malicious code run if I did not import the framework?
Yes. The GitHub Advisory Database says the added startup hook could run when Python started in an affected environment, without importing agent-framework.
What should an organization do if it installed an affected release?
Treat the environment as exposed, rebuild it from a clean base using version 1.26.0, and rotate credentials it could access. Review relevant logs for possible unusual credential or token use.
How many users were affected?
No confirmed victim or installation count is provided in the source material. The reported monthly download estimate for the package is not a count of downloads of the two malicious releases.
Has misuse of stolen credentials been confirmed?
The source material does not confirm that stolen credentials were used or that particular accounts or systems were accessed. That remains under investigation.
Source: ThorstenMeyerAI.com
