Frameworks for building AI agents are pulled in as external packages, just like other software. On November 17, 2026, versions containing malicious code were published for Microsoft Agent Framework (package name agent-framework) on PyPI. For companies building AI agents into their work, the case shows that where the software that runs agents comes from also needs managing, not just model performance. Based on the GitHub Advisory and PyPI's public information, this article sets out what happened and what users should check.
What happened
According to GitHub Advisory GHSA-764m-3ppc-5m73 (published November 18, updated November 24), the affected versions are agent-framework 1.26.1 and 1.26.2 (GitHub Advisory). The two versions were published on November 17 at 20:35 UTC and 21:08 UTC and have since been removed from PyPI. The last clean version is 1.26.0, and the advisory says 1.26.0 and earlier are not affected.
As of December 5, PyPI shows 1.26.0 (published November 12, UTC) as the latest version, and the two malicious versions are no longer listed (agent-framework on PyPI). The advisory does not mention the attacker, how upload rights were obtained, how many organizations were affected or how much data was actually stolen, and it says the incident has not been attributed to a known campaign.
How the tampered versions behave
According to the advisory, each malicious wheel adds an executable .pth startup hook. Because Python runs .pth files at every interpreter start, the helper code runs as soon as Python starts once the package is installed, even if the package is never imported. An environment where the package was only installed and never used can still be affected whenever Python starts.
The helper code collects environment variables, credential files and tokens available from cloud metadata services, among other things, and sends them out by HTTP POST. Version 1.26.2 also added GitHub Actions OIDC tokens to what it collects.

AI agents often use credentials to connect to external APIs and cloud services. According to the advisory, the collection targets environment variables whose names contain strings such as TOKEN, KEY or SECRET, and specific credential files such as .env and ~/.azure. Both 1.26.1 and 1.26.2 also collect Azure DevOps OIDC tokens and Azure managed-identity tokens. Note that CI environments are in scope as well as developers' machines.
What the advisory asks for
The advisory says anyone who installed 1.26.1 or 1.26.2 should treat the environment as exposed and rotate the credentials reachable from it, including CI and GitHub Actions secrets. This does not mean theft has been confirmed for every user. Since it cannot be confirmed whether data was stolen, the idea is to replace any reachable credentials on the assumption that they were.
What companies in Japan should check
The affected versions were available from 20:35 UTC on November 17 until they were removed. In environments that may have fetched agent-framework during that window, check the following three points.
- Dependency versions: is the installed agent-framework 1.26.1 or 1.26.2?
- Caches: do package caches or internal mirrors still hold a wheel of an affected version?
- CI: did any CI job install an affected version? Azure Pipelines are in scope too, and for 1.26.2, GitHub Actions OIDC tokens as well.
If an affected version is found, rotate the credentials reachable from that environment, as the advisory says. Review how caches are handled as well, so the package is not reinstalled from a cached wheel.
How to handle the dependencies of AI agents
In this case, malicious code was distributed as an update under the legitimate package name. From the user's point of view, they simply fetched a routine update. Environments that pinned the dependency to 1.26.0 did not pick up 1.26.1 or 1.26.2 as updates. Conversely, environments and CI set to fetch the latest version automatically may have picked up an affected version even in the short time it was available.
Because AI agent development often adopts new frameworks quickly, being able to trace which version was pulled in and when, and limiting the credentials kept in agent runtime environments and CI, are what help when you need to work out how far damage may have spread.
Elith builds AI products for enterprises and conducts advanced research, with AI safety and security as its foundation. We share trends in AI safety and security, along with insights from research and practice, through Elith AI Signal. We will continue to follow developments in the AI agent supply chain, drawing on primary sources, and report on them.

