ToolNavs Find Useful AI Tools
Submit Sign in
Back to AI information
Microsoft's agent-framework Poisoned on PyPI: Version 1.26.1 Stole Azure Credentials, Now Removed

Microsoft's agent-framework Poisoned on PyPI: Version 1.26.1 Stole Azure Credentials, Now Removed

AI information • Admin • • 16 views

At 20:35 UTC on November 17, 2026, a malicious version 1.26.1 of Microsoft's Python agent framework agent-framework appeared on PyPI; 33 minutes later, 1.26.2 followed, and both were taken down about an hour later. Security firm Wiz disclosed that evening that the two versions contain a credential stealer: once installed, the malicious code runs every time Python starts, even if you never import the package. The safe version remains 1.26.0.

How it steals

The malicious code persists through .pth files: 1.26.1 drops agent_framework_meta.pth into site-packages, 1.26.2 uses af_runtime_diag.pth instead, and Python loads such files on every start. It targets Azure and CI pipelines: it scans environment variables containing strings like TOKEN, SECRET, PASSWORD, KEY, AZURE, AWS, GITHUB, and OPENAI, reads the environments of up to 300 processes, digs through Azure CLI configuration, .npmrc, pip.conf, .netrc, .git-credentials, Docker configuration, Hugging Face tokens, and Azure DevOps credentials, and also requests OIDC tokens and managed-identity tokens. Stolen data is compressed, encoded, and sent to a hardcoded webhook.site address.

How bad is it

Fortunately, the impact was capped by a free-tier limit: the attacker's webhook.site address, on the free tier, accepts at most 100 requests, and Wiz confirmed that at most 50 were actually captured — though those may already contain usable cloud, CI, and registry credentials. The root cause is still unconfirmed: the GitHub repository has no tag or release for 1.26.1, legitimate releases ship a wheel together with a source package, while the malicious version was wheel-only — suggesting it bypassed the normal release process and was uploaded directly.

What to do now

Teams that use agent-framework have three things to do now: first, pin the version back to 1.26.0 and check lockfiles, CI logs, virtual environments, and images for 1.26.1 or 1.26.2; then look in site-packages for those two .pth files — if present, every Python process in that environment has been hit; finally, check egress logs for visits to that webhook.site address, rotate every credential that may have leaked on affected hosts, and audit Azure managed identities and GitHub Actions OIDC tokens — stolen tokens stay valid for up to 24 hours, so the faster you act, the smaller the damage. Anthropic recently shortened its vulnerability disclosure window to 30 days as well, Anthropic Shortens Vulnerability Disclosure Window to 30 Days — the security window in the AI era is tightening across the board.

Recommended Tools

More