MOSIR
No. 29 · Free Published by MOSIR

No. 29 · Nov 19, 2026 · The lead

A stolen signing key let attackers ship Microsoft's agent-framework with a stealer

Two poisoned releases of Microsoft's agent-framework Python package, 1.26.1 and 1.26.2, were on PyPI for about an hour on Nov 17 and stole cloud and CI secrets; Wiz counted three confirmed victims.

By the Local Intelligence Wire desk · Wimberley, Texas ·

Wiz reported that two malicious versions of agent-framework, Microsoft's official Python library for building AI agents, were published to PyPI on Nov 17: 1.26.1 at 20:35 UTC and 1.26.2 about half an hour later. Both were gone by about 21:30 UTC. Version 1.26.0 from Nov 12 is the last clean release.

The payload was a .pth startup file, which Python runs every time it starts, so the stealer ran even in programs that never imported the library. It collected secret-looking environment variables, Azure CLI, npm, pip, git, Docker and Hugging Face credentials, Azure DevOps and managed-identity tokens, and, in 1.26.2, GitHub Actions identity tokens, and posted them to a webhook.site address. Wiz says the free webhook account capped what was captured at 50 requests, of which 17 came from three real victims.

Wiz's root-cause analysis says the attacker appears to have used a stolen client certificate and key for Microsoft's own release pipeline (ESRP): a first upload from AWS was blocked by IP filtering and a second from Microsoft-owned address space went through. How the credential was taken is not known. Microsoft had not published its own account as of Wiz's Nov 18 update; Wiz says it reported the issue on Nov 17 and the versions were quarantined. Endor Labs and OX Security published matching analyses.

The method mirrors the LiteLLM 1.107.0 attack of Oct 21 and the earlier durabletask compromise: a trusted publisher's release channel, a startup hook and a short window that still reaches automated builds.

Why it mattersAgent frameworks are installed on the same machines that hold model keys and cloud tokens, and any project that installs the newest version automatically could have pulled the stealer during that hour.

For consultantsConsultants should search client lockfiles, build logs and container images for agent-framework 1.26.1 or 1.26.2, pin to 1.26.0, and rotate every secret on any machine or CI runner that installed either version.

Sources

Read the full Nov 19, 2026 edition