Skip to content
NewA calmer, faster ZeroHour

Compromised agent-framework PyPI releases steal cloud credentials

Original title: Microsoft’s AI Agent Framework Package Compromised on PyPI to Steal Cloud Credentials

GBHackersby Divya ()3 min read1
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

Socket says versions 1.26.1 and 1.26.2 install Python startup hooks that harvest tokens and post them to a webhook.site endpoint.

Microsoft’s agent-framework Python package was compromised on November 17, 2026, according to the Socket Research Team. Malicious versions 1.26.1 and 1.26.2 install .pth startup hooks that run when Python starts, even without an explicit import, and collect Azure, Azure DevOps, GitHub Actions, and local developer secrets. Version 1.26.2 also requests GitHub Actions OpenID Connect tokens. Collected data is compressed, Base64-encoded, and sent by HTTPS POST to a webhook.site URL. Socket reported no further payload download in the analyzed collectors.

Unconfirmed: The compromise and payload behavior are attributed to Socket’s analysis; the article does not quote a Microsoft confirmation.

Key facts
  • Compromised releases are agent-framework 1.26.1 and 1.26.2.
  • Version 1.26.1 uses agent_framework_meta.pth; 1.26.2 uses af_runtime_diag.pth and restores the original initializer.
  • Targets include Azure managed-identity and federation tokens, Git credentials, Docker auth, Hugging Face tokens, and .env files.
  • An _AF_TEL environment flag limits repeat runs, and errors are suppressed.
  • Socket published file hashes, user-agents, and a defanged webhook.site exfiltration URL.
Security assessment · AI, from the article

Impact: Theft of cloud identity tokens, developer secrets, and CI credentials

ProductAffected
Microsoft agent-framework1.26.1 and 1.26.2
What to do
  1. 1.Avoid and remove agent-framework 1.26.1 and 1.26.2.
  2. 2.Rotate potentially exposed cloud, Git, CI, and local credentials.
  3. 3.Inspect developer machines and automation runners for both startup-hook variants and the listed webhook.
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.sitexecution guard; contextual hunting artifact Network hxxps://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry Credenti
sha256325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93bf635929166843bba10d97d46b5a2e1f af_runtime_diag.py SHA-256 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 af_runtime_diag.pth User-Agent af-runtime-diagnostics/1 Exf
sha2563d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9runtime_diag.py Version 1.26.2 credential collector SHA-256 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 agent_framework-1.26.2-py3-none-any.whl SHA-256 54d885b7d71
sha25654d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f3a9c9f7e0a9 agent_framework-1.26.2-py3-none-any.whl SHA-256 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f af_runtime_diag.py SHA-256 325e7e9f0ec94e41ad1a1b7a3f18a6b8
urlhttps://webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry_TEL=1 Execution guard; contextual hunting artifact Network hxxps://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry Credential exfiltration endpoint Note: IP addresses and d

From the original article

3 min read at gbhackers.com

Microsoft’s agent-framework Python package was compromised on November 17, 2026, with malicious versions 1. 26. 1 and 1.

GBHackers

By Divya · gbhackers.com

Read the full article at GBHackers

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.