Оригинальный текст на языке EN взят с сайта-источника. Источник ↗

LiteLLM version 1.107.0 was compromised in a supply chain attack that distributed credential-stealing malware through PyPI wheels and container images.

On October 21, 2026, researchers at Socket reported thatmalicious Python startup hooks could activate even if applications didn’t import LiteLLM, potentially exposing cloud credentials, developer secrets, and AI authentication files.

Socket flagged seven malicious wheels about seven minutes after publication; the affected distributions span macOS, Linux, and Windows.

LiteLLM, a common interface and proxy for large language model providers, receives about 23 million weekly downloads, which means the compromised release was close to sensitive production and development credentials.

LiteLLM Supply Chain Compromised

Container build provenance recorded Berri-AI/litellm as its source instead of the legitimate BerriAI/litellm repository. The private BerriAI/project-releaser workflow noted a source-owner override that selected the hyphenated organization. Payload files in the referenced revision matched those found in a PyPI wheel.

Build changes added the line data = “cook” to the Maturin configuration and copied the malicious directory into Docker build stages. However, the evidence does not clarify how the override was authorized, whether an account or token was compromised, or whether that workflow published the wheels.

At the time of observation, container tags v1.107.0, latest, main-latest, and main-stable all resolved to the same image index, which extended exposure beyond explicitly versioned deployments.

The wheels install cook.pth, cook.py, and sitecustomize.py into Python’s library directory. The startup hook contains a single executable line:

import cook This line activates the collector during standard interpreter initialization. As a result, starting Python or pip in an affected environment can reactivate the malware, making routine inspection potentially hazardous.

The decoded privcollect payload enables 16 collection modules targeting AWS, Azure, Google Cloud, Kubernetes, SSH keys, browser databases, environment variables, and developer configuration files. AI-specific targets include Codex, Claude, Gemini, Cursor, and other assistants.

A database module attempts to retrieve saved credentials and model settings from LiteLLM tables. However, there was no evidence of successful theft from individual deployments.

The collected JSON is encrypted using AES-256-CBC, with its key wrapped using RSA-4096-OAEP. The resulting archive is uploaded to a deceptive /healthcheck endpoint. Separately, sitecustomize.py launches a detached loader that reads a GitHub-hosted pointer and can execute downloaded Python files without signature or hash verification.

During one observation, the pointer was empty, which prevented that download phase but did not disable the independent collector. The loader retries hourly, although this does not confirm hourly exfiltration.

IoC

TypeIndicator
Packagelitellm==1.107.0
Exfiltrationhxxp://www[.]litellm[.]dev/healthcheck
Loader pointerhxxps://raw[.]githubusercontent[.]com/letters9813/pythonclient-test/main/domain.txt
Upload headerX-Token: XWiA8gZNa7NcX2XRoAEb
Loader lock/tmp/remote_code_loader.lock
Collection marker/tmp/.pc_once_72129118c59f5636c0bb
cook.py SHA-2569dd0a3926f96a37eb86cf1ee2310d9be93139cc4ebef3ef9e2efe9531390be25
sitecustomize.py SHA-25634bef04fe88ac9d0aae0475630b1738681d15b94f233ac8aa46eacf5968305fa

Note:IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Organizations should block the release, inspect image digests, and isolate environments where Python ran after installation. Preserve evidence using trusted tooling rather than the affected interpreter.

Rebuild from reviewed artifacts and rotate potentially exposed credentials from a clean system. Removing LiteLLM alone neither reverses credential exposure nor stops an existing loader. Maintainers should validate repository identities, release permissions, and published artifacts against approved sources.

Stops Cyber threats before impact with 21 min faster MTTR. Integrate ANYRUN’s Sandbox in your SOC.