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