AI gateway LiteLLM hijacked to push malware

LiteLLM

Attackers took over the release pipeline of LiteLLM, a popular open-source gateway for AI models, and published a malicious version 1.107.0 to PyPI and Docker on October 21. The package was live on PyPI for under two hours and carried an infostealer and remote access tool that grab cloud keys, AI provider API keys and SSH keys whenever Python starts. LiteLLM said the attacker used the GitHub accounts of three of its engineers. It was the project’s second supply-chain attack of 2026, after one in March.

On October 21, 2026, a malicious LiteLLM version 1.107.0 appeared on PyPI and Docker registries. LiteLLM is an open-source proxy that lets apps talk to many AI model providers through one interface, and Socket estimates it gets about 23 million downloads a week. The PyPI wheels were available from 11:39 to 13:23 UTC, and Docker images under several tags served the bad build until 14:20 UTC, Help Net Security reported.

The malware hides in Python startup files, so it runs whenever Python starts, even if LiteLLM is never imported. It steals AWS, Azure and Google Cloud credentials, AI provider API keys, SSH and GPG keys, browser data and shell history, then loads a remote access tool that checks in with the attacker every hour, The Register reported. Wiz said that about four and a half hours after stealing data, the attacker tested stolen AWS keys against Amazon Bedrock AI models.

LiteLLM said the attacker used the GitHub accounts of three engineers, likely through stolen GitHub CLI tokens, to change the pipeline, approve the release and delete records. Build logs pointed to a lookalike repository, Berri-AI/litellm. The project called the incident contained and is rotating every token. A separate compromise in March exposed about 2,500 organizations, according to CloudSEK.

Summary of published news reports, linked above. LiteLLM has no connection to Loop Data.