Microsoft’s agent-framework PyPI package was compromised. Versions 1.26.1 and 1.26.2 install malicious .pth startup hooks. These hooks silently collect credentials, environment data, and cloud tokens. The stolen data is exfiltrated to a webhook.site endpoint. Both versions target Azure, GitHub Actions, and CI/CD secrets. Version 1.26.2 also requests GitHub Actions OIDC tokens. The payloads do not download or execute additional code. Socket advises removing the versions and rotating exposed credentials.
What changed
The package was clean in versions before 1.26.1.
What it unlocks
Attackers can steal Azure, GitHub Actions, and CI/CD credentials from affected systems.
- 2 versions (1.26.1, 1.26.2)
- 6 SHA256 hashes for compromised files
What you need to act on it
- using agent-framework 1.26.1 or 1.26.2 from PyPI
- Python environment with .pth hook execution enabled
Sources