It ran without an import — two agent-framework releases on PyPI carried a .pth stealer, and a shipped one is a CRA severe incident

Wiz reports that agent-framework 1.26.1 and 1.26.2 were on PyPI for under an hour on 17 November 2026 and dropped a .pth file that ran a credential stealer at every Python start, whether or not the package was imported; the attacker appears to have held a certificate and key for Microsoft's own release pipeline. If such a release ships inside a product with digital elements, CRA Article 14(5)(b) makes it a severe incident with a 24-hour early warning, in force since 11 September 2026.

Post

A .pth file in site-packages. You never imported it, and it ran anyway. That is how two releases of Microsoft's agent-framework on PyPI turned into a credential stealer on 17 November.

Wiz reports two malicious versions, 1.26.1 and 1.26.2, published 33 minutes apart and gone from PyPI by 21:30 UTC. Under an hour live, for a package Wiz says gets about 41,000 downloads a week. Wiz counted three unique successful exfiltrations of victim data. The last safe version is 1.26.0.

Three things I'd take from it if you ship agents in the EU:

  1. Never importing it does not save you. Each release dropped a .pth file, and Python runs those at every interpreter start in that environment. The payload harvested environment secrets, credential files, Azure managed-identity tokens and, in 1.26.2, GitHub Actions OIDC tokens, and posted them to a hardcoded webhook.site address.

  2. The publisher check would have passed. Wiz says the attacker appears to have held a client certificate and private key for ESRP, Microsoft's own release pipeline. How is not yet known. The name on the release was the right one.

  3. If it shipped, it is a reportable incident. Under the Cyber Resilience Act, an incident that leads to malicious code executing in a product with digital elements counts as severe, and since 11 September 2026 the manufacturer owes an early warning within 24 hours of becoming aware. In Germany that goes to CERT-Bund at the BSI.

What I'd do Monday: → search lockfiles, CI logs and images for 1.26.1 and 1.26.2, and pin 1.26.0 → on any hit, rotate every secret that host or runner could read; Wiz notes stolen Azure tokens stay valid for up to 24 hours → add a release-age cooldown for agent dependencies. Both versions were gone inside the hour, so a one-day wait would have skipped them

The dependency closest to your agent is also the one closest to its keys. The safest version of it is usually yesterday's.

What does your resolver install in a release's first hour?

#AgenticCoding #AIAgents #CyberResilienceAct #SupplyChainSecurity #Python

First comment

Sources:

Wiz Research (17 Nov 2026, updated 18 Nov): malicious agent-framework 1.26.1 and 1.26.2 on PyPI; .pth persistence, harvested secrets and tokens, apparent ESRP certificate compromise, remediation steps and IOCs https://www.wiz.io/blog/malicious-version-of-microsofts-agent-framework-published-to-pypi

Cyber Resilience Act, Regulation (EU) 2024/2847 (Art. 14 reporting of severe incidents, Art. 14(5)(b) malicious code) https://eur-lex.europa.eu/eli/reg/2024/2847/oj/eng

BSI (11 Sep 2026): CERT-Bund is Germany's coordinating CSIRT for CRA reports https://www.bsi.bund.de/DE/Service-Navi/Presse/Pressemitteilungen/Presse2026/260911_CRA_Meldepflicht_Schwachstellen.html

Cut for length: Wiz says the attacker's tooling identified itself as Cairn, an open-source AI penetration-testing framework, and that the stealer's test run on the attacker's own machine captured an agent config that appears to be the open-source Pi harness with a GLM-family model. If that holds, an agent published a poisoned agent framework. I found no Microsoft advisory at the time of writing; Wiz says it reported the findings to Microsoft on the 17th.

Claims

Sources

AI disclosure

The video for this edition contains AI-generated media: the narration is a synthetic voice, the cover art and any background imagery are generated, and the brand ident animation is generated. The script, the claims and the source verification are human-authored and human-checked. Assets carry IPTC DigitalSourceType and C2PA Content Credentials.