Hijacked releases of Microsoft's agent-framework Python package stole credentials
On November 17, 2026, two malicious versions (1.26.1 and 1.26.2) of Microsoft's official agent-framework package appeared on PyPI, the public index that pip installs Python packages from. They were removed within about an hour. According to BleepingComputer and InfoWorld, the stealer used a .pth file, a file Python runs automatically at startup, so it ran even if a program never imported the package. It collected environment variables and credential files for Azure, AWS, GitHub, OpenAI and other services, and requested Azure managed-identity tokens. Both versions still depended on the genuine agent-framework-core 1.26.0, so the framework kept working normally. Version 1.26.0 is the last clean release, and the package gets roughly 200,000 downloads a month.
Why it's notable: Builders who installed agent-framework around November 17 should search lockfiles, local caches and container images for 1.26.1 or 1.26.2, and treat every secret on affected machines as exposed. Pinning exact package versions with hash checking limits this kind of attack.