PyPI quarantines two malicious Microsoft package releases


Researchers identified agent-framework versions 1.26.1 and 1.26.2, published on 17 November 2026, as malicious. Endor Labs says their startup hooks run a credential stealer whenever Python starts in an affected environment.
The Python Package Index, known as PyPI, has quarantined two releases of Microsoft’s agent-framework package after security researchers identified them as malicious. The code could expose credentials on developers’ machines and automated build runners.
The package is a meta-package for Microsoft Agent Framework, an open-source framework for building and coordinating superintelligence (SI) agents in Python. The last clean release preceded the malicious uploads by several days.
PyPI says a quarantined release cannot be installed by clients or changed by maintainers and is removed from search and index results. Other releases remain unaffected, but the action does not remove malicious files from environments where they were already installed.
Endor Labs said each malicious package adds a .pth startup file to Python’s package directory. Python executes the file’s import instruction whenever the interpreter starts, including when the pip package installer runs. That starts the stealer even if a developer never imports agent-framework.
Socket said the code collects credentials, information about the environment and cloud identity tokens and sends them to a webhook.site address. Researchers found that it searches environment variables and credential files, including files used by Azure, Git, Docker and package registries, as well as Azure DevOps agent credential files.
The code also requests fresh Azure managed-identity and Azure DevOps federated tokens, which can grant access through a machine or workflow identity. SafeDep said changing stored secrets alone would not cover those tokens. said the later release added requests for identity tokens; where a configured federated credential trusts the workflow, those tokens can be exchanged for Azure access without a stored secret.

Wiz said the attacker’s webhook.site token was on the free tier and that a maximum of 50 requests were captured. Those requests could contain working credentials. The number of installations of the malicious releases and the number of affected users remain unknown; the package’s overall download statistics do not establish either figure.
Wiz gave the following timeline for the releases and their availability on PyPI:
How the attacker obtained publishing access remains unclear. Wiz found no corresponding release tag for the first malicious version in the project’s repository and no malicious code in its main branch. Wiz said this indicates 1.26.1 may have been built outside the normal release process and uploaded directly to PyPI. Endor Labs said both malicious uploads contained only prebuilt packages, unlike the earlier releases it examined, which also included source distributions. Both malicious versions pinned agent-framework-core[all] to 1.26.0.
Wiz advises teams to search dependency records, build logs and environments for the malicious versions and pin the package to the last safe release. Endor Labs advises isolating affected systems before investigating and avoiding Python or pip there, because starting either can run the collector again. It recommends rebuilding from a clean environment.
Researchers also advise rotating exposed credentials from a clean system and reviewing Azure identities, sign-in activity and affected GitHub Actions workflows for possible misuse. Wiz also advises reviewing Entra ID federated credentials that trust affected repositories and workflows, and sign-ins for the matching app registrations.
Pika says its experimental tool lets creators reposition actors, give them notes and steer a camera while a scene plays. Enact is not available for consumer use, but prospective testers and integration partners can contact the company.
2 min

The dictionary chose the sense that distinguishes people’s qualities and feelings from those of gods, animals or machines.
2 min

Energy Minister Awais Ahmad Leghari estimates that customers leaving the grid shifted those costs to remaining users in each of the past 2 years, as households and businesses turned to solar.
3 min