
Two malicious releases of Microsoft's Agent Framework package for Python were published on PyPI, the public Python package index, on 17 November 2026, SecurityWeek reports. The package, agent-framework, is used to build AI agents and has about 190,000 downloads a month. Versions 1.26.1 and 1.26.2 appeared about 33 minutes apart and carried code that steals credentials.
According to the report, the malicious code runs every time the Python interpreter starts, even if the application never imports the package. It looks for secrets in environment variables and configuration files, tries to obtain Azure managed identity tokens and Azure DevOps tokens, and the second release added GitHub Actions credentials. The real framework code was left in place, so applications kept working normally. Four security firms, OX Security, Wiz, Endor Labs and SafeDep, analysed it independently.
Microsoft has acknowledged the incident. A maintainer confirmed that the compromised releases were removed from PyPI and that an investigation is under way. The bad versions are quarantined and 1.26.0 remains the latest clean release. How the releases were published is not yet known.
For developers and administrators: the product is the agent-framework package on PyPI, the affected versions are 1.26.1 and 1.26.2, and the clean version is 1.26.0. No CVE number is given in the report. Check developer laptops, build pipelines and container images for the two versions. If you find either, replace it with a verified package, rotate every credential that machine could reach, review cloud activity and rebuild the environment.
For Kenyan teams building with AI, my advice is simple: pin the exact versions your project installs, and do not let a build pull the newest release of anything on the day it appears.
Sourcesecurityweek.com
