Malicious code in Microsoft Agent Framework. Two versions of PyPI package used to steal credentials
Publication date is supplied by the source. Prepared by Cybermonit · Content updated:
Loading data…
Publication date is supplied by the source. Prepared by Cybermonit · Content updated:
All it took was running Python in an environment with the infected agent-framework package, even without using the framework itself. The malicious release 1.26.1 reached Microsoft's official package on 17 November 2026 at 20:35 UTC, and .pth files, which Python processes at startup, let the code run in the background. The malware collected credentials and tokens, especially for Azure, Azure DevOps and CI/CD, while version 1.26.2 added GitHub Actions OIDC tokens; according to the article, the last clean version was 1.26.0. The article does not confirm how attackers obtained publishing rights, and researchers from StepSecurity and Endor Labs recommend rotating credentials, because removing the package is not enough.
Identifiers and catalog names mentioned in the source. A product mention does not establish that an installation is vulnerable.