Particle.news

Malicious Agent‑Framework Wheels Published to PyPI Deliver Credential Stealer

Harvesting cloud and CI tokens via Python startup hooks forced PyPI to remove the tainted wheels.

Overview

  • Security researchers found two malicious wheel-only releases of Microsoft’s agent-framework on PyPI that were removed after publication on November 17, 2026.
  • Each malicious wheel dropped a .pth file into site-packages so the stealer ran whenever any Python interpreter started, even if the package was not imported.
  • The malware collected environment variables, credential files, Azure managed-identity tokens, Azure DevOps tokens, and GitHub Actions OIDC tokens and sent them in a single POST to a hard-coded webhook.site URL.
  • Version 1.26.2 was a repack of 1.26.1 that expanded search paths and added GitHub Actions OIDC collection, while both builds were wheel-only with no matching source release.
  • Vendors and Microsoft advise pinning to 1.26.0, searching images and site-packages for the .pth hooks, rotating exposed credentials from clean systems, and auditing cloud and CI federation settings.