# Hijacked releases of Microsoft's agent-framework Python package stole credentials

2026-11-17 · Security & privacy · Coding agents & editors, Privacy, security & HIPAA

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.

Sources:
- [BleepingComputer: Microsoft's Agent Framework PyPI package compromised to steal credentials](https://bleepingcomputer.com/news/security/microsofts-agent-framework-pypi-package-compromised-to-steal-credentials)
- [InfoWorld: Attackers hijack Microsoft's agent-framework package to steal Azure and CI credentials](https://www.infoworld.com/article/4250167/attackers-hijack-microsofts-agent-framework-package-to-steal-azure-and-ci-credentials-2.html)
- [CSO Online: Attackers hijack Microsoft's agent-framework package to steal Azure and CI credentials](https://www.csoonline.com/article/4250156/attackers-hijack-microsofts-agent-framework-package-to-steal-azure-and-ci-credentials.html)

From MD-dev, https://mddev.health201.com/entry/microsoft-agent-framework-pypi-credential-stealer-2026/ · last verified 2026-11-22
Information, not medical, legal or regulatory advice.
