Microsoft's agent-framework Hijacked on PyPI via Silent .pth Startup Hook
The JFrog Security Research team analyzed a supply chain attack targeting Microsoft's `agent-framework` package on PyPI, which receives roughly 40,000 weekly downloads. Rather than compromising Microsoft's build pipeline, the attacker repacked the clean wheel locally and published versions `1.26.1` and `1.26.2` with a `.pth` startup hook that runs a background credential stealer every time Python starts, even when your code never imports `agent_framework`. If you installed either version on a workstation, CI/CD runner, or container image, you must assume your environment and accessible cloud credentials are compromised. ![][image1] Both unauthorized wheel-only releases went live on November
…