Compromised agent-framework PyPI releases steal cloud credentials
Original title: Microsoft’s AI Agent Framework Package Compromised on PyPI to Steal Cloud Credentials
Socket says versions 1.26.1 and 1.26.2 install Python startup hooks that harvest tokens and post them to a webhook.site endpoint.
Microsoft’s agent-framework Python package was compromised on November 17, 2026, according to the Socket Research Team. Malicious versions 1.26.1 and 1.26.2 install .pth startup hooks that run when Python starts, even without an explicit import, and collect Azure, Azure DevOps, GitHub Actions, and local developer secrets. Version 1.26.2 also requests GitHub Actions OpenID Connect tokens. Collected data is compressed, Base64-encoded, and sent by HTTPS POST to a webhook.site URL. Socket reported no further payload download in the analyzed collectors.
Unconfirmed: The compromise and payload behavior are attributed to Socket’s analysis; the article does not quote a Microsoft confirmation.
- Compromised releases are agent-framework 1.26.1 and 1.26.2.
- Version 1.26.1 uses agent_framework_meta.pth; 1.26.2 uses af_runtime_diag.pth and restores the original initializer.
- Targets include Azure managed-identity and federation tokens, Git credentials, Docker auth, Hugging Face tokens, and .env files.
- An _AF_TEL environment flag limits repeat runs, and errors are suppressed.
- Socket published file hashes, user-agents, and a defanged webhook.site exfiltration URL.
Impact: Theft of cloud identity tokens, developer secrets, and CI credentials
| Product | Affected |
|---|---|
| Microsoft agent-framework | 1.26.1 and 1.26.2 |
- 1.Avoid and remove agent-framework 1.26.1 and 1.26.2.
- 2.Rotate potentially exposed cloud, Git, CI, and local credentials.
- 3.Inspect developer machines and automation runners for both startup-hook variants and the listed webhook.
- ATT&CK
- T1195.001 Compromise Software DependenciesT1552.001 Credentials In FilesT1528 Steal Application Access TokenT1041 Exfiltration Over C2 Channel
- Vendors
- Microsoft
- Products
- agent-framework
- Organizations
- Socket
Indicators of compromise
auto-extracted · verify before use · export allAll| Type | Indicator | Context |
|---|---|---|
| domain | webhook.site | xecution guard; contextual hunting artifact Network hxxps://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry Credenti |
| sha256 | 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 | bf635929166843bba10d97d46b5a2e1f af_runtime_diag.py SHA-256 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 af_runtime_diag.pth User-Agent af-runtime-diagnostics/1 Exf |
| sha256 | 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 | runtime_diag.py Version 1.26.2 credential collector SHA-256 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 agent_framework-1.26.2-py3-none-any.whl SHA-256 54d885b7d71 |
| sha256 | 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f | 3a9c9f7e0a9 agent_framework-1.26.2-py3-none-any.whl SHA-256 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f af_runtime_diag.py SHA-256 325e7e9f0ec94e41ad1a1b7a3f18a6b8 |
| url | https://webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry | _TEL=1 Execution guard; contextual hunting artifact Network hxxps://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry Credential exfiltration endpoint Note: IP addresses and d |
From the original article
3 min read at gbhackers.com
Microsoft’s agent-framework Python package was compromised on November 17, 2026, with malicious versions 1. 26. 1 and 1.
By Divya · gbhackers.com
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.