Microsoft’s security team has published an analysis of a supply chain attack involving LiteLLM, a popular open-source Python library that many companies use to connect their applications to different AI models.
On October 21, 2026, a compromised LiteLLM version 1.107.0 was published to the Python Package Index (PyPI) and was also distributed through the project’s official container images. The tampered package added files that Python can run automatically during normal interpreter start-up. That meant the malicious code could execute without anyone deliberately calling it, and it was designed to steal credentials from the systems where it was installed.
Because AI gateway libraries like LiteLLM typically sit next to API keys, cloud tokens and other secrets, a compromise of this kind can give attackers a direct path into AI services and wider cloud accounts.
Why it matters for your business
If your developers or vendors build AI features in Python, check whether LiteLLM 1.107.0 was installed anywhere, rotate any credentials on affected machines, pin trusted package versions, and scan dependencies before they reach production.
Source: Microsoft Security Blog
