The malicious Microsoft Agent Framework releases 1.26.1 and 1.26.2 executed through Python startup hooks before an application had to import the framework or ask a model to act. The known compromise concerns published Python meta-package artifacts. Microsoft says the source repository, other Agent Framework Python packages, .NET and Semantic Kernel were…
Inspect the ClaimsCase · 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:
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.
Evidence basis: CLM-DB264-AGENT-FRAMEWORK-PYPI-BOUNDARY · CLM-DB264-AGENT-FRAMEWORK-PYPI-MECHANISM · CLM-DB265-AGENT-FRAMEWORK-PYPI-EVIDENCE · CLM-NOV23-AGENT-FRAMEWORK-VICTIM-EXFIL · Endor Labs: Microsoft Agent Framework compromised software supply chain attack · GHSA-764m-3ppc-5m73: malicious agent-framework PyPI wheels and startup hooks · Wiz: Microsoft Agent Framework malicious PyPI releases and observed victim exfiltration
At a glance
An AI framework dependency can execute before the agent begins, crossing the host credential boundary without any model prompt injection.
Read the implicationsThe 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.
Limits and uncertaintyFull account
The malicious Microsoft Agent Framework releases 1.26.1 and 1.26.2 executed through Python startup hooks before an application had to import the framework or ask a model to act. The known compromise concerns published Python meta-package artifacts. Microsoft says the source repository, other Agent Framework Python packages, .NET and Semantic Kernel were unaffected.
Endor Labs and the malware advisory document the two unauthorized wheels, briefly available on November 17. Their .pth artifacts invoked credential-collection helpers during interpreter initialization. Cloud, developer, CI and container credentials were targets; version 1.26.2 added GitHub Actions OIDC collection when workflow privileges allowed it. A prompt-level prohibition would not mediate this host startup path.
Observed exfiltration and remaining attribution gaps
Wiz’s captured webhook analysis separates 50 requests into four attacker probes, 29 apparent scanner/test requests and 17 requests representing only three distinct successful victim-data exfiltrations. The request count is neither an installation count nor a count of later credential misuse. This evidence goes beyond what publication timing or payload analysis alone could establish.
Wiz reports evidence consistent with an ESRP client certificate and private key: a publishing attempt from AWS was rejected by IP restrictions, followed by a successful attempt from Microsoft-owned address space. The initial certificate-compromise route remains unknown. Cairn-named staging artifacts do not prove that the actor was the same as operators in other Cairn investigations.
Product scope and recovery
Microsoft’s clarification says the project has not been discontinued. Its inventory guidance includes installed versions, lockfiles, container layers, mirrors, artifact proxies and pip caches, since delisting cannot remove retained wheels. Whether an affected interpreter started with accessible credentials is a separate question from whether a project imported the framework.
The vendor recommends clean rebuilding, credential rotation and log review rather than downgrading in place. The advisory’s statement that 1.26.0 and earlier were not implicated in this incident is not a guarantee about every future package. The news account follows the dated disclosures; the mechanism belongs to the pre-model execution surface.
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
- supportsMicrosoft confirms Agent Framework source repo not origin of malware; suspension precautionaryprimary disclosure
Opening incident account and Check whether you installed an affected version
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
- supportsWiz: Microsoft Agent Framework malicious PyPI releases and observed victim exfiltrationprimary disclosure
Publishing compromise and Timeline (UTC): ESRP certificate, first rejected AWS attempt and second successful Microsoft IP attempt
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
- supportsWiz: Microsoft Agent Framework malicious PyPI releases and observed victim exfiltrationprimary disclosure
Technical analysis: GitHub Actions OIDC request and audience collection
- supportsStepSecurity: malicious Microsoft Agent Framework PyPI releasesindependent technical reproduction
Version 1.26.2 payload changes and credential harvesting
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
- supportsWiz: Microsoft Agent Framework malicious PyPI releases and observed victim exfiltrationprimary disclosure
Data Analysis of Exfiltrated Data, update November 18 14:00 UTC; 50-request breakdown and three unique cases
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
- supportsEndor Labs: Microsoft Agent Framework compromised software supply chain attackindependent technical reproduction
Technical analysis of Python .pth execution and exfiltration targets; package version and upload chronology
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
- supportsGHSA-764m-3ppc-5m73: malicious agent-framework PyPI wheels and startup hooksindependent technical reproduction
Package, Affected versions, Description and Patched versions
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
- supportsEndor Labs: Microsoft Agent Framework compromised software supply chain attackindependent technical reproduction
Technical analysis of Python .pth execution and exfiltration targets; package version and upload chronology
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
- Nov 26, 2026 · Published version · first publication · revision 288