🔍 Read the full analysis: How To Assess The Microsoft AI Agent Framework PyPI Credential Theft Threat on ThorstenMeyerAI.com
Get privacy and security gear 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 PyPI releases of Microsoft’s Agent Framework package, versions 1.26.1 and 1.26.2, contained credential-stealing code and were quarantined on November 17, 2026. Security guidance says environments that installed either version should be rebuilt from a clean base and accessible credentials rotated; the number of affected systems and any confirmed theft remain unknown.
Two malicious releases of Microsoft’s Agent Framework Python package were briefly available on PyPI on November 17, carrying code that sought developers’ cloud and software credentials, according to security advisories. PyPI quarantined versions 1.26.1 and 1.26.2; security guidance says systems that installed either should be treated as exposed, rebuilt from a clean version and have accessible credentials rotated.
The GitHub Advisory Database identifies the affected package as agent-framework and says the two releases contained a credential stealer absent from the preceding clean release, version 1.26.0. The advisory rates the incident critical. PyPI records and security researchers’ timelines place the first upload at 20:35 UTC and the second at 21:08 UTC on November 17. StepSecurity says PyPI quarantined 1.26.1 at 21:06 UTC and 1.26.2 at 21:16 UTC. The first release was therefore available for about 31 minutes, while the second was available for about eight minutes, according to those timelines.
The package is the official PyPI distribution referenced by Microsoft’s installation instructions, not an unrelated lookalike, according to the source report. It provides access to Microsoft’s open-source toolkit for building AI agents and workflows. The advisory says the malicious code ran when Python started in an affected environment, even if a user did not import the framework itself. That meant routine actions such as running a build or linter could trigger it after installation, while the framework continued to function normally.
Researchers said the code searched for credentials in environment variables, developer-tool and container-registry files, and secrets accessible to other running processes. The advisory also describes requests for short-lived credentials from cloud and pipeline identity services; version 1.26.2 added GitHub Actions identity tokens, according to the source material. The collected data was sent to an attacker-controlled destination. StepSecurity reported finding no remote-code-loading second stage in the code it inspected. That finding does not establish whether credentials were successfully used or whether other activity occurred.
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
Risks for Developer and CI Environments
The incident matters because developer workstations and automated build systems can hold credentials that reach source repositories, cloud services, package registries and AI platforms. A compromised package can expose those secrets without disrupting the software it claims to provide, making ordinary functional checks an unreliable way to spot the problem. In a CI pipeline, an installation may also run in an environment with access to deployment or repository credentials.
The short exposure window does not establish that risk was limited to a small number of systems. Automatic dependency updates could have installed an affected release during that period, and a package may remain in a container image or cached build even after PyPI removes it. The central defensive issue is not only whether the package is still downloadable: it is whether an environment installed either release and what credentials that environment could access.
Products Worth Considering

Anker SOLIX C300 Portable Power Station with 60W Solar Panel, 288Wh, 300W

Sonos Era 300 Wireless Smart Speakers with Dolby Atmos, Black, 2-Pack

Apple Watch SE 3 GPS 40mm Smartwatch
As an affiliate, we earn on qualifying purchases.
How the Two Releases Appeared
The last clean release before the incident was 1.26.0, published November 12, according to the source report. Version 1.26.1 appeared on PyPI five days later as a wheel-only release. PyPI quarantined it, but StepSecurity says the attacker’s publishing access had not been revoked at that point. Version 1.26.2 was uploaded about two minutes after the first quarantine, with renamed files and additional capabilities, and was quarantined eight minutes later.
The sequence highlights a distinction between removing a specific package version and disabling the credential or account used to publish it. Security firms including Socket, StepSecurity, Wiz, JFrog and Endor Labs analyzed the releases, while the OpenSSF malware database and GitHub Advisory Database published records of the incident. The source report says Wiz reported its findings to Microsoft on November 17. PyPI’s current listed version, according to that report, was 1.26.0.
“The malicious code is not present in the last clean release, 1.26.0.”
— GitHub Advisory Database
Victim Count and Credential Use
The number of systems that installed 1.26.1 or 1.26.2 has not been established in the supplied reporting. Wiz is cited as saying the package receives almost 200,000 downloads a month, but that figure is not a count of downloads during the incident window or of affected installations. The comparison basis and the number of unique affected users are not given.
The available material also does not say whether attackers successfully used stolen credentials, which organizations may have been affected, or whether Microsoft’s investigation has identified the publishing-access compromise’s cause. Microsoft’s cited statement says only that some repositories were made private while it investigates. Researchers’ observations about the code they inspected should not be read as proof that no other activity took place.
Containment and Investigation Steps
Organizations should check dependency records, build logs, caches and container images for either affected release, then follow the advisory’s remediation guidance. That guidance calls for rebuilding exposed environments from a clean base using version 1.26.0 and rotating credentials the environment could reach, including CI and GitHub Actions secrets. Teams should review relevant account and cloud logs for suspicious activity as part of their incident response.
Further clarity depends on updates from Microsoft, PyPI and the security researchers investigating the incident. Those updates may establish how publishing access was compromised, whether credentials were used after collection, and how many installations were affected. Until then, the confirmed release window and advisory guidance provide the clearest basis for assessing exposure.
Key Questions
Which package versions were affected?
The affected PyPI releases were agent-framework 1.26.1 and 1.26.2. The preceding clean version identified in the advisory was 1.26.0.
Could the malicious code run without importing the framework?
Yes. The GitHub Advisory Database says the code ran when Python started in an affected environment, even if the user did not import agent_framework.
What should an organization do if it installed an affected version?
Follow the advisory’s guidance: treat the environment as exposed, rebuild it from a clean base on version 1.26.0, and rotate credentials the environment could access, including CI and GitHub Actions secrets.
How many systems were affected?
The supplied reporting does not establish the number of affected installations or unique victims. A cited monthly download estimate is not a count of downloads during the brief incident window.
Has Microsoft explained how the incident happened?
Not in the statement cited by the source material. Microsoft told The Register that some repositories had been made private while it investigated malicious content; the cause of the publishing-access compromise remains unclear.
Source: ThorstenMeyerAI.com
