
Microsoft's agent-framework PyPI hijack: 41 minutes, three victims
- OrcaNEWOrcaCyber: Inkling 2 Mini Abliterated / Uncensored2026-11-23$0.20 / $0.50 per 1M tokens · 204 tok/s
- thinkingmachinesNEWThinking Machines: Inkling 2 Mini2026-11-21$0.07 / $0.30 per 1M tokens · 231 tok/s
- OrcaNEWOrcaCyber: Hy4 Flash Abliterated / Uncensored2026-11-18$0.07 / $0.28 per 1M tokens · 203 tok/s
- openaiNEWOpenAI: GPT-6.2 Astra2026-11-17$8.00 / $40.00 per 1M tokens · 89 tok/s
- openaiNEWOpenAI: GPT-6.2 Sol2026-11-17$2.00 / $10.00 per 1M tokens · 149 tok/s
- tencentNEWTencent: Hy4 Flash2026-11-16$0.07 / $0.28 per 1M tokens · 169 tok/s
- AlibabaNEWQwen: Qwen4 Max2026-11-16$1.50 / $4.50 per 1M tokens · 94 tok/s
- OrcaNEWOrcaCyber: Ling 3.2 Flash Abliterated / Uncensored2026-11-14$0.60 / $1.80 per 1M tokens · 101 tok/s
- OrcaNEWOrcaCyber: Step 5 Preview Abliterated / Uncensored2026-11-14$2.00 / $5.40 per 1M tokens · 133 tok/s
- GoogleGoogle: Gemini 4 Carbon2026-11-10$2.00 / $10.00 per 1M tokens · 89 tok/s
- AnthropicAnthropic: Claude Fable 5.22026-11-09$8.00 / $40.00 per 1M tokens · 100 tok/s
- OrcaOrcaCyber: GLM 5.3 Abliterated / Uncensored2026-11-04$3.00 / $5.00 per 1M tokens · 99 tok/s
- OrcaOrcaCyber: Hy4 Abliterated / Uncensored2026-11-04$0.80 / $1.60 per 1M tokens · 124 tok/s
- OrcaOrcaCyber: Kimi K3.1 Pro Abliterated / Uncensored2026-11-04$2.00 / $5.00 per 1M tokens · 101 tok/s
- tencentTencent: Hy42026-11-04$0.83 / $2.50 per 1M tokens · 126 tok/s
- OrcaOrcaCyber: MiniMax M3.1 Flash Abliterated / Uncensored2026-10-29$0.80 / $1.60 per 1M tokens · 121 tok/s
- OrcaOrcaCyber: GLM 5.3 Flash Abliterated / Uncensored2026-10-27$0.80 / $1.60 per 1M tokens · 86 tok/s
- openaiOpenAI: GPT-6.1 Terra2026-10-26$1.00 / $5.00 per 1M tokens · 292 tok/s
- OrcaOrcaCyber: Qwen3.8 Flash Next Abliterated / Uncensored2026-10-26$0.80 / $1.60 per 1M tokens · 92 tok/s
- OrcaOrcaCyber: MiMo V2.6 Flash Abliterated / Uncensored2026-10-26$0.80 / $1.60 per 1M tokens · 43 tok/s
On 17 November 2026, two releases of agent-framework — Microsoft's official Python package for building AI agents — were published to PyPI carrying a credential stealer aimed at Azure and CI pipelines. Version 1.26.1 went up at 20:35 UTC and 1.26.2 at 21:08; by 21:17 both were quarantined, and 1.26.0 remains the last safe release. The package runs at roughly 190,000 to 200,000 downloads a month, a figure Wiz, Elastic Security Labs and BleepingComputer each published in slightly different form. Each malicious wheel dropped a .pth file into site-packages, so the stealer ran on every Python interpreter start in an affected environment even if the package was never imported, harvesting secret-named environment variables, credential files and the environments of up to 300 other processes, then trying to mint Azure managed-identity, Azure DevOps and GitHub Actions tokens. Everything went to a single webhook.site address. The archive files this incident under its own severity and confidence grades, alongside the supply-chain and credential-theft entries around it, and the Orca AI Incident Archive holds the full record with its citations.
The record is dated 17 November 2026, a single-day incident, and the archive grades it high severity with confidence A. Both are worth stating plainly at the start, because almost every number below comes from researchers who were watching the package registry in real time rather than from the vendor whose name is on the package.
Two wheels, thirty-three minutes apart
Wiz Research, which published on 17 November and updated its analysis the next day, describes a thin meta-package. The agent-framework wheel contains essentially one module that declares dependencies on agent-framework-core and its siblings; version 1.26.0 had shipped normally on 12 November at 18:25 UTC with a wheel and a source distribution. Both malicious releases shipped wheels only, with no provenance attestation, uploaded by a client identifying itself as RestSharp/106.13.0.0, according to StepSecurity.
The first iteration modified the package's own initialiser. In 1.26.1 the wheel carries agent_framework_meta.pth, whose single line is an import, and a new module agent_framework_meta/_telemetry.py; eight lines appended to the package's __init__.py import that module and call its _start() function. The file and function names, and the user-agent af-runtime-diagnostics/1, are dressed up as ordinary SDK telemetry. Python's site module executes any import line it finds in a .pth file at interpreter startup, which is what decouples the payload from any use of the framework.
The second iteration was written to survive the first one's removal. In 1.26.2 the package initialiser was restored to its clean 1.26.0 content, and the payload moved to a top-level pair: a 23-byte af_runtime_diag.pth importing a 7,658-byte af_runtime_diag.py. StepSecurity notes the operational consequence directly: searching site-packages for the 1.26.1 filenames will miss the second release entirely.
In both, _start() sets an environment marker, _AF_TEL=1, to avoid re-running inside child processes, forks a child and detaches it with setsid(), and falls back to a daemon thread where fork is unavailable. The parent interpreter carries on normally, so the theft adds no visible delay. The payload has no remote-code second stage, no retry loop and no scheduled task; its persistence is the .pth hook itself. Failures are swallowed silently.
The 41 minutes, minute by minute
The precise timestamps come from StepSecurity, which downloaded both quarantined wheels from the PyPI file host and analysed them statically. They pin the window more tightly than the round figures usually quoted, and they show the attacker publishing again two minutes and twenty-three seconds after PyPI removed the first release.

That second upload is the most consequential detail in the incident. PyPI quarantining 1.26.1 did not revoke the publishing access behind it, so the attacker republished with renamed files and expanded capabilities thirty-three minutes after first contact. StepSecurity is careful about what this proves: the continued upload "does not establish whether that access remains available now." Elastic Security Labs, which runs a supply-chain monitor, flagged 1.26.1 as malicious at 20:41 UTC — six minutes after it went live — and published details that evening.
What the stealer went looking for
The collection routine is broad and unglamorous. It grabs host context, then any environment variable whose name contains one of a list of substrings: 31 in 1.26.1, 35 in 1.26.2, per StepSecurity, covering TOKEN, SECRET, PASSWORD, KEY, AZURE, AWS, GITHUB, OPENAI, HF_, FOUNDRY, NPM, PIP, NUGET, SYSTEM, BUILD, AGENT, and in the second release ACTIONS, OIDC, RUNNER and ARM_. It reads /proc/*/environ for the first 300 processes, which is how a stealer picks up secrets belonging to the CI runner rather than to itself.

On disk it matches glob patterns across home directories and /root: Azure CLI token caches, pip.conf, .npmrc, .netrc, .git-credentials, Docker config.json, Hugging Face tokens, Foundry configuration, Azure DevOps agent .credentials files, and .env files under /app and /workspace. The cap rose from 60 files to 80 between releases, with each file limited to 262,144 bytes and captured text truncated at 120,000 characters. Version 1.26.2 added GitHub-hosted runner paths, /home/runner/work/_temp/* and /home/runner/.azure/*.
The active half is what makes this more than a scraper. Both versions request Azure managed-identity tokens from the instance metadata service at 169.254.169.254 or from an App Service identity endpoint, for twelve resources including Azure Resource Manager, Graph, Key Vault, Storage, Cognitive Services, Search, Container Registry, Azure DevOps and api://AzureADTokenExchange. Both post to the Azure DevOps OIDC endpoint, using SYSTEM_ACCESSTOKEN against SYSTEM_OIDCREQUESTURI. Only 1.26.2 attempts GitHub Actions OIDC, using ACTIONS_ID_TOKEN_REQUEST_URL and its token to request JWTs for api://AzureADTokenExchange and https://management.azure.com/ — which requires the job to hold id-token: write and a federated credential to trust the workflow. Elastic makes a useful caveat here: the Azure DevOps request omits the serviceConnectionId parameter that Microsoft's documented flow uses, so it is not clear the request returns a token matching any federated credential.
Everything is zlib-compressed, base64-encoded and sent in one HTTPS POST to https://webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry, with no fallback channel. Press coverage sometimes calls this encryption; it is encoding, and the transport is plain HTTPS.
Fifty requests, three victims
Here the incident becomes measurable, because the attacker used a free-tier webhook.site URL rather than infrastructure of their own. On that tier an unclaimed URL accepts at most 100 requests and expires after seven days. Wiz confirmed the attacker's token was on the free tier and that a maximum of 50 requests were captured.

Four of those requests came from the attacker's own machines and the attack process. Twenty-nine appear linked to sandbox environments, vendor scanning and tests. The remaining seventeen represent three unique, successful exfiltrations of victim data, in Wiz's count — the closest thing to a victim tally that exists publicly. Wiz did not name the victims, and no source in the record does.
How the publishing credentials were taken
This is where established fact stops. Every firm that looked agrees on the mechanism of the payload and the timestamps, and none of them establishes initial access.
• What Wiz reports, as an appearance rather than proof: the attacker appears to have compromised a client certificate and private key for ESRP, Microsoft's Engineering System Release Pipeline, the internal service that signs and publishes this package. Their first publish attempt, from AWS, was rejected by ESRP's IP filtering; a second, from Microsoft-owned IP space, succeeded. Wiz states plainly that how the credentials were obtained is not known.
• What StepSecurity reports: a maintainer account named vibiret was created and added to the project on 17 November, and both wheels lack provenance attestation. StepSecurity's own conclusion is that the available evidence "does not establish the initial access vector, the specific account or credential used, or the uploader's identity," adding that a user-agent string identifies the client a request claims to be, not its operator.
• What The Register reported: that the episode looked like unauthorised access to an administrator account on Microsoft's GitHub organisation, a framing the outlet put in its own subheading. Microsoft's later account does not support that characterisation of the code path, and no researcher in the record attributes the package compromise to a GitHub organisation admin credential.
BleepingComputer, which also names Socket among the firms that documented the attack, wrote that it remained unclear how the attacker gained access, and that Microsoft had not responded to its questions by publication.
The tool that called itself Cairn
One detail in Wiz's root-cause update deserves care, because it is the kind of finding that gets over-read. The attacker's tooling reported its own progress to the same public webhook it used for exfiltration, which is how Wiz could watch part of the operation at all. That tooling identified itself as Cairn, an open-source AI penetration-testing framework: it staged the package under /tmp/cairn_pkg and sent a connectivity probe named CAIRN_ESRP_PROBE2 before publishing.
Self-identification is not attribution. A pentest framework is a tool anyone can run, and its name in a path or a probe string establishes what software was used, not who used it. The same week, Wiz notes, the attacker ran the stealer on their own machine and captured an AI coding agent configuration that appears to be the open-source Pi harness backed by a GLM-family model, routed through a local proxy — an artefact of the attacker's own environment, not of any victim's. We covered a different and unrelated Cairn story in October, when NorForge found internet-exposed Cairn panels being hijacked to run attackers' tasks; nothing in the record connects that campaign to this one.
What changed afterwards
At the time the record was filed, Microsoft had published no advisory; a spokesperson told The Register only that some repositories had been made private while it investigated malicious content, and that protecting customers and the ecosystem was the priority. BleepingComputer reported no response at all by its deadline.
That changed afterwards, and the change is the most useful thing a reader can add to the archive row. On 25 November, Dan Taylor, a principal product architect on the team, published a repository update on Microsoft's developer blog. It apologises for the Agent Framework repository's temporary unavailability, calls the takedown "a necessary precaution," and says there is still no confirmed timeline for restoring access. It states that the malicious code "was in the published packages, not in the repository itself," that 1.26.0 and earlier are not affected, that .NET packages and Semantic Kernel are not affected, and that the framework has not been discontinued. Its guidance is to treat any host, container or CI job that installed either version as compromised, rotate every reachable credential, and rebuild from a clean image rather than downgrading in place.
A GitHub advisory, GHSA-764m-3ppc-5m73, was published at 00:31 UTC on 18 November and updated on 24 November. It carries no CVE, rates the issue critical — a step above the archive's high — and states that the campaign has not been attributed to a known actor. That is a meaningful absence rather than a contradiction: the archive and the advisory are grading the same facts and neither claims to know who was behind it.
Wiz also notes that earlier in the year another Microsoft Python package, durabletask, was compromised after its PyPI token was stolen. It explicitly does not link the two incidents, and the record does not either.
What the record settles, and what it does not
Established, across independent firms and primary documents: two malicious wheels existed for a window of about 41 minutes on 17 November; they executed at Python startup without an import; they harvested credentials and attempted token minting at Azure, Azure DevOps and, in the second release, GitHub Actions; all exfiltration went to one webhook.site URL; PyPI quarantined both; 1.26.0 is clean. Wiz's count of three unique successful exfiltrations is the only public estimate of harm, and it rests on the attacker having used a free tier that capped what could be observed — a higher-tier or self-hosted endpoint would have left no such record.
Not established: who did it, how the publishing credential was obtained, whether the token-minting requests succeeded anywhere beyond those three cases, and how many environments installed an affected version without the request ever reaching the webhook. Elastic's framing is the honest one — if either version touched a build agent or a laptop, assume every secret on that host is gone. Microsoft's repository is still offline, and the record's single-day date describes the compromise, not the end of its consequences.
