What happened. Someone uploaded two poisoned versions of agent-framework, the Python package Microsoft publishes for building AI agents, straight to PyPI (the public Python package store). Wiz says 1.26.1 went up at 20:35 UTC on Nov 17 and 1.26.2 at about 21:08 UTC, and both were gone by about 21:30 UTC. That is roughly a one-hour window, on the opening day of Microsoft Ignite. Wiz puts downloads at about 41,000 a week.
How it works, in plain words. Each bad version drops a small .pth file into the Python install. Python reads those files every time it starts, so the stealer runs even if your code never imports the package. It quietly collects environment variables that look like secrets, credential files (Azure CLI, .npmrc, .git-credentials, Docker config, Hugging Face tokens, Azure DevOps agent credentials, .env files) and Azure managed-identity tokens, then sends them in one request to a webhook.site URL. Version 1.26.2 renamed its files to dodge simple searches and added theft of GitHub Actions OIDC tokens, short-lived tokens that can be swapped for Azure access when a workflow is trusted, with no stored password needed.
What we know about the cause. Not confirmed. Wiz notes there is no 1.26.1 tag in Microsoft's GitHub repo, the main branch has no malicious code, and 1.26.1 shipped as a wheel only, unlike normal releases. That points to an upload made outside the normal release process, possibly with a stolen publishing token. Wiz also says the attacker's free webhook.site URL caps out at 100 requests and logged at most 50, which limits but does not erase the blast radius.
Defender move. Search build agents, CI runners, containers and dev laptops for agent-framework 1.26.1 or 1.26.2, or the files agent_framework_meta.pth and af_runtime_diag.pth. Pin to 1.26.0, rebuild affected environments, and rotate every credential those machines could reach: Azure service principals and managed-identity scopes, Azure DevOps and GitHub secrets, npm/PyPI tokens and AI API keys. Block or hunt for outbound traffic to webhook.site with user-agents af-runtime-diagnostics/1 or runtime-diagnostics/1.
