Source: GitHub Advisory GHSA-764m-3ppc-5m73: Malicious code in agent-framework
Malicious agent-framework releases hit PyPI
Why it matters
Two releases of agent-framework, the PyPI package for Microsoft Agent Framework, carried a credential stealer: 1.26.1 (published 17 November 2026 at 20:35 UTC) and 1.26.2 (21:08 UTC). Both have been removed; 1.26.0 is the last clean release. Each wheel adds a .pth startup hook, so the stealer runs every time Python starts in that environment, even if you never import the package.
Per the advisory it collects secret-looking environment variables, other processes' environments, credential files (~/.azure, .npmrc, .netrc, .git-credentials, Docker config, Hugging Face token, .env files) and Azure DevOps, Azure managed-identity and, in 1.26.2, GitHub Actions OIDC tokens. What to do: search lockfiles, CI logs, virtualenvs and container images for 1.26.1 or 1.26.2; if you find either, remove it, pin agent-framework==1.26.0 and rotate every credential that host or CI job could reach. For agent stacks in general, pin exact versions and install with hashes (pip install --require-hashes) in CI.
Sources
- GitHub Advisory GHSA-764m-3ppc-5m73: Malicious code in agent-framework (opens in new tab) ↗Primary source
- Wiz: Microsoft agent-framework compromised (opens in new tab) ↗
- SafeDep: agent-framework compromised twice on PyPI (opens in new tab) ↗
- Elastic Security Labs: agent-framework PyPI compromise (opens in new tab) ↗