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.
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
Related on Start with Identity
- BlogOne ConnectWise app credential opened Microsoft 365 tenants across MSP customers
Huntress found an attacker signing in as the ConnectWise Cloud Backup (formerly SkyKick) Entra app with a stolen app credential, pulling Microsoft Graph tokens
- BlogMicrosoft names Storm-0940 behind ConnectWise app abuse that reached 2,250 Microsoft 365 tenants
Microsoft said on October 21 that China-aligned Storm-0940 used the ARTEX agentic AI framework and stolen ConnectWise application identities to try signing in t
- BlogGitLab's incoming email address is a non-expiring token that commits code and runs CI as you
Aikido Security showed that the personal address GitLab issues for creating issues by email can also open merge requests that GitLab commits in your name and ca
- CVEOver-scoped CodeBuild GitHub token let an attacker ship code in Amazon Q Developer 1.84.0
An inappropriately scoped GitHub token in the CodeBuild configuration for the Amazon Q Developer VS Code extension let an attacker commit code that shipped auto
- CVETrivy release and GitHub Action tags hijacked to steal CI secrets
With credentials left valid by a non-atomic rotation, an attacker shipped a malicious Trivy v0.69.4 and repointed 76 of 77 trivy-action tags to code that dumped
- CVEtj-actions/changed-files tags repointed to dump CI secrets into logs
An attacker repointed tj-actions/changed-files version tags to a commit that read the GitHub Actions runner's memory and printed its secrets into workflow logs.