Malicious Microsoft Agent Framework Versions Target Azure and CI Credentials

Summary
Wiz found malicious PyPI releases 1.26.1 and 1.26.2 of Microsoft Agent Framework that used startup .pth files to steal cloud and CI credentials. Analysis of 50 captured requests identified three successful victim-data exfiltration cases; root cause remains unknown.
Key points
- Malicious versions 1.26.1 and 1.26.2 were uploaded to PyPI on November 17, 2026, and were no longer available by about 21:30 UTC. Version 1.26.0 is identified as the latest safe version.
- The releases used .pth files that run when Python starts, launching the stealer even if agent-framework was never imported.
- The payload collected secret-bearing environment variables, credential files, Azure managed-identity tokens, and Azure DevOps OIDC tokens. Version 1.26.2 also targeted GitHub Actions OIDC tokens in workflows with id-token: write.
- Collected data was compressed, encoded, and sent by HTTPS POST to webhook[.]site; the article says the payload had no fallback channel and failures were not retried.
- Wiz analyzed 50 requests retained by the webhook service and identified three unique successful victim-data exfiltration cases; other requests were linked to the attackers, sandbox environments, scans, and tests.
- Wiz said the attacker appeared to have compromised a client certificate and private key used by Microsoft’s ESRP signing and publishing service; how the credentials were obtained remains unknown.
- Wiz recommends checking lockfiles, CI logs, virtual environments, and images for the affected versions, inspecting for the payload files, rotating exposed credentials, and auditing Azure identities and relevant GitHub Actions workflows.
Article Details
- Attack Vectors
- Malicious versions 1.26.1 and 1.26.2 of Microsoft Agent Framework were published to PyPI after the attacker apparently compromised a Microsoft ESRP client certificate and private key; the exact credential acquisition method is unknown.
- The packages used .pth files to run a credential stealer whenever Python started in the affected environment, without requiring the package to be imported.
- The stealer collected environment variables, local credential files, other processes' environments, and Azure managed-identity tokens. Version 1.26.2 also requested GitHub Actions OIDC tokens in workflows with id-token: write.
- Collected data was compressed, Base64-encoded, and sent by HTTPS POST to a hardcoded webhook.site endpoint.
- Defensive Notes
- Search lockfiles, CI logs, virtual environments, and container images for agent-framework 1.26.1 or 1.26.2; pin to 1.26.0.
- Check site-packages for agent_framework_meta.pth and agent_framework_meta/_telemetry.py, or af_runtime_diag.pth and af_runtime_diag.py.
- Review proxy and DNS logs for the reported webhook endpoint. The article says a 200 response indicates data was accepted, while 410 or 429 suggests it was rejected.
- Rotate exposed environment secrets, Azure CLI sessions, Azure DevOps credentials, package registry tokens, Docker and Hugging Face tokens, and Git credentials.
- Review Azure identity and federated-credential activity. For affected GitHub Actions workflows using version 1.26.2 with id-token: write, treat the specified OIDC tokens and exposed repository or organization secrets as compromised.
Indicators of compromise
| Type | Indicator | Context |
|---|---|---|
| SHA1 | 0a013e4724c4437cf9b177def1d988113e167539 | SHA1 hash identified for the 1.26.1 credential stealer file _telemetry.py. |
| SHA256 | 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 | SHA256 hash identified for the malicious 1.26.2 persistence hook af_runtime_diag.pth. |
| SHA256 | 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 | SHA256 hash of the malicious agent_framework 1.26.2 wheel. |
| SHA256 | 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f | SHA256 hash identified for the 1.26.2 credential stealer file af_runtime_diag.py. |
| SHA256 | d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110 | SHA256 hash of the malicious agent_framework 1.26.1 wheel. |
| URL | hxxps[:]//webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb | Reported exfiltration endpoint used by both malicious package versions. |
MITRE ATT&CK
T1005 · Data from Local SystemThe stealer collected local credential files, environment variables, and other processes' environment data.T1059.006 · PythonThe malicious Python package used Python code in .pth-triggered modules to run the credential stealer when Python started.T1195.002 · Compromise Software Supply ChainThe attacker apparently compromised Microsoft ESRP publishing credentials and used them to publish malicious versions of Microsoft Agent Framework to PyPI.T1528 · Steal Application Access TokenThe stealer requested Azure DevOps and GitHub Actions OIDC tokens that could be exchanged for Azure access.T1552.001 · Credentials In FilesThe stealer collected credentials from files including .npmrc, pip.conf, .netrc, .git-credentials, and Azure DevOps agent .credentials.T1552.005 · Cloud Instance Metadata APIThe stealer requested Azure managed-identity tokens from IMDS or the App Service identity endpoint.T1567.004 · Exfiltration Over WebhookThe stealer exfiltrated collected data by HTTPS POST to a webhook.site endpoint.
Vendors
Products
AzureThe stealer is focused on Azure and Azure DevOps. It collects:Azure DevOpsThe stealer is focused on Azure and Azure DevOps. It collects:GitHub ActionsGitHub Actions OIDC theft. In workflows with id-token: write, it requests OIDC tokens for api://AzureADTokenExchange and https://management.azure.com/.Microsoft Agent FrameworkAt 20:35 UTC on November 17, 2026, a malicious version (1.26.1) of the agent-framework package (Microsoft Agent Framework) was uploaded to PyPI. A second version, 1.26.2, followed at 21:08 UTC. As of 21:30 UTC, both
