Microsoft's Agent Framework hit by PyPI supply-chain attack stealing cloud credentials
Attackers published two malicious versions of Microsoft's agent-framework package on PyPI that silently steal cloud credentials from developers' machines; both were quarantined within the hour, and anyone who installed them should rotate exposed secrets.
Hackers compromised Microsoft's official agent-framework package on PyPI, publishing two malicious versions — 1.26.1 and 1.26.2 — on November 17 that silently steal cloud credentials from developers' systems. The package, which sees about 190,000 downloads a month, added a Python .pth startup hook that runs a credential stealer every time Python starts, even if Agent Framework itself is never imported.
The malware harvests environment variables and tokens for services including Azure, AWS, GitHub, Docker, Hugging Face and OpenAI, requests Azure managed-identity tokens, and sends the haul to an attacker-controlled webhook. PyPI quarantined both releases within about 45 minutes; the last clean version is 1.26.0, and the underlying framework code was not changed. It is still unclear how the attackers gained publishing access. Anyone who installed 1.26.1 or 1.26.2 should treat exposed credentials as compromised, isolate affected environments, and rotate secrets.
