Incidents

Microsoft's agent-framework package on PyPI shipped a credential stealer in versions 1.26.1 and 1.26.2, live for under an hour on 17 Nov 2026. It ran at every Python start and took cloud and CI secrets. If you installed either, rebuild and rotate. https://tldrcve.com/agent-framework-pypi/

Microsoft, publisher of Agent Framework

agent-framework

IncidentEntry point namedStole cloud and CI secrets. Live under an hour, 17 Nov.

TL;DR

Microsoft's agent-framework package on PyPI shipped a credential stealer in versions 1.26.1 and 1.26.2, live for under an hour on 17 Nov 2026. It ran at every Python start and took cloud and CI secrets. If you installed either, rebuild and rotate.

More details

After PyPI quarantined 1.26.1, the attacker uploaded 1.26.2 two minutes later with the stealer under new file names, so a check for the first file names alone misses it. Wiz could see 50 of the requests sent to the attacker's webhook and counted three successful thefts of victim data among them; it says the uploads appear to have used a stolen certificate and key for ESRP, Microsoft's internal signing and publishing service, which Microsoft hasn't confirmed. Earlier in 2026 another Microsoft Python package, durabletask, was hijacked with a stolen PyPI token; Wiz hasn't linked the two.

How bad is it?

updated 30 Nov
  • Yes: Confirmed on the record1,5
  • Yes: Data, money or secrets taken4
  • Yes: Reached other organisations or the public1,4,9
  • Partly: Entry point named, details missing4,3,5
  • Partly: Partly contained2,3,4

Scare-o-meter

Severe

Wide reach, money or secrets taken, or still open.

What's confirmed

  • On the record Microsoft publishes agent-framework 1.26.0, the last clean release and still the newest on PyPI on 30 Nov 2026.2,1
  • On the record 20:35 UTC: malicious 1.26.1 is uploaded as a wheel only. PyPI quarantines it at 21:06 UTC.1,3
  • On the record 21:08 UTC: the attacker uploads 1.26.2 with the stealer under new file names and adds GitHub Actions token theft. StepSecurity puts its quarantine at 21:16 UTC; Wiz says both versions were gone from PyPI by about 21:30 UTC. Wiz reports its findings to Microsoft the same day.1,3,4
  • On the record 23:18 UTC: the Python Packaging Authority publishes advisory PYSEC-2026-4388 for both versions.13
  • On the record GitHub publishes malware advisory GHSA-764m-3ppc-5m73, from the OpenSSF malicious packages record MAL-2026-20101.1
  • Unnamed official A Microsoft spokesperson tells The Register it has made some repositories private while it investigates malicious content, without naming them.5
  • Press report The Register reports that the agent-framework GitHub repository is offline.5
  • On the record Wiz updates its report: the attacker appears to have used a stolen ESRP certificate and key, and three victims' data reached the attacker in the requests it could see.4
  • On the record The microsoft/agent-framework repository still returns "not found" on GitHub when we check. We found no root cause or advisory from Microsoft.12

Root cause

Supply chain: a trusted third party served it

The attack was entirely in packaging: the malicious wheels were the clean 1.26.0 wheel with a startup hook added, and the source code and dependency were unchanged. Microsoft hasn't said how the attacker got publishing access. Wiz says the attacker appears to have stolen a client certificate and private key for ESRP, Microsoft's internal service that signs and publishes the package; a first upload attempt from AWS was rejected by ESRP's IP filtering and a second from Microsoft-owned address space succeeded. How those credentials were obtained isn't known. JFrog says the attacker repacked the clean wheel locally with a script rather than going through Microsoft's build and release pipeline; that can fit with Wiz's account if the locally built wheel was then submitted through ESRP, but neither says so. Wiz says the attacker's tooling identifies itself as Cairn, an open-source AI penetration-testing framework. The Register described it as apparent unauthorised access to an administrator account in Microsoft's GitHub organisation, without naming a source. StepSecurity notes a maintainer account was created and added to the PyPI project on 17 Nov, and it was still listed on 30 Nov, although PyPA says PyPI Security and Microsoft reviewed the project's accounts and completed remediation steps; SafeDep says its role is unclear, because PyPI doesn't publish who uploaded a file.1,2,3,4,5,6,7,13

Were you hit? only if all are true

1You installed 1.26.1 or 1.26.2command

Only the agent-framework package: the advisories name no other package, and agent-framework-core's newest release is still 1.26.0 from 12 Nov. On 17 Nov 2026, an install that took the newest version got 1.26.1 from 20:35 to 21:06 UTC, and 1.26.2 from 21:08 UTC until it was pulled at about 21:16 to 21:30 UTC (sources differ), including through a loose pin like agent-framework>=1.26. Once installed, the stealer ran at every Python start, even without importing the package, on Linux, macOS and Windows (JFrog says short commands on Windows may exit before it finishes); on Linux it also read other processes' environments. StepSecurity warns against pip show and says running pip in that environment can trigger the stealer, because pip starts Python; that rules out pip freeze too. SafeDep's command below looks for the startup files without starting Python. Our note: Debian and Ubuntu's own Python keeps packages in dist-packages, so search there for the same two file names too; on Windows, look for the same two file names in each site-packages folder.1,3,4,6,7,11,13

find / -path '*site-packages/*' \( -name 'agent_framework_meta.pth' -o -name 'af_runtime_diag.pth' \) -type f 2>/dev/null

Clean up

1Search lockfiles, logs and imagescommand

Environments that are gone, like CI runners, can still have been hit. Search lockfiles and requirements files with this command (a match on another agent-framework-* name is a false alarm; Pipfile.lock keeps the version on its own line, so check it by hand), search CI logs from 17 Nov for agent_framework-1.26.1, agent_framework-1.26.2 agent-framework==1.26.1 or agent-framework==1.26.2, and check container images built that evening. StepSecurity and JFrog also say to check internal mirrors and package proxies, which can keep serving a version after PyPI removed it.3,4,6,7

grep -rnE 'agent[-_]framework.{0,20}1\.26\.[12]\b' --include='*.txt' --include='*.lock' --include='*.toml' --include='*.cfg' .
2Rebuild, don't clean in place

StepSecurity says to isolate the host or runner, not to start with pip uninstall or pip show, and to rebuild from a clean base. Deleting the startup file doesn't stop a collector that's already running.3

3Rotate every secret it could reach

The advisory says to treat the environment as exposed and rotate the credentials reachable from it, including CI and GitHub Actions secrets. It tried to take environment variables whose names contain words such as TOKEN, SECRET, PASSWORD, KEY, AZURE, AWS, GITHUB, HF_, OPENAI, NPM, PIP or CI_ (the advisory's list; Wiz lists more, such as FOUNDRY and NUGET, and for 1.26.2 ACTIONS, OIDC and ARM_); on Linux, other processes' environments; files such as ~/.azure, pip.conf, .npmrc, .netrc, .git-credentials, .docker/config.json, Hugging Face tokens, Azure DevOps agent .credentials and .env files; Azure managed-identity tokens from the instance metadata service; and Azure DevOps tokens. JFrog says the Azure DevOps token request is broken and real Azure DevOps rejects it, but a pipeline's SYSTEM_ACCESSTOKEN still leaks if it's mapped into the step's environment. 1.26.2 also requested GitHub Actions tokens in workflows allowed to (id-token: write).1,4,7

4Check what stolen tokens could do

Rotating stored secrets doesn't revoke tokens the stealer already got. StepSecurity and Wiz say to review Azure sign-in and activity logs, Entra ID federated credentials, managed-identity role assignments and GitHub OIDC permissions, and for 1.26.2, the GitHub workflows that ran with id-token: write.3,4

5Search outbound logs

Look in proxy and DNS logs for webhook.site and the path d381fd80-ec62-42ad-8f5c-d1b15103c9bb, and for the user agents af-runtime-diagnostics/1 and runtime-diagnostics/1. Wiz: a 200 response means the data was accepted; a 410 or 429 means the webhook's 100-request limit had been reached and the data was likely rejected.1,4,8

6Pin 1.26.0 with hashes

1.26.0 is the last clean release and still the newest on PyPI. StepSecurity says to pin agent-framework==1.26.0 in a hash-pinned lockfile and block 1.26.1 and 1.26.2 in your package controls. Lock the whole dependency tree, not just this package: the maintainer account added to the project on 17 Nov was still listed on PyPI on 30 Nov, and SafeDep says it can publish to the sibling packages too and advises holding off on any new release until Microsoft removes it. PyPA's advisory says PyPI Security worked with Microsoft to review the project's accounts and complete remediation steps; that doesn't make machines that installed either version, or secrets they held, safe.1,2,3,6,13

This page shows what's known so far. It can't tell you you weren't hit.

Sources (13) and changelog
  1. GitHub Advisory Database: GHSA-764m-3ppc-5m73 (OpenSSF MAL-2026-20101), versions, upload times, files, what it collects, webhook URL, wheel hashes, what to rotate 24 Nov
  2. PyPI: agent-framework project page, release history (newest 1.26.0 from 12 Nov, no 1.26.1 or 1.26.2) and maintainers (checked 30 Nov)
  3. StepSecurity: upload and quarantine times, don't start pip in the environment, new maintainer account, tokens and rebuild advice 18 Nov
  4. Wiz (updated 18 Nov): ESRP certificate and key, rejected AWS attempt, three successful thefts, what it collects, log checks 17 Nov
  5. The Register: Microsoft made some repositories private while it investigates, agent-framework repo offline 18 Nov
  6. SafeDep: detection commands, look without starting Python, role of the new maintainer account unclear 23 Nov
  7. JFrog: clean wheel repacked, runs on Linux, macOS and Windows
  8. Socket: file names, hashes and user agents 17 Nov
  9. BleepingComputer: about 200,000 monthly downloads, Microsoft didn't respond 18 Nov
  10. CISA KEV catalog: not listed (catalog version 2026.11.27)
  11. PyPI: agent-framework-core release history, newest 1.26.0 from 12 Nov (checked 30 Nov)
  12. GitHub: microsoft/agent-framework returns "not found" (checked 30 Nov)
  13. PyPA advisory PYSEC-2026-4388: agent-framework 1.26.1 and 1.26.2 contain credential-stealing code 17 Nov