Two poisoned releases of Microsoft's agent-framework stole credentials — check your lockfile
If you installed Microsoft's agent-framework from PyPI on the afternoon of Tuesday 17 November, that update may have copied your passwords, cloud keys and code-hosting logins and sent them to a stranger. Two fake releas
If you installed Microsoft's agent-framework from PyPI on the afternoon of Tuesday 17 November, that update may have copied your passwords, cloud keys and code-hosting logins and sent them to a stranger.
Two fake releases of the official package — 1.26.1 and 1.26.2 — were live on PyPI for about 40 minutes in total, from 20:35 to 21:16 UTC. PyPI has quarantined both. The last good release is 1.26.0, from 12 November. There is no CVE. This is a supply-chain compromise of a package that gets about 190,000 downloads a month — not a bug in Microsoft's code.
The part that makes this one hard to catch: the stealer did not wait for your code to use the package. Each wheel planted a small startup file that Python reads every time it starts, so any Python command in that environment — including pip itself — ran it again. In 1.26.1 the file was agent_framework_meta.pth; in 1.26.2 it was renamed af_runtime_diag.pth, which reads like harmless diagnostics.
What it collected is exactly what an AI engineering machine holds: environment variables with TOKEN, SECRET, KEY, AZURE, AWS or GITHUB in the name; credential files such as ~/.azure, .npmrc, .netrc, .git-credentials and .env files; Azure and GitHub Actions identity tokens; and Azure managed-identity tokens from the cloud metadata service. It forked into a background process, so deleting the hook file alone does not stop a copy that is already running. Everything it found was compressed and sent in one request to a webhook URL controlled by the attacker.
The window was short, but short was enough. Dependency bots opened upgrade pull requests in downstream repositories within six minutes of the first release. How the attacker got permission to publish has not been explained publicly; JFrog's read is a compromised publishing credential used outside Microsoft's release process.
If you installed 1.26.1 or 1.26.2, work in this order:
- Find it without starting Python. Do not run
pip show agent-frameworkorpip uninstallfirst — both start Python, and Python runs the hook. - Pin the clean release and rebuild from a clean base.
pip install 'agent-framework==1.26.0'in a new virtual environment or a fresh container image, not inside the environment that had the bad versions. - Rotate from a different, clean machine. Assume every secret the environment could see is gone: environment variables, Azure sign-ins and DevOps tokens, npm, PyPI, NuGet, Docker and Hugging Face tokens, saved git credentials, and CI secrets.
- Check your caches. PyPI's quarantine does not reach copies already pulled into an internal mirror, a pip cache, or a container image built that afternoon. Block 1.26.1 and 1.26.2 in your package proxy and rebuild any image made during the window.
This bites agent builders directly. A self-hosted n8n install, a Python agent stack and a CI runner all pull the same packages, and an agent workflow that can sign in and pay — the shift Cequence measured this same week — is worth more to an attacker when its credentials leak. The fix is unglamorous: pin versions, rebuild clean, rotate everything. Do it today, while the window is still narrow.
Sources:
- Microsoft agent-framework PyPI compromise write-up
- OpenSSF entry MAL-2026-20101
- AI security week of 16–22 November 2026
Originally published on whoisalfaz.me.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.