News · Microsoft · 2 min read
Event date: · Published:
Malicious agent-framework PyPI versions steal cloud credentials
Attackers published two compromised versions of Microsoft's agent-framework Python package on PyPI on November 17, 2026, stealing Azure, GitHub, and other credentials before the releases were pulled within about an hour.
Attackers compromised agent-framework, Microsoft's Python package for building AI agents, and published two malicious versions on PyPI on November 17, 2026, each carrying a credential-stealing startup hook before both were pulled within about an hour, according to the agent-framework project page on PyPI.
What changed
- Versions 1.26.1 and 1.26.2 were published on November 17, 2026 at 20:35 UTC and 21:08 UTC respectively, and PyPI now lists both as "Release quarantined".
- The package normally receives roughly 190,000 to 200,000 downloads per month.
- Both versions added a file named
agent_framework_meta.pththat runs automatically every time the Python interpreter starts, even if the package itself is never imported. - The payload harvested Azure, Azure DevOps, and GitHub Actions OIDC credentials and tokens.
- It also collected local credential files, including
~/.azure/*.json,.npmrc,pip.conf,.netrc,.git-credentials, and.docker/config.json, plus Hugging Face tokens and.envfiles. - Both malicious versions were removed from PyPI by 21:30 UTC the same day, with 1.26.2 published about 33 minutes after 1.26.1 was pulled.
What it means for AI builders
agent-framework is Microsoft's own library for building AI agents, so this is a supply-chain compromise of a widely used AI development tool. Anyone who installed version 1.26.1 or 1.26.2, even without importing the package, risked having Azure, Azure DevOps, GitHub Actions, or Hugging Face credentials exfiltrated, as described in Wiz's analysis of the compromised package.
What to do next
Security researchers identify version 1.26.0 as the last known-clean release and recommend rotating credentials in any environment that installed 1.26.1 or 1.26.2, covering Azure, Azure DevOps, GitHub Actions OIDC, npm, pip, Git, Docker, Hugging Face, and secrets stored in .env files.
Sources
- agent-framework project page (release history showing quarantined versions 1.26.1 and 1.26.2) (PyPI, November 17, 2026, official)
- Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelines (Wiz, November 17, 2026)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.