Skip to content
NewA calmer, faster ZeroHour

Attackers hijack Microsoft Agent Framework on PyPI to steal credentials

Original title: Attackers hijack Microsoft’s agent-framework package to steal Azure and CI credentials

CSO Online ()4 min read
Part of a story covered by 9 sourcesPyPI quarantines malicious Microsoft agent-framework 1.26.1 and 1.26.2Merged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

Malicious versions 1.26.1 and 1.26.2 were live under an hour on November 17 and ran whenever Python started.

Attackers published two malicious versions of Microsoft’s official Agent Framework package on PyPI on November 17, according to OX Security and other firms. Versions 1.26.1 and 1.26.2 harvested environment secrets, cloud and package-manager credentials, and Azure managed identity tokens, then sent them to a webhook.site address. The payload ran whenever Python started and also installed the genuine framework. Both versions were removed within about an hour; Microsoft has not explained how publishing access was obtained.

Unconfirmed: Microsoft has not confirmed how the package was published, and no researcher has linked this to the May durabletask incident.

Key facts
  • The package has 192,534 monthly downloads, according to OX Security.
  • Version 1.26.1 appeared at 20:35 UTC and 1.26.2 at 21:08 UTC; both were gone by about 21:20 UTC.
  • Named files include agent_framework_meta.pth, _telemetry.py, af_runtime_diag.pth, and af_runtime_diag.py.
  • Endor Labs said both malicious releases were wheels only, without the clean release’s source package.
  • In May, Endor Labs found trojanized durabletask releases; no researcher has linked the incidents.
Security assessment · AI, from the article

Impact: harvests cloud tokens, secrets, and CI credentials

ProductAffected
Microsoft Agent Framework1.26.1 and 1.26.2
What to do
  1. 1.Remove agent-framework 1.26.1 and 1.26.2 from environments, CI images, and lockfiles.
  2. 2.If it ran, rotate Azure, GitHub, npm, PyPI, Docker, Hugging Face, and OpenAI secrets.
  3. 3.Review Azure sign-in logs for managed identities used from affected build agents.
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

Indicators of compromise

auto-extracted · verify before use · export allAll
TypeIndicatorContext
domainwebhook.siteaf-runtime-diagnostics,” OX said. The stolen data went to a webhook.site address as compressed, encoded JSON. The attacker did not s

From the original article

4 min read at csoonline.com

Attackers briefly hijacked Microsoft’s official Agent Framework package on PyPI and used it to distribute credential-stealing malware capable of harvesting cloud tokens, developer secrets and CI/CD credentials from developer workstations and automated build systems, according to multiple security researchers. Two malicious versions of the package, 1. 26.

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.