Key takeaways
- litellm 1.107.0, published on 21 October to PyPI, Docker Hub and GHCR, contained an infostealer and a remote-access trojan.
- The PyPI package was live from 11:39 to 12:47 UTC and the Docker images from 11:46 to 14:20 UTC; both have been removed.
- Anyone who installed it should rotate every password, API key and cloud credential on the affected system.
What happened#
LiteLLM is a popular open-source proxy that routes requests to different language-model providers, so it often sits right where API keys live. According to security firm Aikido, an attacker published a poisoned 1.107.0 release on PyPI plus Docker images on Docker Hub and GHCR on 21 October. Malicious files were injected through a build directive in pyproject.toml without changing the source repository; the project's GitHub issue says the packages were built from a lookalike repository.
Who is affected#
- PyPI: installs of litellm==1.107.0 between 11:39 and 12:47 UTC on 21 October.
- Docker Hub and GHCR: litellm/litellm:1.107.0 (amd64 and arm64) between 11:46 and 14:20 UTC, including the latest, main-latest and main-stable tags during that window.
PyPI quarantined and removed the release and the images were deleted. If you installed or pulled them in that window — by hand or in CI/CD — treat the system as compromised.
What the malware did#
Aikido found two parts. An infostealer ran on first use and collected SSH keys, shell history, cloud and Kubernetes credentials, CI/CD secrets, environment variables and LiteLLM database credentials, then sent them encrypted to litellm[.]dev, a domain unrelated to the project. A remote-access trojan started with every Python process via sitecustomize.py and fetched and ran attacker code every hour.
What to do now#
- Check for version 1.107.0 (pip show litellm, lock files, Docker images).
- Look for /tmp/.pc_once_* and /tmp/remote_code_loader.lock, and for cook.pth, cook.py and sitecustomize.py in site-packages.
- Rotate every secret the system could reach: cloud keys, AI API keys, SSH keys and database passwords.
- Remove 1.107.0, rebuild Docker images and pin dependency versions.
Supply-chain attacks increasingly target AI tooling — see AI coding agents hijacked via AGENTS.md.
Source and further reading
- LiteLLM compromised: infostealer and RAT in PyPI 1.107.0— Aikido Security· published 21 October 2026
- [SECURITY] litellm 1.107.0 compromised — Issue #47826— LiteLLM (GitHub)· published 21 October 2026
- The internet is having a very bad cybersecurity day— TechCrunch· published 21 October 2026




