Skip to content
VECTOR WIREAI INTELLIGENCE
UTC
Home

Hijacked Microsoft agent-framework PyPI releases steal Azure and CI credentials

Versions 1.26.1 and 1.26.2 published 33 minutes apart, live on PyPI ~60 minutes before quarantine.

Two malicious versions of Microsoft's official agent-framework Python package were published to the Python Package Index (PyPI) on November 17, 2026, installing a credential stealer that runs automatically on every Python interpreter start without the package ever being imported4,6.

The compromised releases, versions 1.26.1 and 1.26.2, were published 33 minutes apart. PyPI has quarantined both versions. The malicious package was live on PyPI for approximately 60 minutes2. Security researchers have not explained how the attacker obtained publishing access.

How the payload works

Each malicious wheel adds a .pth file to site-packages, triggering execution on every Python start with no import required. Because the compromised versions pull in the genuine agent-framework-core 1.26.0 as a dependency, the framework continues to function normally, making the compromise easy to miss.

The stealer harvests environment secrets, cloud and package-manager credentials, and Azure managed identity tokens. It targets Azure and Azure DevOps CI build agents, collecting pipeline OIDC tokens, managed identity tokens, and agent credentials. "Both versions install Python startup hooks that silently collect credentials, environment data, and cloud identity tokens, then exfiltrate them to a webhook.site endpoint," Socket said. The exfiltrated data is sent as zlib-compressed, base64-encoded JSON.

Agent-framework is the meta-package for Microsoft Agent Framework, an open-source framework for building and orchestrating AI agents using Python. The package attracts about 190,000 downloads a month. OX Security, which traced the attack, put the figure at 192,534 monthly downloads.

Multiple researchers flagged the compromise

The attack was identified and reported by researchers from Aikido, Chainguard, Endor Labs, OX Security, SafeDep, Socket, StepSecurity, and Wiz. OX Security researchers specifically identified the malicious wheel published as versions 1.26.1 and 1.26.2.

The incident arrives during a week of broader infrastructure stress for Microsoft, which experienced service disruptions as part of a four-day outage streak affecting multiple major technology providers[1]. Separately, the FBI recently warned of hackers using the ARTEX AI penetration-testing framework to breach a cloud environment and harvest AWS access keys and Azure service principal secrets[2].

ANALYSIS The attack's design, executing on Python startup rather than on import, widens the blast radius beyond developers who actively call agent-framework code to any environment where the package is installed, including CI runners and cloud build agents that may hold high-privilege tokens.

Was this useful?

The day’s vector, in your inbox.

Vector Wire Daily: one dispatch each publishing day.