· AI dev tools
Microsoft Agent Framework remains offline after PyPI credential-stealing releases
The malicious code within the agent-framework Python package, versions 1.26.1 and 1.26.2, was designed to steal credentials, and Microsoft has issued strong warnings to developers who may have…
The malicious code within the agent-framework Python package, versions 1.26.1 and 1.26.2, was designed to steal credentials, and Microsoft has issued strong warnings to developers who may have installed these compromised files. These two harmful versions made their appearance on PyPI on November 17.
Microsoft has issued an apology for keeping its Agent Framework repository inaccessible following the distribution of these credential-stealing Python packages, yet they have offered no specific date for when access will be reinstated. According to the company, the harmful code spread via two unauthorized releases on PyPI, rather than originating from the repository itself.
When The Register brought the situation to light on November 18, a company spokesperson stated that Microsoft was conducting an investigation and "will take further action as needed." Later, on November 25, Dan Taylor, a principal product architect at Microsoft, confirmed that the repository would remain offline until the organization could verify its safety for restoration. Taylor further clarified that "Microsoft Agent Framework has not been discontinued."
Taylor detailed the issue, noting that "Both contained code that steals credentials. Both have been removed from PyPI," referring to the two tainted versions of the agent-framework Python package. He also assured users that only the agent-framework Python meta-package faced issues, adding that "Other Microsoft Agent Framework Python packages were not affected," and that .NET packages and Semantic Kernel were likewise untouched.
Describing the outage as "a necessary precaution," Taylor added that "We're working to restore access as soon as possible." For any user who installed either agent-framework 1.26.1 or 1.26.2, it is crucial to consider the affected machine, container, or CI job as compromised. This is because the malicious code executes simply when Python initiates, irrespective of whether the application actually imports the package.
Microsoft strongly recommends several protective measures for affected environments: rotating every credential available to that setup, rebuilding from a pristine image instead of modifying an existing one, eliminating cached and mirrored copies, and scrutinizing cloud and CI audit logs for any unusual actions. Users who avoided installing the malicious releases are advised to lock agent-framework to version 1.26.0, or to specify the exact sub-packages they require, pending further official instructions.
Why it matters
This incident highlights the risks associated with dependency management, as malicious code was distributed via unauthorized PyPI releases. Developers using the Agent Framework must take immediate security precautions, such as rebuilding from clean images, until Microsoft restores the repository.





