← Edition of Friday 20 November 2026

Supply chain · cloud and CI credentials

A poisoned official Microsoft package: cloud secrets stolen every time Python starts

Reading time: 3 min · 5 sources
KEY POINTS

Two releases of Microsoft's official agent-framework package stole cloud and CI credentials from the machines that installed them for less than an hour. The incident directly affects teams building AI agents, often outside the usual security channels.

The facts

Versions 1.26.1 and 1.26.2 were published on PyPI on 17 November at 20:35 and 21:08 UTC and quarantined at 21:06 and 21:16. The second was therefore published after the first had been removed, which shows the attacker kept publishing rights. The last clean release is 1.26.0 of 12 November. The package has 192,534 monthly downloads according to OX Security.

The malicious code is installed as a Python startup file (.pth): it runs every time the interpreter starts, whether the framework is used or not, and the framework otherwise works normally. It collects environment variables whose names suggest a secret, .env files, Azure CLI, pip, npm, Git, Docker and Hugging Face credentials, the environment of up to 300 other processes, and tries to obtain fresh Azure managed-identity tokens and, in the second release, GitHub Actions OIDC tokens. Actual issuance of these tokens is not confirmed. Everything leaves in a single request to a public webhook service.

StepSecurity, Wiz, OX Security, Socket and Aikido published consistent analyses. None explains how the attacker obtained publishing rights on a package that goes through Microsoft's release pipeline; the vendor made no statement in the sources consulted. No actor has been attributed.

Why it matters

AI agent projects move fast, often in teams that install packages day to day on workstations and CI runners with broad cloud rights. A package signed Microsoft inspires trust, and that trust is precisely what was exploited.

The nature of the stolen data changes the response. Beyond passwords and keys, the code tried to obtain federated identity tokens: if such a token was issued, it remains valid until it expires whatever password is changed. Remediation requires a review of federated identities, roles assigned to managed identities and service connections, not just a rotation.

Finally, the case raises the question of public repositories: organisations that install dependencies straight from PyPI, without an internal mirror of approved versions or egress restrictions on build servers, were exposed during the 41 minutes the poisoned releases were available.

What to decide

1Verification: have agent-framework 1.26.1 and 1.26.2 searched for on workstations, images and build servers, along with outbound connections to public webhook services on 17 and 18 November.
2Remediation: if found, rebuild the machines, rotate every reachable secret and review the tokens and federated identities issued since 17 November.
3Governance: decide whether AI tools installed by developers go through an internal repository of approved versions and ephemeral, least-privilege build environments.

Timeline

12 NovRelease of 1.26.0, the last clean version.
17 NovRelease of 1.26.1 (20:35 UTC) and 1.26.2 (21:08 UTC), quarantined by PyPI at 21:06 and 21:16.
18 NovAnalyses published by StepSecurity, OX Security, Wiz, Socket and Aikido.

Sources