A Guth Labs publication ↗
Back to News

Wiz reports malicious Microsoft Agent Framework packages on PyPI

Frosted green package cube with an interrupted gold seam inside a cream inspection ring.
AI-generated editorial illustration

Two malicious versions of Microsoft's agent-framework Python package appeared on PyPI on November 17 and were subsequently quarantined, according to a Wiz Research investigation. Version 1.26.1 was uploaded at 20:35 UTC, followed by 1.26.2 around 21:08 UTC; both were unavailable by about 21:30 UTC.

Wiz says the packages contained credential-stealing code that could run whenever Python started in the affected environment, even if the application never imported Agent Framework. The code targeted cloud and developer credentials, including Azure-related access and, in the second version, GitHub Actions identity tokens.

The researchers say the root cause remains unconfirmed. They found no matching 1.26.1 release tag or malicious code in the project's main branch, suggesting the package may have been built outside the normal release process. That is not proof of how the upload access was obtained.

Wiz recommends checking dependency records, build logs and deployed environments for the affected versions, using 1.26.0, rotating exposed credentials and reviewing identity activity.

The incident matters beyond application code: a compromised dependency can expose build-system and cloud access before the application uses its advertised features.

Sources and citations

Revision history

Published .