AI Agent News/stories/malicious-microsoft-agent-framework-packages-published-to-pypi-repository.md

FrameworksBreaking

Malicious Microsoft Agent Framework packages published to PyPI, repository offline

Microsoft has temporarily taken its Agent Framework repository offline after two unauthorized versions of the agent-framework Python package, 1.26.1 and 1.26.2, appeared on PyPI. Both versions contained code that steals credentials, and they have been removed from PyPI.

Source: devblogs.microsoft.com/agent-framework/microsoft-agent-framework-repository-update

Microsoft has temporarily made its Microsoft Agent Framework repository unavailable as a precaution, and it has no confirmed timeline for restoring access. On November 17, two versions of the agent-framework Python meta-package, 1.26.1 and 1.26.2, were uploaded to PyPI without authorization. Both contained credential-stealing code, and PyPI has removed them, with advisory PYSEC-2026-4388 covering the technical details.

Microsoft says the malicious code was in the published packages rather than in the repository itself. Version 1.26.0 and earlier, other Agent Framework Python packages, .NET packages and Semantic Kernel are not affected. The framework has not been discontinued.

Microsoft says machines, containers or CI jobs that installed 1.26.1 or 1.26.2 should be treated as compromised, because the code runs when Python starts even if the package is never imported. Recommended steps include rotating every credential the environment could reach, rebuilding from a clean image instead of downgrading in place, and reviewing cloud and CI audit logs from November 17 onward. Anyone who never installed either version should pin agent-framework==1.26.0 and stay on that version until further guidance.

Why it matters if you build agents

Any agent environment that installed agent-framework without a pin during the short window may hold exposed credentials, so lockfiles, CI logs, container images and package mirrors need checking now. Pinning agent-framework to 1.26.0, or pinning the exact sub-packages in use, is the interim safe option until Microsoft issues new guidance. Agent builders should use lockfiles and pinned versions for agent dependencies, since unpinned installs and automated updates were what pulled in the affected releases.

Get stories like this every weekday

One short email with the day's agent tooling news.

Subscribe