If you installed it, read this first
● Affected agent-framework on PyPI, versions 1.26.1 and 1.26.2 only.
● Safe 1.26.0 and earlier. GitHub lists no patched version, so pinning is the fix.
● Uploaded 1.26.1 at 20:35:20 UTC and 1.26.2 at 21:08:39 UTC on 17 November 2026 - 33 minutes apart.
● Removed Both were off PyPI by 21:35 UTC the same evening, with latest back at 1.26.0.
● What to do Rotate every credential that machine could reach. The payload ran on every Python start, so an install is enough - you did not have to use the library.
Two releases of Microsoft's agent-framework package reached PyPI on the evening of 17 November carrying a credential stealer. The report came from Lidor Machluf of Upwind Security, who opened an issue on Microsoft's own repository the same day. A Microsoft maintainer confirmed within the thread that the versions had been pulled from the feed.
The mechanism is the part worth understanding
The payload did not wait to be imported. It installed a .pth file - a Python path configuration file, which the interpreter processes at startup - containing an import statement. That means the code ran on every Python interpreter start on that machine, regardless of whether anything touched agent-framework.
Sit with that for a second. The usual mental model for a malicious dependency is that it runs when your code calls it, so a library you installed but have not used yet feels harmless. A .pth hook removes that assumption entirely. Installing was sufficient. Running an unrelated script in the same environment was sufficient.
The helper then forked and called setsid to detach the child process from the terminal, so the collection ran without an obvious parent.
What it took
| Category | What the report describes |
|---|
| Environment variables | Names matching around thirty patterns including TOKEN, SECRET, PASSWORD, KEY, AZURE, AWS, GITHUB, OPENAI, SYSTEM, CLIENT and IDENTITY |
| Credential files | Including the Azure config directory, .npmrc, .netrc, .git-credentials and the Docker config |
| Other processes | Environments of other running processes, read through /proc |
| Azure identity | Azure DevOps OIDC tokens and SYSTEM_ACCESSTOKEN, plus managed identity tokens from the instance metadata service |
| Added in 1.26.2 | GitHub Actions OIDC tokens and ACTIONS_RUNTIME_TOKEN |
| Not targeted | The AWS credentials file and SSH keys were not collected |
Collected data was compressed, base64 encoded and posted to a webhook.site address. The second release renamed the hook files, which suggests someone iterating rather than a single careless upload.
Why CI is the real exposure
The shape of what was taken points at build pipelines rather than laptops. Azure DevOps OIDC tokens, managed identity tokens from the metadata service, GitHub Actions OIDC tokens and the Actions runtime token are not things sitting on a developer machine. They are what a build agent holds while it is running.
That matters because of how those tokens work. Workload identity federation exists precisely so that pipelines do not store long-lived secrets - the runner requests a short-lived token at the moment it needs one. A stealer that runs on interpreter start inside a pipeline is positioned to take that token during its valid window, and an identity token can be worth far more than the static secret it replaced.
What to do now
Pin agent-framework to 1.26.0 or earlier, since no patched release exists. Then work out whether any machine or runner installed 1.26.1 or 1.26.2 during that 33-minute window on 17 November, and treat every credential reachable from it as exposed - including ones you would not think of, because the payload read other processes' environments rather than only its own.
The issue thread notes it was unconfirmed whether the credential used to upload the packages had been revoked. That is a question for Microsoft rather than for you, but it is the one that decides whether this can happen again to the same package.
Questions people are asking
I installed it but never imported it. Am I affected?
Yes, potentially. The .pth hook ran on every Python interpreter start, not on import. Installing into the environment was enough.
Which version should I pin to?
1.26.0 or earlier. GitHub lists no patched version for this advisory.
Were AWS keys or SSH keys taken?
The report states the AWS credentials file and SSH keys were not targeted. Azure and GitHub identity material was.
How long were the packages available?
The two uploads were 33 minutes apart on 17 November and both were removed the same evening, with the status note timestamped 21:35 UTC.
Sources