Jessica Entwistle
October 26 2026
Microsoft Threat Intelligence has published a detailed analysis of a supply chain compromise affecting LiteLLM version 1.107.0, a widely used open-source Python library that provides a unified interface to large language model APIs from providers including OpenAI, Anthropic and Google. According to the Microsoft Security Blog, the compromised package used Python startup hooks — code that executes automatically when a Python environment initialises — to silently steal credentials from developer machines and load additional malicious code from a remote server at runtime. The technique was designed to be difficult to detect through standard code review, and the library's broad adoption across AI development teams meant the potential reach of the compromise was significant.
LiteLLM has become a common dependency for development teams building AI-powered features into products, internal tools and customer-facing applications. The speed at which AI development tooling is being adopted means that many organisations are pulling in open-source AI libraries with less scrutiny than they might apply to more established dependencies — and this incident illustrates precisely why that gap matters. Credentials stolen from a developer's environment can include API keys for cloud services, AI provider accounts, database connections and internal tooling, any of which could provide an attacker with meaningful access to production systems or sensitive data. The use of Python startup hooks as a persistence and execution mechanism is a technique that can survive across virtual environments and CI/CD pipelines if not actively detected, making the potential blast radius larger than a simple package installation might suggest.
Development and security teams should immediately verify whether LiteLLM 1.107.0 is present in any development, staging or production environments and update to a clean version if so. More broadly, this incident is a prompt to review whether software composition analysis tooling is in place to automatically flag known-malicious or compromised packages across your dependency tree. Credential management practices in developer environments deserve attention — API keys and service credentials should be stored in secrets management systems rather than environment variables or configuration files where they can be more easily exfiltrated. Organisations building AI-enabled software should apply the same supply chain rigour to AI libraries as they do to any other open-source dependency, including regular audits, pinned versions and integrity verification where possible.
Source: Microsoft Security Blog