Compromised agent-framework PyPI builds steal cloud credentials
Original title: Microsoft's agent-framework PyPI package Compromised with Credential Stealer
Versions 1.26.1 and 1.26.2 install startup hooks that collect Azure, GitHub Actions, and CI tokens and post them out.
Socket Research Team reported that Microsoft’s agent-framework package on PyPI was compromised on November 17, affecting versions 1.26.1 and 1.26.2. Both install Python startup hooks that collect environment secrets, credential files, and cloud identity tokens, then send them to a webhook.site endpoint. Version 1.26.2 also requests GitHub Actions OIDC tokens. The reported payloads do not download further code. Users should avoid those versions, remove them if installed, and rotate exposed credentials.
Unconfirmed: The report does not identify who published the malicious versions or how many systems installed them.
- Collection starts from .pth files on interpreter startup, in a fork or daemon thread.
- Both versions request fresh Azure managed-identity and CI federation tokens.
- Selectors include TOKEN, SECRET, KEY, AZURE, AWS, GITHUB, and OPENAI, among others.
- Version 1.26.2 restores the legitimate package initializer, so that file alone looks clean.
Impact: Exfiltrates cloud, CI, and local credentials
| Product | Affected |
|---|---|
| Microsoft agent-framework | 1.26.1 and 1.26.2 |
- 1.Do not install agent-framework 1.26.1 or 1.26.2.
- 2.Remove those versions if present and rotate potentially exposed credentials.
- ATT&CK
- T1195.001 Compromise Software Dependencies and Development ToolsT1552.001 Credentials In FilesT1552.005 Cloud Instance Metadata APIT1041 Exfiltration Over C2 Channel
- Vendors
- Microsoft
- Products
- agent-framework
- Organizations
- Socket
Indicators of compromise
auto-extracted · verify before use · export allAll| Type | Indicator | Context |
|---|---|---|
| domain | webhook.site | data, and cloud identity tokens, then exfiltrate them to a webhook[.]site endpoint. Avoid installing either version; if installed, |
| sha256 | 21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e | 29166843bba10d97d46b5a2e1f agent_framework_meta.pth SHA256: 21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e af_runtime_diag.pth SHA256: 325e7e9f0ec94e41ad1a1b7a3f18a6b |
| sha256 | 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 | ca4001ae6d118322b0a41873998eb5e af_runtime_diag.pth SHA256: 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 User-Agents runtime-diagnostics/1 af-runtime-diagnostics/1 |
| sha256 | 39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663 | 9e427f9f1b4e0b12e140cd7bf7179ce143f02 _telemetry.py SHA256: 39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663 af_runtime_diag.py SHA256: 54d885b7d7161c9ed96489c66364c4bf |
| sha256 | 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 | cd3e989e110 agent_framework-1.26.2-py3-none-any.whl SHA256: 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 agent_framework_meta/__init**__**.py SHA256: c275ccbe520ef3 |
| sha256 | 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f | 331d1ae479832a5015a54cb17aabd663 af_runtime_diag.py SHA256: 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f agent_framework_meta.pth SHA256: 21f28e8517a10ffe431f8d68f5 |
| sha256 | c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02 | f553a9c9f7e0a9 agent_framework_meta/__init**__**.py SHA256: c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02 _telemetry.py SHA256: 39fa329f2a93f734b0bb8f5adb203ea3331d1 |
| sha256 | d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110 | son . Files agent_framework-1.26.1-py3-none-any.whl SHA256: d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110 agent_framework-1.26.2-py3-none-any.whl SHA256: 3d20a8bc913 |
| url | https://webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry | ents runtime-diagnostics/1 af-runtime-diagnostics/1 Network hxxps://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry Keep Reading Related posts Stay ahead of threats Get noti |
From the original article
3 min read at socket.dev
Compromised agent-framework versions 1. 26. 1 and 1.
By roseway4 · socket.dev
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.