Poisoned agent-framework PyPI releases stole credentials via Python startup hooks
Two malicious versions of Microsoft's agent-framework package, 1.26.1 and 1.26.2, were published to PyPI on November 17, 2026, and quarantined within about an hour. The malware used .pth files in site-packages, which run whenever the Python interpreter starts, so it executed even without importing the package. It harvested environment variables, credential files, and freshly minted cloud and CI identity tokens, then sent them to an external webhook. Investigators believe the attacker obtained a valid publishing credential for Microsoft's release pipeline, though the wheel was repacked locally before upload. Users who installed either version should check their installed version, pin to 1.26.0, and rotate all credentials visible to affected environments.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in