4 min read
Laptop screen showing lines of programming code beside a notebook on a desk, representing Python developer work
Image credits · Photo: Tirza van Dijk / CC0, via Wikimedia Commons

Microsoft Agent Framework Stays Offline After Malicious PyPI Releases

Microsoft has kept the Agent Framework repository offline since malicious Python releases 1.26.1 and 1.26.2 appeared on PyPI on 17 November, with no restore date.

In short

Microsoft Agent Framework Python releases 1.26.1 and 1.26.2 reached PyPI without authorization on 17 November 2026 and steal credentials when Python starts. Microsoft removed them and keeps its repository offline. If you installed either, treat the system as compromised and rotate credentials. Otherwise pin to 1.26.0.

Table of contents 7 sections
Key takeaways
  • Versions 1.26.1 and 1.26.2 of the agent-framework Python package were uploaded to PyPI without authorization on 17 November 2026.
  • The malicious code steals credentials and runs when Python starts, even if the package is never imported.
  • Microsoft says other Agent Framework Python packages, the .NET packages and Semantic Kernel were not affected.
  • Anyone who installed an affected version should treat the environment as compromised, rotate credentials and rebuild from a clean image.
  • The repository remains offline with no restore date, and Microsoft says the project has not been discontinued.

Microsoft Agent Framework developers should check their environments now: two malicious versions of the Python package, 1.26.1 and 1.26.2, were uploaded to PyPI on 17 November, and Microsoft said on 25 November that the project repository would stay offline until it can confirm it is safe to restore. As of The Register's report on 30 November, there was still no date for access to return.

What happened to the Microsoft Agent Framework package?

Microsoft's repository update, written by principal product architect Dan Taylor, says versions 1.26.1 and 1.26.2 of the agent-framework Python meta-package were uploaded to PyPI without authorization. Both contained code that steals credentials. Microsoft says the malicious code was in the published packages, not in the repository, and that both versions have since been removed from PyPI.

Only the agent-framework meta-package was affected. Microsoft says versions 1.26.0 and earlier, the other Agent Framework Python packages, the .NET packages and Semantic Kernel were not affected.

How does the malicious code work?

According to Microsoft, the code steals credentials and runs when Python starts in an affected environment, even if the application never imports the package. That detail matters because a normal code review of what your application imports would miss it.

The Register's earlier report on the hijack adds technical detail, attributed to the researchers at OX Security and OpenSourceMalware who reported the compromise. The malware installs the genuine 1.26.0 version so that the package looks legitimate. It collects environment variables, credential files and other secrets for Azure, Git, Docker, Hugging Face and other developer services, encodes them as base64 JSON and sends them to a webhook address hard-coded in the code.

The same report says the malware actively requests new identity tokens from GitHub Actions, Azure DevOps and Azure before sending them out. OpenSourceMalware noted this makes it especially dangerous in cloud build environments. The malware is not persistent: it runs only while a malicious version remains in a site-packages directory.

How many developers could be exposed?

The Register says the package has nearly 200,000 downloads a month, about 0.2 million. It does not say how many installs received the malicious versions, and Microsoft has not published that figure. OX Security told The Register, as reported, that 1.26.1 was reverted to a safe version and that the attacker later uploaded 1.26.2 through Microsoft's official PyPI publisher account. The Register also says an administrator account on Microsoft's GitHub organization appears to have been accessed without authorization. Microsoft has not confirmed that detail in its own post.

A Microsoft spokesperson told The Register on 18 November: "We have made some repositories private while we investigate malicious content." The Register noted that Microsoft's ONNX Runtime repository was also offline at the time, and that neither Microsoft nor the researchers had linked it to this campaign.

Check whether you installed Microsoft Agent Framework 1.26.1 or 1.26.2

Microsoft says you may have received an affected version if you installed or upgraded without a version pin, ran CI or container builds without a pin or lockfile, or merged an automated update to either version. Check lockfiles, CI logs, container images, internal mirrors, proxies and pip caches, because removing a release from PyPI does not delete copies that already exist elsewhere.

Microsoft lists indicator files in site-packages. For 1.26.1, look for agent_framework_meta.pth and agent_framework_meta/_telemetry.py. For 1.26.2, look for af_runtime_diag.pth and af_runtime_diag.py.

What to do if you installed an affected version

Microsoft's guidance is blunt. Treat the machine, container or CI job as compromised. Then:

  • Rotate credentials: change every credential the environment could reach, including cloud keys, tokens and registry logins.
  • Rebuild: start from a clean image instead of downgrading in place.
  • Purge copies: remove cached and mirrored copies of the malicious packages.
  • Review logs: check cloud and CI audit logs from 17 November onward for suspicious activity.

If you installed neither version, Microsoft says to pin agent-framework to 1.26.0, or pin the exact sub-packages you need, and hold there until it issues further guidance. A lockfile with hashes would have limited the damage here. For another recent case of attackers targeting developer tooling, see our report on an AI supply chain attack on developer tools.

Is the project dead?

No. Microsoft states that Agent Framework has not been discontinued, and it calls the offline repository a necessary precaution while it works to restore access quickly. The post says general help is available through the project's Discord channel, and users of Agent Framework with Microsoft Foundry are directed to Azure Support. Microsoft's post points to the PyPI advisory PYSEC-2026-4388 for full technical details.

What to watch next

Three things will tell you how this ends. First, a restoration date for the repository, which Microsoft has not given. Second, a published root cause explaining how the unauthorized uploads were possible, since the vendor's post does not say. Third, whether PyPI or Microsoft publish an install count so teams can judge their exposure.

Until then, pin your dependencies, audit CI logs for the 17 November window, and keep a rotation plan ready. If your build system installs packages without a lockfile, fix that this week.

Frequently asked

Written by Said Dulevic

Our international desk covers the infrastructure, policy and people behind the technology shaping the world. Tips and corrections: newsroom@globalpulsedaily.com

More from this author

0 comments

Never published.
A quick check that you are not a script.
Comments are moderated. Links, contact details and abuse are removed.

No comments yet — be the first.