← ALL ARTICLESBLACK LEDGER / RESEARCH BRIEFING

Microsoft Agent Framework PyPI Compromise: When a Trusted Package Stole Credentials

Malicious versions 1.26.1 and 1.26.2 of a legitimate Microsoft-associated Python package carried credential-stealing code. What developers need to know about startup hooks and cloud identities.

Evidence review · November 18, 2026: Reporting and disclosures cited below were cross-checked for this editorial summary. The event date may precede the publication date. Investigations distinguish established facts, attributed claims and unresolved questions.

The incident

On November 17, 2026, versions 1.26.1 and 1.26.2 of the legitimate agent-framework Python package were published to PyPI with malicious additions. Researchers reported that the packages introduced .pth startup hooks capable of executing credential-stealing code whenever Python started in an affected environment—even without an explicit import of the framework.

What is established

Multiple independent security teams identified the malicious releases and the GitHub Advisory Database tracks them as GHSA-764m-3ppc-5m73. Both versions were removed from PyPI. Version 1.26.0 was identified as the last known clean release at the time of reporting. The exact initial access route used to publish the packages remained under investigation.

Why this is different

A compromised software dependency can threaten build agents and development workstations before an application reaches production. The reported payload sought accessible secrets and cloud or CI credentials. Merely using Python does not mean an application was affected: exposure depends on whether an impacted package version was installed and executed.

Evidence boundary

The compromise is documented. This report does not establish how many organizations were breached or link the incident to the November 12 Microsoft 365 service outage.

Recommended response

Teams should inspect development and CI environments, lockfiles, installation logs, internal mirrors, and package caches for the two affected versions. An environment that executed the malicious package warrants incident-response review and rotation of potentially accessible secrets; uninstalling alone does not prove those secrets were not exposed.

Sources and further evidence

Editorial standard: Illustrations are conceptual, not documentary images. This reporting does not assert a connection among the incidents described in separate articles.

Editorial note: This is a prepared research article, not a live incident feed. Revisit source links for subsequent corrections or updates.