Two PyPI releases of Microsoft Agent Framework published with a credential stealer
Security firms OX Security, Endor Labs and Wiz reported that two versions of agent-framework, the Python meta package of Microsoft’s AI agent development toolkit Agent Framework, were published on PyPI with code that steals credentials. According to Endor Labs, versions 1.26.1 and 1.26.2 were uploaded on 17 November 2026 33 minutes apart; Wiz said the first version was published at 20:35 UTC. The package has about 192,000 downloads a month.
According to OX Security’s and Wiz’s analyses, the malicious versions drop a .pth file into the Python environment’s site-packages directory. This way, the code runs every time Python starts, even if the package is not imported. The stealer targets Azure, Azure DevOps and GitHub Actions credentials; OX Security said the collected data was compressed, encoded and sent to webhook.site. Because both versions pulled the genuine agent-framework-core 1.26.0 package as a dependency, the framework continues to work normally.
Endor Labs noted that the attack occurred only at the packaging stage and that the Agent Framework code was not modified. Wiz reported that there was no tag for 1.26.1 in the microsoft/agent-framework repository and that the main branch contained no malicious code. The last clean version was 1.26.0, released on 12 November. According to Wiz, both malicious versions were no longer on PyPI as of about 21:30 UTC; Endor Labs wrote that it could not be determined who removed 1.26.1.
Source: OX Security, Endor Labs and Wiz (17-18 November 2026), SecurityWeek (18 November 2026).