Case · DiggingBeagle record

Malicious Microsoft Agent Framework wheels used Python startup hooks to steal secrets

Endor Labs documented unauthorized PyPI distributions of the Microsoft Agent Framework package in versions 1.26.1 and 1.26.2 that contained a .pth startup artifact, executing code during Python initialization instead of waiting for an AI-agent call.

Published by DiggingBeagle:

Scope

The two malicious agent-framework Python meta-package releases, 1.26.1 and 1.26.2, and environments that started Python with those wheels installed. Microsoft excludes the source repository, other Agent Framework Python packages, .NET and Semantic Kernel from this compromise. Wiz reports three distinct successful victim-data exfiltrations in its captured webhook sample; total installations and later credential misuse remain unknown.

Assessment profile

Assessment method
Setting
production
Exploitation
confirmed in the wild
Evidence
Grade B
Remediation
mitigation available
AI role
AGAINST AI
Basis and provenance

Wiz examined a bounded 50-request webhook record and distinguished three successful victim-data exfiltrations from scanner and attacker probes. That is direct incident evidence beyond an artifact observed in a live package index, while it does not identify the total installed population, later credential misuse or an impact-band denominator.

Assessed Nov 23, 2026 using diggingbeagle.assessment/1.

At a glance

Claims & evidence

CLM-N26-MS-OFFICIAL-SCOPEMicrosoft states that the malicious code was in the two published Python meta-package releases, not the repository, and that other Agent Framework Python packages, .NET and Semantic Kernel were unaffected.supported

Basis: reported finding

Link to claim
CLM-NOV23-AGENT-FRAMEWORK-ESRPWiz reports evidence consistent with possession of a Microsoft Engineering System Release Pipeline client certificate and private key; an AWS-sourced publishing attempt failed IP restrictions and a later attempt from Microsoft-owned IP space succeeded, while the initial credential-theft route remains unknown.supported

Basis: reported finding

Link to claim
CLM-NOV23-AGENT-FRAMEWORK-OIDCWiz and StepSecurity document that malicious agent-framework 1.26.2 added collection of GitHub Actions OIDC material where a workflow had id-token: write, in addition to the earlier cloud, container and developer credentials.supported

Basis: reported finding

Link to claim
CLM-NOV23-AGENT-FRAMEWORK-VICTIM-EXFILWiz Research reports that 50 captured attacker-webhook requests included four attacker probes, 29 apparent testing or scanner requests and 17 requests attributable to only three distinct successful instances of victim-data exfiltration; these request counts are not 50 or 17 distinct victims.supported

Basis: reported finding

Link to claim
CLM-DB264-AGENT-FRAMEWORK-PYPI-BOUNDARYThe malicious component attempted to collect cloud, developer, CI and container credentials, with the two affected versions appearing briefly on November 17 before removal. Publication timing and malicious behavior do not establish the number of installations, successful exfiltration, or how the publishing credentials were compromised.supported

Basis: reported finding

Link to claim
CLM-DB265-AGENT-FRAMEWORK-PYPI-EVIDENCEThe GitHub Advisory Database names both agent-framework 1.26.1 and 1.26.2 as malicious PyPI wheels, describes executable .pth startup hooks and reports that neither has a patched version; versions 1.26.0 and earlier are not implicated in that advisory.supported

Basis: reported finding

Link to claim
CLM-DB264-AGENT-FRAMEWORK-PYPI-MECHANISMEndor Labs documented unauthorized PyPI distributions of the Microsoft Agent Framework package in versions 1.26.1 and 1.26.2 that contained a .pth startup artifact, executing code during Python initialization instead of waiting for an AI-agent call.supported

Basis: reported finding

Link to claim

Implications

An AI framework dependency can execute before the agent begins, crossing the host credential boundary without any model prompt injection.

Controls and mitigations

  • Remove the affected releases, rebuild environments from known-good dependencies and rotate secrets accessible to any interpreter that started with those releases; package removal alone cannot invalidate previously collected tokens.

Unknowns and contradictions

  • The number of downstream installations and which of the three confirmed successful exfiltrations led to subsequent unauthorized credential use remain unestablished.
  • The origin of the Microsoft ESRP client certificate compromise, any further publisher foothold and any relationship to earlier Cairn operators are unproven.

Sources and citation

Material revision history

  1. Nov 26, 2026 · Published version · first publication · revision 288