Severity: High | Priority: 1
On 17 November 2026, two malicious versions of agent-framework, 1.26.1 and 1.26.2, were published to the Python Package Index. This is the official package for Microsoft Agent Framework, an open-source framework for building AI agents. The second version was uploaded about half an hour after the first, after the first had already been quarantined. PyPI has removed both, and 1.26.0 is the last clean release. Any developer workstation, CI/CD pipeline or build server in your network that installed or upgraded agent-framework without pinning a version during that window may have received one of the malicious versions.
The malicious versions add a hidden startup hook that runs whenever Python starts in the affected environment, including during pip installs, test runs, IDE tooling and unrelated scripts, even if the application never uses the framework. The stealer collects environment variables and credential files for Azure, AWS, GitHub, npm, PyPI, Docker, Hugging Face and AI service providers. It also reads secrets from other running processes and requests fresh identity tokens from Azure managed identity and from GitHub Actions and Azure DevOps pipelines. Everything is compressed, encoded and sent to an attacker-controlled endpoint on a public request-capture service. Because the genuine framework keeps working normally, the compromise is easy to miss.
Check whether agent-framework 1.26.1 or 1.26.2 was installed anywhere in your network, including CI caches and container images. Look for the files agent_framework_meta.pth or af_runtime_diag.pth in Python site-packages directories. Remove them, and pin agent-framework to 1.26.0 or a later verified release.
If either version ran, treat every credential reachable from that environment as stolen. Rotate cloud access keys, service principal secrets, repository and package-registry tokens, and AI provider API keys. Review cloud and CI audit logs for activity using those identities since 17 November. Going forward, pin dependencies with hashes, delay adoption of brand-new package releases, and restrict build systems' outbound access to the destinations they actually need.