Skip to content
NewA calmer, faster ZeroHour

Compromised agent-framework PyPI builds steal cloud credentials

Original title: Microsoft's agent-framework PyPI package Compromised with Credential Stealer

Hacker News · securityby roseway4 ()3 min read
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

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.

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

Impact: Exfiltrates cloud, CI, and local credentials

ProductAffected
Microsoft agent-framework1.26.1 and 1.26.2
What to do
  1. 1.Do not install agent-framework 1.26.1 or 1.26.2.
  2. 2.Remove those versions if present and rotate potentially exposed credentials.
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.sitedata, and cloud identity tokens, then exfiltrate them to a webhook[.]site endpoint. Avoid installing either version; if installed,
sha25621f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e29166843bba10d97d46b5a2e1f agent_framework_meta.pth SHA256: 21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e af_runtime_diag.pth SHA256: 325e7e9f0ec94e41ad1a1b7a3f18a6b
sha256325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93ca4001ae6d118322b0a41873998eb5e af_runtime_diag.pth SHA256: 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 User-Agents runtime-diagnostics/1 af-runtime-diagnostics/1
sha25639fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd6639e427f9f1b4e0b12e140cd7bf7179ce143f02 _telemetry.py SHA256: 39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663 af_runtime_diag.py SHA256: 54d885b7d7161c9ed96489c66364c4bf
sha2563d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9cd3e989e110 agent_framework-1.26.2-py3-none-any.whl SHA256: 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 agent_framework_meta/__init**__**.py SHA256: c275ccbe520ef3
sha25654d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f331d1ae479832a5015a54cb17aabd663 af_runtime_diag.py SHA256: 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f agent_framework_meta.pth SHA256: 21f28e8517a10ffe431f8d68f5
sha256c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02f553a9c9f7e0a9 agent_framework_meta/__init**__**.py SHA256: c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02 _telemetry.py SHA256: 39fa329f2a93f734b0bb8f5adb203ea3331d1
sha256d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110son . Files agent_framework-1.26.1-py3-none-any.whl SHA256: d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110 agent_framework-1.26.2-py3-none-any.whl SHA256: 3d20a8bc913
urlhttps://webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetryents 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.

Hacker News · security

By roseway4 · socket.dev

Read the full article at Hacker News · security

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.