Back

Threat ResearchSecurity News

Microsoft’s agent-framework PyPI package Compromised with Credential Stealer

Compromised agent-framework versions 1.26.1 and 1.26.2 on PyPI use .pth startup hooks to exfiltrate Azure, GitHub Actions, and CI/CD credentials.

  • Socket Research Team

Nov 17, 2026|2 min read

Microsoft’s agent-framework PyPI package Compromised with Credential Stealer

Executive Summary

#

The Microsoft agent-framework PyPI package was compromised on November 17th, affecting versions 1.26.1 and 1.26.2. Both versions install Python startup hooks that silently collect credentials, environment data, and cloud identity tokens, then exfiltrate them to a webhook[.]site endpoint. Avoid installing either version; if installed, remove them and rotate potentially exposed credentials.

Attack Analysis

#

On Python startup, the .pth file imports a module that launches collection in a background process/thread. Version 1.26.1 routes through agent_framework_meta.pth → agent_framework_meta/**init**.py → agent_framework_meta/_telemetry.py; 1.26.2 uses af_runtime_diag.pth → af_runtime_diag.py.