Malicious Code Injected into LiteLLM Open Source AI Package via Supply Chain Attack

The open-source generative AI tool LiteLLM had malicious code inserted into its official distribution packages, enabling credential theft and remote code execution. The compromise affected version 1.107.0 released on October 21, 2026, and was delivered through legitimate channels in a classic software supply chain attack. Seven malicious wheel files were uploaded to PyPI, while official container images on Docker Hub and GitHub Container Registry were also tainted. Security firm JFrog discovered that the malware steals a wide range of secrets including cloud credentials, SSH private keys, browser-stored passwords, development tokens, and AI service API keys from LiteLLM's database. The code also supports execution of externally fetched payloads and abuses Python's startup mechanisms to run even when the application itself is not loaded. This marks the second supply chain incident involving the project in 2026, following a separate event in March.

Security NEXTTranslated from Japanese

Read at source

The open-source software LiteLLM, designed for generative AI applications, was compromised when malicious code was injected into its official distribution packages. The attack allowed threat actors to steal authentication credentials and execute arbitrary code on affected systems.

Developers disclosed on October 21, 2026, that version LiteLLM 1.107.0 had been altered during the release process. This constituted a software supply chain attack in which attackers gained access to the build pipeline and distributed the tainted software through trusted repositories.

According to researchers at JFrog, seven malicious wheel files were published on the PyPI Python package index. Official container images hosted on Docker Hub and GitHub Container Registry were similarly affected.

The implanted malware implements credential-harvesting routines that target cloud service keys, SSH private keys, browser-stored credentials, and development environment tokens. It can also extract API keys for generative AI services directly from the LiteLLM database.

In addition, the code contains functionality to fetch and execute payloads from remote servers. It leverages Python's automatic execution hooks that run at interpreter startup, allowing the malicious logic to activate even if the LiteLLM application itself is never explicitly imported.

This is the second supply-chain compromise involving LiteLLM in 2026; developers stated that the March incident was unrelated to the current breach.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Supply Chain & Open Source

Passwordless Kubernetes Image Pulling with Artifact Keeper via ServiceAccount Tokens
GhostAction Campaign Compromises 790 GitHub Repositories via Malicious Workflows
SberTech Launches Platform V Orchestrator for Security Services to Scan Software Before Corporate Deployment