Skip ke Konten

Malicious Releases of Microsoft's agent-framework Package Stole Credentials at Every Python Start

Cyber Intel Briefing · 21 November 2026
21 November 2026 oleh

Cyber Intel Briefing · 21 November 2026 · 3 min read

Two malicious releases of Microsoft's agent-framework package, which records roughly 190,000 downloads a month, were published to PyPI on 17 November. Version 1.26.1 appeared at 20:35 UTC and 1.26.2 at about 21:08 UTC. Both were removed by about 21:30 UTC, and the last clean version is 1.26.0. The releases ran a credential stealer whenever Python started, and Wiz has confirmed that working credentials were taken. Organisations that may have installed either version should treat affected hosts as compromised, rotate the credentials those hosts could reach, and review how their pipelines select and trust new dependency releases.

Exposure followed installation, whether or not the package was imported

Both releases were wheel-only uploads with no matching source release, and each carried a .pth start-up file. Python executes .pth files when the interpreter starts, so the stealer ran at every Python start regardless of whether the package was imported. In 1.26.1 the file was agent_framework_meta.pth, with a _telemetry.py payload. In 1.26.2 it was af_runtime_diag.pth. The customary reasoning that an unused library carries no exposure therefore does not apply. Any environment that installed the wheel and then ran Python was exposed.

The collection logic was broad. Wiz describes keyword-filtered environment variables, up to 300 /proc/*/environ files and credential files including ~/.azure, .npmrc, .git-credentials, Docker configuration, Hugging Face tokens and Azure DevOps agent credentials. The stealer also requested Azure managed-identity tokens for twelve resources and Azure Pipelines OIDC tokens, and version 1.26.2 added GitHub Actions OIDC tokens. Results were zlib-compressed, base64-encoded and posted to a webhook.site endpoint. Wiz found three successful exfiltrations, and the stolen material included working credentials. The total number of victims is unknown.

The root cause and any link to earlier activity remain unconfirmed

Wiz assesses, with medium confidence and on the basis of a single researcher's analysis, that the attacker compromised a client certificate and key for Microsoft's ESRP signing and publishing pipeline. How that compromise occurred is unknown, and Microsoft has not published a root-cause statement. The connection to earlier activity is also unresolved. The malicious tooling identifies itself as "Cairn", an open-source AI penetration-testing framework seen in the CL-STA-1238 activity reported on 16 November, but Wiz does not attribute the two to the same actor.

Build pipelines, and the identities they hold, are the real target

A stealer on a developer laptop is a serious problem. One on a build agent holding managed-identity tokens offers a route to production. Stolen Azure tokens can remain valid for up to 24 hours, which gives an attacker ample time to move from a compromised package into cloud resources. Signing and reputation controls guard against tampering in transit, but they offer little protection when the signing path itself has been compromised. The pattern is consistent with other supply-chain incidents in the same week, and it should inform how much trust organisations place in a publisher's name.

The response has a forensic element and a structural one. On the forensic side, teams should search package caches, lock files and build logs for agent-framework 1.26.1 or 1.26.2 between 20:35 and 21:30 UTC on 17 November, search for the .pth file names, and look for egress to the webhook.site destination. Any match should trigger rotation of every credential reachable from that host and a review of Azure sign-in and resource logs for the managed identities involved. On the structural side, dependencies should be pinned and hash-verified, new releases should be subject to a cooling-off period before adoption, build-agent egress should be restricted, and workload identity tokens should be scoped as narrowly as each job allows.

The bottom line

Leaders should ask engineering to confirm whether pipelines install the newest version of a dependency automatically or a pinned and reviewed one. They should also seek evidence that build agents cannot request broadly scoped cloud tokens, since such agents should rarely need them at all.

Disclaimer: This briefing is compiled from publicly available sources at the time of writing. Details may be incomplete, may change as investigations progress, or may contain errors. It is general information, not professional advice, and organisations should not act on it without advice specific to their circumstances. If you notice an error, please let us know at correction@cyberteam.one so we can correct it.

Sources
VMware vCenter Zero-Day: China-Nexus Actor Held Access to the Virtualisation Plane for Two Months
Cyber Intel Briefing · 21 November 2026