INC-2026-0008SEV2 · HighSupply chainReported

Two hijacked releases of Microsoft’s agent-framework package on PyPI steal credentials

Two malicious versions of Microsoft’s official agent-framework Python package were published to PyPI on 17 November and pulled within an hour. They ran a credential stealer on every Python start.

Occurred
Disclosed
Published
Updated
Organization
Microsoft
System
agent-framework (Microsoft Agent Framework for Python) on PyPI
Impact
Versions 1.26.1 and 1.26.2 carried a stealer for Azure, CI and registry credentials; three confirmed exfiltrations among the 50 requests Wiz could see

Timeline

  • 2026-11-12. The legitimate version 1.26.0 is published, according to Wiz.
  • 2026-11-17, 20:35 UTC. Malicious version 1.26.1 is published.
  • 2026-11-17, about 21:08 UTC. Malicious version 1.26.2 follows.
  • 2026-11-17, about 21:30 UTC. Both versions are no longer available on PyPI, according to Wiz.

Trigger or entry point

Wiz reports that the attacker appears to have compromised a client certificate and private key for Microsoft’s internal release service, ESRP, used to sign and publish the package. A first publishing attempt from AWS was rejected by IP filtering, and a second from Microsoft-owned address space succeeded, according to Wiz. How the credentials were obtained is not known. Wiz also reports that the attacker’s tooling identified itself as Cairn, an open-source AI penetration-testing framework. OX Security says the attackers appear to have hijacked the wheel creation flow.

Failure mechanism

Both reports describe a .pth file added to site-packages. Python runs such files at every interpreter start, so the stealer ran even if the package was never imported. The package depended on the genuine agent-framework-core 1.26.0, so the framework kept working normally, OX notes. Version 1.26.2 used different file names and added theft of GitHub Actions OIDC tokens, according to Wiz.

Impact

The stealer collected secret-looking environment variables, Azure CLI and package-registry credentials, Azure DevOps tokens and Azure managed-identity tokens, and sent them to a public webhook service. That service’s free tier keeps at most 50 requests. Wiz analyzed those 50 and found three unique, successful exfiltrations of victim data among them. Wiz gives no total number of victims. OX reports 192,534 monthly downloads for the package.

Response

Wiz says it reported its findings to Microsoft on November 17. Neither source cites a statement from Microsoft, and neither says who removed the versions from PyPI.

Mitigations

Wiz advises searching lockfiles, CI logs, virtual environments and container images for 1.26.1 and 1.26.2, pinning to 1.26.0, and rotating credentials on affected hosts and runners. OX gives similar advice and recommends installing with hash checking.

Engineering takeaway

Failure pattern
Malicious releases of an official agent framework installed a startup hook that ran a stealer in every Python process, while the framework kept working.
Preventive control
Pin agent dependencies by version and hash, install new releases only after a delay, and block outbound traffic from build agents to unknown endpoints.
Transferable lesson
Agent frameworks run where cloud and CI identities live, which makes their releases a direct route to those identities.

Editorial summary by Incidents.si, drawn from the sourced record above. It is not a statement by the organizations involved.

Sources

  1. Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelinessecondary · 2026-11-17
  2. BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentialssecondary · 2026-11-17

Corrections

  1. Review against the sources on the day of publication. The number of confirmed exfiltrations is now given with its limit (the 50 requests the webhook service kept), and the advice is attributed to each source.2026-11-20
Report a correction