Skip to content
Start with Identity
News

Poisoned Microsoft Agent Framework releases on PyPI tried to mint Azure and GitHub identity tokens

Malicious agent-framework 1.26.1 and 1.26.2 were published to PyPI on November 17 and quarantined within about 40 minutes. A startup hook harvested credential files and tried to request Azure managed identity, Azure DevOps OIDC and GitHub Actions OIDC tokens. 1.26.0 is the last clean release.

By SWI Community TeamNov 17, 2026Updated Nov 18, 2026

Two malicious versions of agent-framework, the PyPI meta-package for Microsoft Agent Framework, were published on November 17, according to StepSecurity. Version 1.26.1 went up at 20:35 UTC and was quarantined at 21:06; 1.26.2 appeared about two minutes after that and was quarantined at 21:16. Both add a .pth startup hook that runs whenever Python starts, even if the package is never imported. The payload collects environment variables matching names like TOKEN, SECRET and AZURE, reads Azure CLI token caches, .npmrc, .git-credentials, Docker and Hugging Face credentials, and tries to request Azure managed identity tokens and Azure DevOps OIDC tokens; 1.26.2 also tries GitHub Actions OIDC tokens. Data goes to a webhook.site URL. StepSecurity says a maintainer account named vibiret was added before the first upload, and The Register reports 1.26.2 came through Microsoft's official publisher account. Microsoft says it made some repositories private while it investigates.

Why it matters

The payload goes after identity, not just secrets on disk. On a build agent or an Azure VM, the code does not need a stored key: it asks the instance metadata service or the CI runner for a fresh token, and whatever that workload's identity can reach, the attacker can reach until the token expires. Workload identity federation removes long-lived keys, but it does not stop malicious code running inside the workload from requesting tokens.

If any environment installed 1.26.1 or 1.26.2, isolate it before running Python again, rebuild it from a clean image, and pin agent-framework==1.26.0 with a hash. Rotate everything the payload could read, then review managed identity role assignments in Microsoft Entra, Azure DevOps service connections and GitHub OIDC trusts for token use on November 17 and after. On the publishing side, a new maintainer added just before a release is the signal to alert on, and trusted publishing with provenance makes a hand-uploaded wheel stand out. The pattern matches the poisoned LiteLLM release.

Source: StepSecurity, The Register

Last reviewed By SWI Community TeamSuggest a correctionHow we research
Independent analysis. No vendor sponsorship. Editorial policy · Report a correction