Skip to content
NewA calmer, faster ZeroHour

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 Security Labs ()5 min read1
Part of a story covered by 11 sourcesPyPI quarantines Microsoft agent-framework releases that stole credentialsMerged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

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.

Key facts
  • 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.
Security assessment · AI, from the article

Impact: Steals host, developer, and Azure cloud credentials and tokens

ProductAffectedFixed in
Microsoft agent-framework1.26.1 and 1.26.21.26.0
What to do
  1. 1.Pin agent-framework to 1.26.0 and remove 1.26.1 and 1.26.2.
  2. 2.Rotate secrets on any host that ran those versions.
  3. 3.Hunt for POSTs to the named webhook.site endpoint.
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.sitebscription behind it. Everything collected went to a single webhook[.]site endpoint, zlib-compressed and Base64-encoded. How the age
sha25621f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e0cd7bf7179ce143f02 SHA-256 agent_framework_meta/__init__.py 21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e SHA-256 agent_framework_meta.pth 54d885b7d7161c9ed96489c663
sha256325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93bf635929166843bba10d97d46b5a2e1f SHA-256 af_runtime_diag.py 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 SHA-256 af_runtime_diag.pth
sha25639fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd6633a9c9f7e0a9 SHA-256 agent_framework-1.26.2-py3-none-any.whl 39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663 SHA-256 _telemetry.py c275ccbe520ef3c0f02dc6a35389e427f9f1b
sha2563d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9cd3e989e110 SHA-256 agent_framework-1.26.1-py3-none-any.whl 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 SHA-256 agent_framework-1.26.2-py3-none-any.whl 39fa329f2a9
sha25654d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f1ae6d118322b0a41873998eb5e SHA-256 agent_framework_meta.pth 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f SHA-256 af_runtime_diag.py 325e7e9f0ec94e41ad1a1b7a3f18a6b8
sha256c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f0203ea3331d1ae479832a5015a54cb17aabd663 SHA-256 _telemetry.py c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02 SHA-256 agent_framework_meta/__init__.py 21f28e8517a10ffe43
sha256d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110e-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.

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.