Poisoned Microsoft AI package on PyPI was built to steal credentials
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.
Read the full story





















