Microsoft's Agent Framework did not get a bad plugin or a bad dependency this week. Its own front door was picked. At 20:35 UTC on November 17, 2026, version 1.26.1 of the agent-framework package - the PyPI meta-package for Microsoft's official Python SDK for building AI agents - landed on the index carrying a credential stealer. Thirty-three minutes later, 1.26.2 arrived with the same payload under different filenames and a new target: GitHub Actions workflows that deploy to Azure. Both versions were gone from PyPI by roughly 21:30 UTC, after Wiz Research flagged the uploads and a Microsoft Agent Framework maintainer confirmed the removal and an investigation in GitHub issue 10411. The last clean release is 1.26.0, published November 12. For the November arc this Feed has been tracing around agent stacks - runtime containment, fleet accounting, billing rails - this event adds the leg below all of them: the install gate.

How the payload runs

The attack lives entirely in packaging. Installing either malicious version drops a .pth file into the root of site-packages (agentframeworkmeta.pth in 1.26.1, afruntimediag.pth in 1.26.2). Python executes .pth files on every interpreter start, and Python provides no switch to turn that behavior off - so the stealer runs whenever Python starts in that environment, even if nothing ever imports agent-framework. The code is dressed as vendor telemetry: a single-line import in one case titled 'Lightweight runtime diagnostics hook', a user-agent of af-runtime-diagnostics/1, a AFTEL=1 marker so it does not rerun in child processes, and in 1.26.1 a module named _telemetry.py that forks itself into a detached session on start. Aikido notes the .pth trick is not new but keeps firing long after anyone stops reading the install log. Scale: Wiz counted about 41,000 downloads of the package a week; Aikido and SecurityWeek put it around 190,000 a month.

What it takes

The stealer is aimed squarely at the identity fabric around Azure and Azure DevOps. It harvests environment variables whose names match strings such as TOKEN, SECRET, PASSWORD, KEY, AZURE, AWS, GITHUB, OPENAI, HF, FOUNDRY, NPM, PIP, NUGET, SYSTEM, BUILD and AGENT; reads the environments of other processes from up to 300 /proc entries; and grabs up to 60 credential files (80 in 1.26.2): Azure CLI state, .npmrc, pip.conf, .netrc, .git-credentials, .docker/config.json, Hugging Face tokens, Azure DevOps agent .credentials, and .env and JSON files under /app and /workspace. It then mints live tokens rather than only stealing stored ones. With SYSTEMACCESSTOKEN and SYSTEM_OIDCREQUESTURI present, it requests an Azure DevOps OIDC token for api://AzureADTokenExchange. It pulls Azure managed-identity tokens from the instance metadata service for 12 resources spanning ARM, Microsoft Graph, Key Vault, Storage, Cognitive Services, Azure AI and ML, Search, Container Registry, Azure DevOps and the token exchange itself. And version 1.26.2 adds GitHub Actions OIDC requests for api://AzureADTokenExchange and management.azure.com wherever a workflow runs with id-token: write - tokens an Entra federated credential will exchange for Azure access with no stored secret involved. Everything is zlib-compressed, base64-packed into one JSON document and sent in a single HTTPS POST to a hardcoded webhook.site URL. No fallback channel; failures silently ignored.

The way in, and the one-layer defense that held once

Wiz's root-cause update on November 18 at 14:00 UTC is the most consequential part. The attacker compromised a client certificate and private key for Microsoft ESRP, the Engineering System Release Pipeline service that signs and publishes the package. The first publish attempt came from AWS IP space and ESRP's IP filtering rejected it - the control worked. The second attempt came from Microsoft-owned IP space and succeeded. How the signing credential itself was obtained is not yet public. The attacker's tooling identified itself as Cairn, an open-source AI penetration-testing framework: it staged the trojanized package at /tmp/cairnpkg and emitted a CAIRNESRP_PROBE2 connectivity probe, and that same probe traffic reported the operation's progress to the same public webhook - which is how researchers reconstructed the timeline. Before publishing, the operator ran the stealer on their own machine, and that run captured their own AI coding-agent setup: what appears to be the open-source Pi harness backed by a GLM-family model through a local proxy. The person automating credential theft over a software supply chain was, in the captured evidence, themselves running an agentic coding stack. Context check: this is the second Microsoft Python package compromise in 2026 - durabletask was taken earlier in the year through a stolen PyPI token - and Wiz states the two incidents are not linked. Same vendor, two different credential paths inside one year.

The blast-radius math

The exposure window was the stretch between 20:35 and roughly 21:20-21:30 UTC on November 17: any pipeline, container build or laptop that resolved a fresh install in that range ran the payload. What actually got out is unusually well documented. webhook.site's free tier accepts at most 100 requests per unregistered URL and expires the URL after 7 days; the attacker used a free-tier token, and exactly 50 requests were captured. Wiz analyzed them: 4 came from the attacker's own machines and the attack process, 29 look like vendor scanning, sandbox and test traffic, and the remaining 17 represent just three unique successfully exfiltrated victim datasets. A two-release poisoning of a flagship agent SDK produced three confirmed victims - because of a free-tier rate cap, not design. The narrowness is real, but it should not shrink the lesson: the target was live Azure and CI identities - stolen managed-identity and exchanged OIDC tokens remain valid up to 24 hours - and the attacker demonstrably still held publishing access, which is why 1.26.2 could swap filenames and hashes faster than responders could finish searching for 1.26.1.

The disguise

Only the meta-package was touched. All 22 sibling agent-framework- packages, including agent-framework-core, still showed their November 12 releases, and both malicious versions pinned agent-framework-core (with the all extra) to exactly 1.26.0 - so the SDK installed normally, the application kept working, and to any dependency tool the whole thing looked like an ordinary patch release. That is exactly what makes loose requirements dangerous: a project carrying agent-framework>=1.26 picks up the poisoned version on the next install, and Dependabot or Renovate will happily open the upgrade PR. A patch release with an unchanged core pin, aimed at exactly the machines that run agent SDKs, is about as low-suspicion as an update gets. Wiz's blog index also places this in company: a malicious LiteLLM 1.107.0 was uploaded to PyPI and Docker on October 21 with its own credential stealer and a dormant command-and-control capability. Flagship agent tooling is being treated as an attack channel by name.

The response checklist

Condensed from Wiz's guidance. Pin agent-framework to 1.26.0. Search lockfiles, CI logs, virtualenvs and container images for 1.26.1 or 1.26.2. On any machine that installed them, check site-packages for agentframeworkmeta.pth or afruntimediag.pth - the hook files and the .py modules beside them - knowing that any Python process started in such an environment executed the payload. Search proxy and DNS logs for the hardcoded webhook.site path: a 200 answer means that host's payload was accepted, a 410 or 429 means the free-tier cap rejected it. Rotate every credential reachable on affected hosts and runners: environment secrets, Azure CLI sessions, Azure DevOps PATs and service connections, npm, PyPI, NuGet, Docker and Hugging Face tokens, git credentials. Audit Azure managed identities and federated credentials reachable from affected VMs, App Services, AKS nodes and pipelines. And for 1.26.2 specifically, treat GitHub Actions OIDC tokens from workflows granted id-token: write as exposed, and review the Entra federated credentials that trust those repositories and workflows.

For the adoption stack

The Feed's November arc already covers three layers of agent-stack governance: runtime containment (Defender's agent-native protection going GA over Claude Code, Copilot CLI and friends), fleet accounting (Agent 365's usage ledger and Entra Agent IDs), and the billing rail (customer-pay API models and Railway's 740,000-dollar stolen-key invoice). This event is the fourth layer, and the cheapest to get right: the install gate. Runtime scanners are downstream of a .pth hook - Defender's product never loads if the interpreter never runs - and an agent SOC sees the egress rather than the install. Controls worth standing up: hash-pinned lockfiles and a ban on loose ranges in production requirements; no auto-merge of dependency PRs against named trusted-vendor packages without a hash review; a private mirror or index allowlist for framework-level packages, with quarantine on releases that arrive inside days of a refresh; an egress baseline that treats a single-POST exfil pattern toward a public request-inspection host as an alarm; and canary credentials - fake tokens and deliberately named fake environment values in CI images that ping an owned endpoint when read. This class of stealer vacuums by name match, so a canary turns the vacuum into a detection.

The OIDC update matters most for how federation gets pitched. Minting short-lived tokens instead of holding long-lived secrets is still the right default - this event does not change that - but it now carries a modeled risk of its own: the minting environment can be compromised and the minted token stolen in flight, which is precisely what the 1.26.2 code does on purpose. The compensating moves are bounding federated-credential trust per repository and per workflow, auditing token issuance, and keeping lifetimes at hours rather than days. The client pitch is not that federation is over. It is that federation concentrates the moment of trust, and the moment of trust needs its own audit trail.

For the December bench and the January room

The bench installs Python model stacks from PyPI, which is the environment class this payload was written for. Keep the bench boring: no Hugging Face write tokens, no cloud keys, no .env files on the box; rebuild VM images from scratch before each bench round; freeze hash-pinned lockfiles before the enrollment demo weeks and refresh only on announced, hash-checked releases. The tutoring room itself holds little a stealer wants - which is the argument for keeping it that way, and for never sharing credentials between the room's devices and any business-ops machine. One line belongs in the parent packet: an official Microsoft SDK was briefly a credential stealer, so school-facing tool policy already assumes pinned versions, no auto-updates and no unattended accounts on devices students touch.

The closing picture is the arc in one frame: a supply-chain operation built on an AI penetration-testing framework, run by an operator whose own captured environment shows an AI coding agent behind a local proxy, entering through the signing pipeline of one of the world's largest software vendors on the second attempt after an IP filter blocked the first. One control worked; one control was not enough. The boring, layered set - hash-pinned installs, bounded federation, egress baselines, canaries - is what survives contact with an opponent who ships replacements in 33 minutes.

Sources