Microsoft Apologizes as Agent Framework Repository Remains Offline After PyPI Malware Incident
Key Takeaways
- •Unauthorized versions 1.26.1 and 1.26.2 of Microsoft's 'agent-framework' Python meta-package were published to PyPI on November 17, 2026, containing credential-stealing code.
- •The malware leveraged a .pth hook so it executed automatically each time the Python interpreter started, without requiring any import or function call.
- •The malicious code sought Azure CLI credentials, GitHub Actions and DevOps pipeline tokens, and environment variables or credential files tied to npm, pip, Docker, Git and Hugging Face.
- •PyPI quarantined the malicious releases within roughly an hour of upload, though the package records approximately 190,000 to 200,000 downloads per month.
- •Microsoft's repository remains offline without a stated restoration timeline, and users who installed the affected versions are advised to treat their environments as compromised and rotate all credentials, with version 1.26.0 being the last clean release.

Microsoft Apologizes as Agent Framework Repository Remains Offline After PyPI Malware Incident
Microsoft has apologized for keeping its Agent Framework repository offline, but the company still has not said when it will be restored. The shutdown follows two unauthorized Python package releases that carried credential-stealing code.
Microsoft is careful to note that the malicious code reached developers through PyPI, the primary public registry for Python packages. According to the company, it never resided in the repository itself.
What Happened on PyPI
On November 17, 2026, versions 1.26.1 and 1.26.2 of the 'agent-framework' Python meta-package were published to PyPI without authorization. A meta-package functions as a bundle: installing a single name pulls in the components beneath it.
The malicious versions used a .pth hook, a mechanism that executed the code automatically each time the Python interpreter started. Users did not need to import anything or call a function — merely starting Python in an affected environment was enough to trigger it.
The code targeted secrets that grant access across an organization: Azure CLI credentials, along with the tokens GitHub Actions and DevOps pipelines rely on to build and deploy code automatically. It also searched for environment variables and credential files tied to npm, pip, Docker, Git and Hugging Face.
PyPI quarantined the malicious code within roughly an hour of upload, around 21:30 UTC — removing the releases from circulation on the registry. That response time is fast by incident-response standards, but it still leaves ample room for automated build systems that pull the newest version the moment it appears.
The download figures underline why that window matters. The 'agent-framework' package records approximately 190,000 to 200,000 downloads per month on PyPI.
Microsoft's Response and the Open-Ended Outage
In a November 25 update, Dan Taylor, principal product architect at Microsoft, said the repository would remain unavailable until the company could establish that it was safe to bring back online. He offered no timeline.
Taylor apologized for the extended downtime and described it as a necessary precaution while Microsoft secures the project. He also stated that the malicious code was not present in the source repository and that the project would not be discontinued.
The guidance for users is blunt: anyone who installed versions 1.26.1 or 1.26.2 should treat their environment as compromised and rotate all credentials immediately. The last clean release was version 1.26.0, published on November 12.
Why Agent Framework Is a Notable Target
Microsoft Agent Framework is the successor to two earlier Microsoft projects, AutoGen and Semantic Kernel. Version 1.0 launched on April 3, 2026, and Microsoft positioned the framework as its consolidated toolkit for building AI agents.
That lineage gives the package a built-in audience. Developers who previously used AutoGen or Semantic Kernel had a natural migration path into Agent Framework, which helps explain the download volume.
Implications for Developers and Organizations
The episode demonstrates that a trusted name on a package does not guarantee a trusted release. Microsoft says the source code was clean — the problem was the distribution channel, a category of compromise security teams commonly group under software supply chain attacks.
Two practical lessons follow. Pinning dependencies to known versions, such as 1.26.0 in this case, would have prevented environments from automatically pulling the unauthorized releases. Limiting which credentials reside in build environments reduces the payoff for any code that slips through.
Three things remain worth watching: when Microsoft restores the repository, what it discloses about how the unauthorized releases were published, and whether it changes how Agent Framework packages reach PyPI going forward. Until then, version 1.26.0 marks the line between clean and compromised.