Brief · Both
Microsoft's agent-framework package on PyPI shipped a credential stealer for about an hour
Update, Nov 20, 2026: Wiz has updated its post with a root cause. The attacker appears to have compromised a client certificate and private key for Microsoft ESRP (Engineering System Release Pipeline), the internal service Microsoft uses to sign and publish this package. Wiz says the first publish attempt, from AWS, was rejected by ESRP's IP filtering, and a second attempt from Microsoft-owned IP space succeeded. How the credentials were obtained is not yet known. Wiz could watch part of this because the attacker's tooling reported its own progress to the same public webhook it used for the stolen data. That tooling identifies itself as Cairn, an open-source AI penetration-testing framework, and it staged the package at /tmp/cairn_pkg. Wiz also went through the 50 captured requests: four came from the attacker's machines and the attack process, 29 appear linked to sandboxes, vendor scanning and tests, and the remaining 17 represent three unique, successful cases of victim data being stolen. Microsoft hasn't publicly confirmed Wiz's account. Its statement to The Register on Nov 18 said only that it had made some repositories private while it investigates malicious content.
On Nov 17, two releases of agent-framework, the Python package for Microsoft Agent Framework, went up on PyPI with a credential stealer inside, according to Wiz and a GitHub security advisory. Version 1.26.1 landed at 3:35 PM ET and 1.26.2 followed 33 minutes later, and Wiz says both were gone from PyPI by 4:30 PM ET. The last clean release is 1.26.0. That's a short window, but Wiz puts the package at about 41,000 downloads a week, and the payload goes straight for the cloud and CI credentials that people building agents tend to have lying around.
If you never installed 1.26.1 or 1.26.2, pin 1.26.0 and move on. If you did, the removal from PyPI doesn't help you, so treat that machine or build runner as exposed.
What the malicious versions did
Both wheels drop a .pth file into site-packages, agent_framework_meta.pth in 1.26.1 and af_runtime_diag.pth in 1.26.2. Python runs those on every interpreter start, so the stealer runs whenever Python starts in that environment, even if nothing ever imports agent_framework. It's the same trick the poisoned LiteLLM release used last month, and Wiz says the file and function names are dressed up to look like SDK telemetry.
The stealer is built for Azure shops. Per Wiz and the advisory, it grabs environment variables with names containing strings like TOKEN, SECRET, KEY, AZURE, AWS, GITHUB and OPENAI, reads secret-looking values from other processes' environments, and collects credential files including Azure CLI, .npmrc, .netrc, .git-credentials, Docker config and Hugging Face tokens. It also asks Azure's metadata service for managed-identity tokens, and it requests Azure DevOps OIDC tokens when a pipeline exposes them. Version 1.26.2 adds GitHub Actions OIDC tokens, which Wiz notes can be exchanged for Azure access wherever an Entra ID federated credential trusts the workflow, with no stored secret needed. Everything goes out in one HTTPS POST to a URL on webhook.site, a public request-inspection service.
That last detail limits the damage a bit. Wiz says the attacker's webhook.site URL was on the free tier and that a maximum of 50 requests were captured, and those requests can contain working cloud, CI and registry credentials. The three victims Wiz found are only the ones in those stored requests, so if you installed either version, act as if your credentials were taken.
Wiz's original post noted there was no matching tag or release in Microsoft's repo, the main branch didn't contain the malicious code, and 1.26.1 shipped as a wheel only, while real releases ship a wheel and a source archive together, which suggested it didn't come from Microsoft's usual GitHub release. The update above is Wiz's account of how it got published anyway. GitHub's advisory says it hasn't been attributed to a known campaign.
What to do:
-
Find out whether 1.26.1 or 1.26.2 ever got installed.
- Why: Removal from PyPI doesn't reach copies already sitting in lockfiles, caches, virtual environments or built images.
- How: Wiz says to search lockfiles, CI logs, virtualenvs and container images for
agent-framework1.26.1 or 1.26.2. Runpip show agent-frameworkin each environment you can reach, and pin toagent-framework==1.26.0.
-
Check whether the stealer ran.
- Why: The
.pthhook fires on any Python start, so installing the package was enough. - How: Look in site-packages for
agent_framework_meta.pthandagent_framework_meta/_telemetry.py(1.26.1) oraf_runtime_diag.pthandaf_runtime_diag.py(1.26.2). Wiz warns that searching only for the 1.26.1 names will miss 1.26.2. Then search proxy and DNS logs for the webhook.site URL in Wiz's indicators. Wiz says a 200 response means that host's data was accepted, while a 410 or 429 suggests it was rejected.
- Why: The
-
Rotate everything an affected host or runner could reach.
- Why: GitHub's advisory says anyone who installed either version should treat the environment as exposed and rotate the credentials reachable from it, including CI and GitHub Actions secrets.
- How: Per Wiz, rotate every secret that was in the environment, Azure CLI sessions, Azure DevOps PATs and service connections, npm, PyPI, NuGet, Docker and Hugging Face tokens, git credentials, and the repository and organization secrets exposed to affected CI jobs. Rebuild any image that picked up a bad version from the clean pin.
-
Audit Azure identities and federated credentials.
- Why: Wiz says stolen managed-identity and OIDC-exchanged tokens are valid for up to 24 hours, so you want to know what they were used for, not just rotate around them.
- How: Review sign-in and activity logs for the managed identities and federated credentials reachable from affected VMs, App Services, AKS nodes or Azure DevOps pipelines. For GitHub workflows that installed 1.26.2 with
id-token: write, Wiz says to review the Entra ID federated credentials that trust those repos and workflows, plus sign-ins for the matching app registrations.
Want the next one?
One email, weekly-ish. The week's briefs, how worried to be, and what to do about it. No doom.
Subscribe on Beehiiv ↗Free. Opens Beehiiv in a new tab. Unsubscribe whenever, I won't be offended.Sources
- Wiz: Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelines (Nov 17, 2026, updated Nov 18, 2026)
- GitHub Advisory GHSA-764m-3ppc-5m73: Malicious code in agent-framework (PyPI) (Nov 17, 2026)
- PyPI: agent-framework
- The Register: Microsoft's official Python agent framework hijacked to distribute malware (Nov 18, 2026)