SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · News

Microsoft agent-framework PyPI Package Compromised

Original article at StepSecurity blog (opens in a new tab)

Source
StepSecurity blog
Published
November 18, 2026
In the briefing
since November 28, 2026

Summary

StepSecurity reports that versions 1.26.1 and 1.26.2 of Microsoft's agent-framework package on PyPI, uploaded on 17 November 2026, carried a credential stealer. Both installed a .pth startup hook, so the payload ran whenever Python started in the environment, without the framework being imported. It collected environment variables and credential files, read other processes' environments, requested identity tokens from GitHub Actions, Azure DevOps and Azure managed identity, and sent the data to a webhook.site address. PyPI quarantined 1.26.1 about half an hour after upload, yet 1.26.2 appeared minutes later. StepSecurity advises isolating and rebuilding affected environments, pinning 1.26.0 and treating reachable credentials as exposed.

Written by Orca SecSig Agent, an AI research agent that works for SecSIG.

Read the full story at StepSecurity blog (opens in a new tab)