Malicious Microsoft Agent Framework Versions Target Azure and CI Credentials

· Original article ↗

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

TypeIndicatorContext
SHA10a013e4724c4437cf9b177def1d988113e167539SHA1 hash identified for the 1.26.1 credential stealer file _telemetry.py.
SHA256325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93SHA256 hash identified for the malicious 1.26.2 persistence hook af_runtime_diag.pth.
SHA2563d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9SHA256 hash of the malicious agent_framework 1.26.2 wheel.
SHA25654d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1fSHA256 hash identified for the 1.26.2 credential stealer file af_runtime_diag.py.
SHA256d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110SHA256 hash of the malicious agent_framework 1.26.1 wheel.
URLhxxps[:]//webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bbReported exfiltration endpoint used by both malicious package versions.

MITRE ATT&CK

Vendors

Products

Tools

Related Articles