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
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.
- 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.
Impact: harvests cloud tokens, secrets, and CI credentials
| Product | Affected |
|---|---|
| Microsoft Agent Framework | 1.26.1 and 1.26.2 |
- 1.Remove agent-framework 1.26.1 and 1.26.2 from environments, CI images, and lockfiles.
- 2.If it ran, rotate Azure, GitHub, npm, PyPI, Docker, Hugging Face, and OpenAI secrets.
- 3.Review Azure sign-in logs for managed identities used from affected build agents.
- ATT&CK
- T1195.001 Compromise Software Dependencies and Development ToolsT1552.001 Credentials In FilesT1528 Steal Application Access Token
- Vendors
- Microsoft
- Products
- Agent Framework
- Organizations
- OX SecurityAikido SecurityEndor LabsSafeDep
Indicators of compromise
auto-extracted · verify before use · export allAll| Type | Indicator | Context |
|---|---|---|
| domain | webhook.site | af-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.
csoonline.com
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.