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

Source: https://startwithidentity.com/blog/2026-11-17-poisoned-microsoft-agent-framework-releases-tried-to-mint-azure-and-github-oidc-tokens/
Last updated: 2026-11-18
License: content by Start with Identity. Cite the source URL.

---

Two malicious versions of `agent-framework`, the PyPI meta-package for Microsoft Agent Framework, were published on November 17, according to [StepSecurity](https://www.stepsecurity.io/blog/microsoft-agent-framework-pypi-package-compromised). 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](https://www.theregister.com/security/2026/11/18/microsofts-official-python-agent-framework-hijacked-to-distribute-malware/5310858) 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](https://startwithidentity.com/glossary/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](https://startwithidentity.com/glossary/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](https://startwithidentity.com/vendors/iam/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](https://startwithidentity.com/glossary/trusted-publishing/) with provenance makes a hand-uploaded wheel stand out. The pattern matches the [poisoned LiteLLM release](https://startwithidentity.com/blog/2026-10-21-poisoned-litellm-1-107-0-shipped-a-credential-stealer-to-pypi-and-docker/).

Source: [StepSecurity](https://www.stepsecurity.io/blog/microsoft-agent-framework-pypi-package-compromised), [The Register](https://www.theregister.com/security/2026/11/18/microsofts-official-python-agent-framework-hijacked-to-distribute-malware/5310858)
