Microsoft Agent Framework hijacked on PyPI: versions 1.26.1 and 1.26.2 steal credentials
TL;DR Two malicious releases of the agent-framework package collect cloud credentials and tokens every time Python starts.
In plain words: someone published poisoned versions of a popular Python library for building AI agents. Installing it is enough: the malicious code runs whenever Python starts and quietly sends your cloud keys away.
What happened
The Python package of Microsoft’s agent framework got two malicious releases on PyPI, 1.26.1 and 1.26.2. They silently collect cloud credentials and access tokens every time the Python interpreter starts, whether or not the framework is imported.
Who is affected
Any environment that installed agent-framework 1.26.1 or 1.26.2: developer venvs, container images, CI runners.
Why it matters
Agent tooling runs with broad credentials by design. A compromised package at that layer reaches everything the agent can reach.
What to do
- Search every environment (venvs, images, CI caches) for
agent-framework1.26.1 or 1.26.2. - If found: remove it and rotate every credential that machine or pipeline could access.
- Pin versions and hashes (
pip install --require-hashes, lockfiles).