ToolNavs Find Useful AI Tools
Submit Sign in
Back to AI information
Microsoft's agent-framework Poisoned: Two PyPI Releases Stole Azure Credentials

Microsoft's agent-framework Poisoned: Two PyPI Releases Stole Azure Credentials

AI information • Admin • • 13 views

The PyPI package for Microsoft's open-source agent framework, agent-framework, was found poisoned on November 17: versions 1.26.1 and 1.26.2 shipped with credential-stealing code that runs automatically whenever Python starts, sending keys from Azure and CI environments to an address controlled by the attacker. Security firm Wiz disclosed the incident the same day, by which time both versions had already been taken down within about an hour; anyone who has not upgraded should check their installed version right away.

What the Two Malicious Releases Looked Like, and What They Took

Version 1.26.1 was published at 20:35 UTC, followed by 1.26.2 at 21:08. Both write a .pth startup hook on install: the first via agent_framework_meta.pth, the second via af_runtime_diag.pth. Once triggered, the stealer scans environment variables and local credential files, matching keywords such as TOKEN, SECRET, KEY, AZURE, AWS, GITHUB, and OPENAI, and actively requests Azure managed-identity tokens; 1.26.2 added GitHub Actions OIDC tokens. Stolen data was compressed, Base64-encoded, and sent in a single POST to a free webhook.site endpoint. Wiz notes the free endpoint could capture at most 50 requests, so the actual victim count may be limited; how the two versions were uploaded remains unconfirmed, and Wiz has not linked the incident to the earlier, similar durabletask package case.

Beyond the One-Hour Window, Installation Habits Are the Real Fix

The danger here is not that a model was breached, but that the attackers picked a package name developers install every day. agent-framework is Microsoft's flagship open-source framework for building agents; if someone on a CI pipeline installs a poisoned release by mistake, what leaks is not a single key but the pipeline's whole cloud identity: Azure subscriptions, key vaults, and container registries can all be opened in passing. Similar agent security incidents have happened before — the open-source AI tool Artex the FBI recently warned about is one example. The good news is the window was short: both releases were pulled about an hour after going live, and the exfiltration endpoint had limited capacity. The bad news is that a .pth hook runs on every Python start, so a machine that installed it is compromised even if nobody ever calls the framework.

Teams that use agent-framework should do three things now: confirm the installed version is not 1.26.1 or 1.26.2 — the safe version is 1.26.0; check site-packages for the files agent_framework_meta.pth and af_runtime_diag.pth; and if either is found, remove the package and rotate every credential that may have leaked, including Azure and GitHub Actions tokens. After that, pinning versions and verifying hashes on install remains the cheapest line of defense.

Recommended Tools

More