1-minute read of a 4 min report

Microsoft Agent Framework PyPI Wheels Steal Cloud Credentials

By

1-minute read

What a defender needs to know

Two releases of Microsoft’s agent-framework Python package carried credential collectors, Socket reports. Versions 1.26.1 and 1.26.2 use .pth files that run on Python startup, including on developer systems and CI runners. The first starts through agent_framework_meta.pth and agent_framework_meta/_telemetry.py; the second moves to af_runtime_diag.pth and af_runtime_diag.py. The second release’s ordinary initializer was restored, so inspecting that file alone misses the hook.

Search installed environments, lockfiles, archived wheels and build images for both releases. Socket reports these affected wheel digests:

  • agent-framework 1.26.1 wheel SHA-256: d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110
  • agent-framework 1.26.2 wheel SHA-256: 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9

For outbound logs, correlate Python execution with the campaign endpoint hxxps://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry (defanged for safe handling). webhook.site is a legitimate shared service; match the campaign tenant identifier rather than the host alone.

Remove the affected releases and rebuild from a verified package baseline. Rotate exposed long-lived secrets, including Azure and Azure DevOps credentials; investigate GitHub Actions OIDC token issuance and use. Check cloud and CI token-issuance logs across the execution window: both releases request fresh cloud tokens, beyond collecting stored files and environment secrets. Verify rebuilt Python environments have neither poisoned version nor either startup hook. PyPI currently lists 1.26.0; confirm any replacement wheel’s provenance before deploying it.

Primary sources