Unauthorized uploads of Microsoft Agent Framework Python package 1.26.1 and 1.26.2 to PyPI contained credential-stealing code, and the repository is temporarily offline
Anyone who installed or upgraded agent-framework without a version pin on November 17 should check. This covers what was affected, how to tell if you were hit, and what to do if you were.
// Key points
- Only versions 1.26.1 and 1.26.2 of the agent-framework Python meta-package were affected; 1.26.0 and earlier, the .NET packages and Semantic Kernel were not, and the malicious code was in the published packages, not the repository
- To check, look in site-packages for agent_framework_meta.pth and agent_framework_meta/_telemetry.py (1.26.1) or af_runtime_diag.pth and af_runtime_diag.py (1.26.2), and review lockfiles, CI logs, container images, internal mirrors and pip caches
- The code runs when Python starts, even if your application never imports the package; treat an affected environment as compromised, rotate every credential it could reach and rebuild from a clean image instead of downgrading in place
- If you never installed them, Microsoft recommends pinning agent-framework==1.26.0 until further guidance; there is no timeline yet for restoring the repository
Builder's takeToday I'd search every CI job and image for those two .pth filenames, even if we don't use this framework directly, since transitive dependencies and internal mirrors can pull it in. Longer term: pin fast-moving dependencies like agent frameworks through lockfiles, have a person review automated upgrade PRs before merging, and keep the credentials reachable from CI jobs as narrow as possible.
// Background · from #Microsoft
Full timeline →- Nov 25 Microsoft Foundry's Ignite roundup: Insights and multi-turn evaluation are GA, Agent Optimizer previews skill and cost optimization, and Decision-1 judges at about $0.12 per 1,000 calls
- Nov 21 Microsoft Foundry Managed Compute is generally available: deploy 150+ open models on dedicated GPUs, choosing NVIDIA A100, H100, H200 or AMD MI300X
- Nov 20 Microsoft Foundry lets custom agents have their own Microsoft 365 accounts: their own email, calendar, OneDrive and Teams identity, with a manager accountable for them