{
  "url": "https://tldrcve.com/agent-framework-pypi/",
  "json": "https://tldrcve.com/agent-framework-pypi.json",
  "verdict_label": "Incident",
  "scare_label": "Severe",
  "slug": "agent-framework-pypi",
  "kind": "incident",
  "name": "agent-framework",
  "aliases": [
    "agent-framework",
    "agent_framework",
    "microsoft agent framework",
    "maf",
    "pypi",
    "python",
    "pip",
    "agent_framework_meta.pth",
    "agent_framework_meta",
    "af_runtime_diag.pth",
    "af_runtime_diag",
    ".pth",
    "webhook.site",
    "credential stealer",
    "infostealer",
    "supply chain attack",
    "esrp",
    "azure",
    "managed identity",
    "github actions oidc",
    "azure devops",
    "1.26.1",
    "1.26.2",
    "mal-2026-20101",
    "ghsa-764m-3ppc-5m73",
    "pysec-2026-4388",
    "cairn"
  ],
  "cves": [],
  "ghsa": [
    "GHSA-764m-3ppc-5m73"
  ],
  "product": "Microsoft Agent Framework",
  "disclosed": "2026-11-17",
  "updated": "2026-11-30",
  "verdict": "if",
  "tile_line": "Stole cloud and CI secrets. Live under an hour, 17 Nov.",
  "tldr": "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.",
  "summary": "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.",
  "incident": {
    "checks": {
      "confirmed": {
        "state": "yes",
        "cite": [
          1,
          5
        ]
      },
      "taken": {
        "state": "yes",
        "cite": [
          4
        ]
      },
      "reach": {
        "state": "yes",
        "cite": [
          1,
          4,
          9
        ]
      },
      "entry": {
        "state": "part",
        "cite": [
          4,
          3,
          5
        ]
      },
      "contained": {
        "state": "part",
        "cite": [
          2,
          3,
          4
        ]
      }
    }
  },
  "root_cause": {
    "tags": [
      "supply-chain"
    ],
    "text": "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.",
    "cite": [
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      13
    ]
  },
  "timeline": [
    {
      "date": "2026-11-12",
      "who": "record",
      "text": "Microsoft publishes agent-framework 1.26.0, the last clean release and still the newest on PyPI on 30 Nov 2026.",
      "cite": [
        2,
        1
      ]
    },
    {
      "date": "2026-11-17",
      "who": "record",
      "text": "20:35 UTC: malicious 1.26.1 is uploaded as a wheel only. PyPI quarantines it at 21:06 UTC.",
      "cite": [
        1,
        3
      ]
    },
    {
      "date": "2026-11-17",
      "who": "record",
      "text": "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.",
      "cite": [
        1,
        3,
        4
      ]
    },
    {
      "date": "2026-11-17",
      "who": "record",
      "text": "23:18 UTC: the Python Packaging Authority publishes advisory PYSEC-2026-4388 for both versions.",
      "cite": [
        13
      ]
    },
    {
      "date": "2026-11-18",
      "who": "record",
      "text": "GitHub publishes malware advisory GHSA-764m-3ppc-5m73, from the OpenSSF malicious packages record MAL-2026-20101.",
      "cite": [
        1
      ]
    },
    {
      "date": "2026-11-18",
      "who": "official",
      "text": "A Microsoft spokesperson tells The Register it has made some repositories private while it investigates malicious content, without naming them.",
      "cite": [
        5
      ]
    },
    {
      "date": "2026-11-18",
      "who": "press",
      "text": "The Register reports that the agent-framework GitHub repository is offline.",
      "cite": [
        5
      ]
    },
    {
      "date": "2026-11-18",
      "who": "record",
      "text": "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.",
      "cite": [
        4
      ]
    },
    {
      "date": "2026-11-30",
      "who": "record",
      "text": "The microsoft/agent-framework repository still returns \"not found\" on GitHub when we check. We found no root cause or advisory from Microsoft.",
      "cite": [
        12
      ]
    }
  ],
  "status": {
    "exploit": "none",
    "attacks": "seen",
    "kev": null,
    "scare": 3.1
  },
  "status_cite": {
    "exploit": [
      1
    ],
    "attacks": [
      1,
      4
    ],
    "kev": [
      10
    ]
  },
  "affected": [
    {
      "label": "You installed 1.26.1 or 1.26.2",
      "text": "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.",
      "cmd": "find / -path '*site-packages/*' \\( -name 'agent_framework_meta.pth' -o -name 'af_runtime_diag.pth' \\) -type f 2>/dev/null",
      "cite": [
        1,
        3,
        4,
        6,
        7,
        11,
        13
      ]
    }
  ],
  "do": [
    {
      "label": "Search lockfiles, logs and images",
      "text": "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.",
      "cmd": "grep -rnE 'agent[-_]framework.{0,20}1\\.26\\.[12]\\b' --include='*.txt' --include='*.lock' --include='*.toml' --include='*.cfg' .",
      "cite": [
        3,
        4,
        6,
        7
      ]
    },
    {
      "label": "Rebuild, don't clean in place",
      "text": "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.",
      "cite": [
        3
      ]
    },
    {
      "label": "Rotate every secret it could reach",
      "text": "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`).",
      "cite": [
        1,
        4,
        7
      ]
    },
    {
      "label": "Check what stolen tokens could do",
      "text": "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`.",
      "cite": [
        3,
        4
      ]
    },
    {
      "label": "Search outbound logs",
      "text": "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.",
      "cite": [
        1,
        4,
        8
      ]
    },
    {
      "label": "Pin 1.26.0 with hashes",
      "text": "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.",
      "cite": [
        1,
        2,
        3,
        6,
        13
      ]
    }
  ],
  "versions_skip": "There is no fixed release: PyPI removed the two malicious versions, and 1.26.0, the last clean one, is still the newest.",
  "sources": [
    {
      "title": "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",
      "url": "https://github.com/advisories/GHSA-764m-3ppc-5m73",
      "date": "24 Nov"
    },
    {
      "title": "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)",
      "url": "https://pypi.org/project/agent-framework/"
    },
    {
      "title": "StepSecurity: upload and quarantine times, don't start pip in the environment, new maintainer account, tokens and rebuild advice",
      "url": "https://www.stepsecurity.io/blog/microsoft-agent-framework-pypi-package-compromised",
      "date": "18 Nov"
    },
    {
      "title": "Wiz (updated 18 Nov): ESRP certificate and key, rejected AWS attempt, three successful thefts, what it collects, log checks",
      "url": "https://www.wiz.io/blog/malicious-version-of-microsofts-agent-framework-published-to-pypi",
      "date": "17 Nov"
    },
    {
      "title": "The Register: Microsoft made some repositories private while it investigates, agent-framework repo offline",
      "url": "https://www.theregister.com/security/2026/11/18/microsofts-official-python-agent-framework-hijacked-to-distribute-malware/5310858",
      "date": "18 Nov"
    },
    {
      "title": "SafeDep: detection commands, look without starting Python, role of the new maintainer account unclear",
      "url": "https://safedep.io/blog/microsoft-agent-framework-pypi-compromise",
      "date": "23 Nov"
    },
    {
      "title": "JFrog: clean wheel repacked, runs on Linux, macOS and Windows",
      "url": "https://research.jfrog.com/post/agent-framework-hijack/"
    },
    {
      "title": "Socket: file names, hashes and user agents",
      "url": "https://socket.dev/blog/agent-framework-pypi-package-compromised-with-credential-stealer",
      "date": "17 Nov"
    },
    {
      "title": "BleepingComputer: about 200,000 monthly downloads, Microsoft didn't respond",
      "url": "https://www.bleepingcomputer.com/news/security/microsofts-agent-framework-pypi-package-compromised-to-steal-credentials/",
      "date": "18 Nov"
    },
    {
      "title": "CISA KEV catalog: not listed (catalog version 2026.11.27)",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"
    },
    {
      "title": "PyPI: agent-framework-core release history, newest 1.26.0 from 12 Nov (checked 30 Nov)",
      "url": "https://pypi.org/project/agent-framework-core/#history"
    },
    {
      "title": "GitHub: microsoft/agent-framework returns \"not found\" (checked 30 Nov)",
      "url": "https://github.com/microsoft/agent-framework"
    },
    {
      "title": "PyPA advisory PYSEC-2026-4388: agent-framework 1.26.1 and 1.26.2 contain credential-stealing code",
      "url": "https://osv.dev/vulnerability/PYSEC-2026-4388",
      "date": "17 Nov"
    }
  ],
  "changes": [
    {
      "date": "2026-11-30",
      "text": "Published."
    }
  ],
  "orgs": [
    {
      "name": "Microsoft, publisher of Agent Framework",
      "url": "https://learn.microsoft.com/en-us/agent-framework/"
    }
  ]
}
