What happened

Wiz reports that a malicious version 1.26.1 of Microsoft's agent-framework package was uploaded to PyPI at 20:35 UTC on 17 November 2026, followed by 1.26.2 at about 21:08. Both were removed at about 21:30. Wiz says the most recent safe version is 1.26.0.

What the malware does

Installation places a .pth file in site-packages, so the stealer runs every time Python starts, even if the package is never imported. It goes after environment variables with secret-like names (Azure, AWS, GitHub, OpenAI, npm), credential files, Azure DevOps OIDC tokens and Azure managed-identity tokens. Version 1.26.2 also targets GitHub Actions OIDC tokens.

Cause and advice

Wiz says the attacker likely obtained a client certificate and private key for Microsoft's ESRP signing and publishing service, but how is unknown. It advises searching lockfiles and CI logs for 1.26.1 or 1.26.2, pinning to 1.26.0, and rotating all secrets in affected environments.

Why it matters

A short window is still enough when CI systems install the newest version automatically. Pinned, hash-checked dependencies and short-lived credentials limit what a release like this can take.

Sources