On November 17, 2026, two malicious versions, 1.26.1 and 1.26.2, of Microsoft's agent-framework package were published on PyPI. These versions contained a credential stealer targeting Azure, Azure DevOps, and GitHub Actions secrets.
The malware embedded in these versions executes on Python startup via .pth files, specifically agent_framework_meta.pth for version 1.26.1 and af_runtime_diag.pth for version 1.26.2. It collects sensitive information and sends it to an attacker-controlled endpoint.
Users who installed these versions, either directly or indirectly, during a 45-minute window are affected. The agent-framework package typically sees around 190,000 downloads each month, indicating a potentially significant impact.
The collected data includes Azure managed-identity tokens, GitHub Actions OIDC tokens, and various credential files, which are exfiltrated to a webhook.site endpoint. The malicious versions were removed from PyPI shortly after their publication.
Users are advised to pin their installations to version 1.26.0, remove the malicious versions, and rotate any credentials that may have been compromised.
