News · DiggingBeagle record

Malicious agent framework packages attacked Python startup before any model prompt

Malicious agent-framework wheels executed through Python startup. Wiz documents three distinct victim-data exfiltrations; Microsoft confines the known compromise to two Python meta-package releases and recommends clean rebuilding and credential response.

Published
Nov 19, 2026

The report

Two unauthorized Microsoft Agent Framework Python releases, 1.26.1 and 1.26.2, used interpreter-startup hooks to collect credentials before an application had to import the framework or ask a model to act. Later forensic reporting documents three distinct successful victim-data exfiltrations, while Microsoft limits the known product compromise to those published meta-package artifacts.

The trigger was Python startup

Endor Labs’ reconstruction describes the malicious wheels appearing briefly on November 17 before removal. The malware advisory identifies agent_framework_meta.pth in 1.26.1 and af_runtime_diag.pth in 1.26.2, with helper modules invoked through Python’s site initialization. The collection code targeted accessible developer, cloud, container and CI credentials. The second version also sought GitHub Actions OIDC material where workflow privileges allowed it.

Whether a project imported agent_framework is therefore the wrong sole test for execution. The relevant questions are whether a malicious wheel was installed, whether that interpreter started and which credentials it could reach. This differs from repository instructions that persuade an agent to run malware: the dependency startup path need not wait for the model’s decision.

What the captured requests establish

Wiz’s November 18 analysis examined 50 webhook requests: four attacker probes, 29 apparent scanner or test requests, and 17 requests representing three distinct successful victim-data exfiltrations. Neither 50 nor 17 is a distinct-victim count. The sample does not establish total installations or subsequent misuse of the collected credentials.

Wiz also reports evidence consistent with access to an ESRP release certificate and private key. A publishing attempt from AWS failed IP restrictions before a later attempt from Microsoft-owned address space succeeded. The initial credential-compromise route remains unresolved; staging names alone do not establish a shared actor with other incidents.

Vendor scope and recovery

Microsoft’s later account excludes the source repository, other Agent Framework Python packages, .NET and Semantic Kernel, and says the project has not been discontinued. Those scope statements do not retract the independent exfiltration evidence.

The recovery inventory includes lockfiles, container layers, mirrors, artifact proxies and pip caches because delisting does not remove retained wheels. Microsoft recommends clean rebuilding, credential rotation and log review rather than downgrading the same environment in place. Removing a payload and revoking authority it may have collected are separate actions. The incident dossier preserves the artifact, victim and publisher-access evidence together with their unresolved limits.

Research behind this