Microsoft identified agent-framework versions 1.26.1 and 1.26.2 as unauthorized PyPI releases uploaded on November 17, 2026. The company said both contained credential-stealing code and were removed from PyPI. In its November 25 update, Microsoft said it would keep the Agent Framework repository unavailable until it could determine that it was safe to re-enable, with no confirmed restoration timeline. Microsoft’s update also lists files and storage locations operators can check for affected copies.
Which agent-framework releases did Microsoft identify?
Microsoft identified versions 1.26.1 and 1.26.2 of the agent-framework Python meta-package. It said versions 1.26.0 and earlier, other Microsoft Agent Framework Python packages, .NET packages, and Semantic Kernel were not affected.
Microsoft also said the malicious code could run when Python starts in an affected environment, even if an application does not import the package. That makes checking only an application’s imports insufficient: operators should review the environment and its package records as well.
How to check for affected installations and copies
In site-packages, Microsoft listed these indicators for the two releases:
- Version 1.26.1:
agent_framework_meta.pthandagent_framework_meta/_telemetry.py - Version 1.26.2:
af_runtime_diag.pthandaf_runtime_diag.py
Microsoft recommended checking lockfiles and pip freeze output, along with CI logs and container images. It also named internal package mirrors, artifact proxies, and pip caches as places to inspect. The company said possible receipt paths included unpinned installs or upgrades, CI or container builds without a pin or lockfile, and automated updates.
Removing a release from PyPI does not remove copies already downloaded. A clean PyPI listing therefore does not cover packages retained in a build, cache, mirror, or proxy.
What to do if an environment installed either version
Microsoft advised treating any machine, container, or CI job that installed 1.26.1 or 1.26.2 as compromised. Its recommended response is:
- Rotate every credential the environment could access, including cloud identities, CI/CD and package-registry tokens, API keys, and Git credentials.
- Rebuild from a clean image rather than downgrading the affected environment in place.
- Remove affected copies from environments, images, caches, mirrors, and proxies.
- Review cloud and CI audit logs from November 17 onward.
If either affected version was installed, treat the environment as compromised: rotate its accessible credentials, rebuild cleanly, remove retained copies, and review its cloud and CI activity.
What to do if neither affected version was installed
For users who did not install 1.26.1 or 1.26.2, Microsoft recommended pinning agent-framework==1.26.0 or the exact sub-packages they need while awaiting further guidance. The company said no action beyond that pinning recommendation was needed if neither affected release had been installed.