Skip to content

Agenda

Menu

Malicious agent-framework Versions on PyPI Target Cloud Credentials in Microsoft Supply-Chain Incident

Two malicious versions of Microsoft’s agent-framework package were uploaded to PyPI on November 17, 2026, adding a credential stealer that could run whenever Python starts in an affected environment. The tainted releases were later quarantined, while researchers and Microsoft continued investigating how publishing access was obtained.

A developer workstation illustrating a compromised Python package and a cloud security incident.
Image: AI-generated illustration.

Two malicious versions of Microsoft’s agent-framework package were uploaded to the Python Package Index (PyPI) on November 17, 2026, in what researchers described as a software supply-chain compromise aimed at stealing credentials and cloud identity tokens. According to reports cited by The Hacker News, the affected releases were versions 1.26.1 and 1.26.2, and both were later quarantined on PyPI.

The package is the meta-package for Microsoft Agent Framework, an open-source Python framework for building and orchestrating AI agents. Researchers said the malicious releases installed Python startup hooks so the stealer could run whenever the Python interpreter starts in an affected environment, even if the package is not explicitly imported.

What the malicious code targeted

The reports say the malware was designed to collect environment variables, credential files and cloud identity data. The extracted information could include files tied to Azure CLI, npm, pip, Docker, .netrc, Git credentials, Hugging Face, Azure DevOps agents, and local .env or JSON files. The code was also described as capable of requesting Azure managed-identity tokens, Azure DevOps OIDC tokens and, in version 1.26.2, GitHub Actions OIDC tokens.

Researchers said the collected data was saved into a JSON document, compressed, Base64-encoded and then sent in an HTTPS POST request to a hard-coded webhook.site address. One report cited by The Hacker News said the package could also query Azure instance metadata through the local IMDS address.

Versions and response

The article says versions 1.26.1 and 1.26.2 were published 33 minutes apart on November 17. It remains unclear how the attacker obtained publishing access to the package. Users were advised to isolate affected hosts, pin the package to version 1.26.0, restore from a clean environment, review logs for requests to the listed webhook.site URL, and rotate exposed credentials from a clean system.

Microsoft later said it had made some repositories private while investigating the incident. A company spokesperson told The Hacker News that the priority was to protect customers and the broader ecosystem. In a later update cited by the publication, Microsoft also said the malicious code was in the published packages rather than the repository itself, and that versions 1.26.0 and earlier, .NET packages and Semantic Kernel were not affected.

Sources

This summary was prepared from the source report with AI assistance and published after automated quality checks. How we use AI

If you notice an error in this story, you can request a correction.