PyPI agent-framework 1.26.1 and 1.26.2 shipped a credential stealer
Original title: We caught the agent-framework PyPI compromise six minutes after it published
Elastic flagged 1.26.1 six minutes after publish; PyPI removed both versions within an hour of the second release.
Microsoft’s agent-framework meta-package versions 1.26.1 and 1.26.2 on PyPI contained a credential stealer triggered by a .pth startup hook whenever Python started. The code harvested environment variables, developer credentials, and Azure tokens, then posted them to a webhook.site endpoint. Version 1.26.1 published at 20:35 UTC on November 17, 2026, and 1.26.2 followed at 21:08 UTC. PyPI removed both within the hour.
Unconfirmed: It is unclear whether the Azure DevOps OIDC requests return a usable federated token.
- The package averages 196,000 downloads a month across all versions.
- A .pth hook runs the stealer without importing the package.
- Collected data was zlib-compressed, Base64-encoded, and posted to webhook.site.
- The stealer requests tokens for 12 Azure resources via IMDS or identity endpoints.
Impact: Steals host, developer, and Azure cloud credentials and tokens
| Product | Affected | Fixed in |
|---|---|---|
| Microsoft agent-framework | 1.26.1 and 1.26.2 | 1.26.0 |
- 1.Pin agent-framework to 1.26.0 and remove 1.26.1 and 1.26.2.
- 2.Rotate secrets on any host that ran those versions.
- 3.Hunt for POSTs to the named webhook.site endpoint.
- ATT&CK
- T1195.001 Compromise Software Dependencies and Development ToolsT1552.001 Credentials In FilesT1552.005 Cloud Instance Metadata API
- Vendors
- Microsoft
- Products
- agent-framework
- Organizations
- PyPI
Indicators of compromise
auto-extracted · verify before use · export allAll| Type | Indicator | Context |
|---|---|---|
| domain | webhook.site | bscription behind it. Everything collected went to a single webhook[.]site endpoint, zlib-compressed and Base64-encoded. How the age |
| sha256 | 21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e | 0cd7bf7179ce143f02 SHA-256 agent_framework_meta/__init__.py 21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e SHA-256 agent_framework_meta.pth 54d885b7d7161c9ed96489c663 |
| sha256 | 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 | bf635929166843bba10d97d46b5a2e1f SHA-256 af_runtime_diag.py 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 SHA-256 af_runtime_diag.pth |
| sha256 | 39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663 | 3a9c9f7e0a9 SHA-256 agent_framework-1.26.2-py3-none-any.whl 39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663 SHA-256 _telemetry.py c275ccbe520ef3c0f02dc6a35389e427f9f1b |
| sha256 | 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 | cd3e989e110 SHA-256 agent_framework-1.26.1-py3-none-any.whl 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 SHA-256 agent_framework-1.26.2-py3-none-any.whl 39fa329f2a9 |
| sha256 | 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f | 1ae6d118322b0a41873998eb5e SHA-256 agent_framework_meta.pth 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f SHA-256 af_runtime_diag.py 325e7e9f0ec94e41ad1a1b7a3f18a6b8 |
| sha256 | c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02 | 03ea3331d1ae479832a5015a54cb17aabd663 SHA-256 _telemetry.py c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02 SHA-256 agent_framework_meta/__init__.py 21f28e8517a10ffe43 |
| sha256 | d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110 | e-diagnostics/1 User Agent runtime-diagnostics/1 User Agent d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110 SHA-256 agent_framework-1.26.1-py3-none-any.whl 3d20a8bc913 |
From the original article
5 min read at elastic.co
Versions 1. 26. 1 and 1.
elastic.co
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.