Coding & agents New
Two hijacked releases of Microsoft's agent-framework Python package carried a credential stealer for about an hour on PyPI
Published:
Versions 1.26.1 and 1.26.2 of agent-framework, the PyPI meta-package for Microsoft's Agent Framework for building AI agents in Python, were published on Tuesday evening with a credential stealer. Security firm Wiz says 1.26.1 appeared at 20:35 UTC on 17 November, 1.26.2 followed at about 21:08, and both were gone from PyPI by about 21:30. The last safe version is 1.26.0.
According to Wiz and Aikido Security, each release dropped a .pth file into site-packages, which Python runs at every start, so the stealer ran even if nothing imported the package. Aikido says it went after Azure, Azure DevOps and GitHub Actions secrets, including the OIDC token of workflows allowed to request one, and sent them to a webhook.site address. The package gets about 200,000 downloads a month, Wiz says.
Wiz says the root cause is not confirmed: there is no 1.26.1 tag in Microsoft's repository, and the release was a wheel only, unlike Microsoft's normal releases, which suggests it was uploaded outside the usual release process. Both firms advise anyone who installed either version to pin 1.26.0 and rotate every secret the machine could reach.
Caveat. No statement from Microsoft was found when this edition was checked; the timeline and behaviour come from Wiz's and Aikido's analyses. The compromise falls just before the window that began with the morning edition, which did not carry it, so the window was widened to 21:30 Paris time on 17 November to include it.
Sources