LiteLLM 1.107.0 Malware: What PH AI Developers Should Do
On October 21, 2026, someone published a poisoned version of LiteLLM, the popular open-source Python library and proxy that lets apps talk to many AI models through one API. Version 1.107.0 on PyPI and its Docker images carried a credential stealer for about two hours before they were pulled. Here is what happened and what I would do today.
Key takeaways
- Only LiteLLM
1.107.0(PyPI) and the Docker tagsv1.107.0,latest,main-latestandmain-stablefrom October 21, 2026 were poisoned. LiteLLM says all earlier versions are safe. - The malware ran whenever Python started, then tried to steal cloud keys, SSH keys, AI tool logins and the LiteLLM proxy database.
- If you ran it, don't just reinstall. Clean or rebuild the machine, pin
1.106.2, and rotate every secret it could reach. - The root cause was an old leaked key that was never revoked, a lesson for every small team.
What Happened
According to LiteLLM's own incident report, seven malicious wheels (Python install files) for litellm==1.107.0 went live on PyPI at 11:39 UTC on October 21, 2026, which is 7:39 PM Philippine time. Poisoned Docker images followed on Docker Hub and GitHub's container registry (GHCR) a few minutes later. PyPI quarantined the release at 13:23 UTC, and the Docker tags were removed or repointed by 14:20 UTC.
LiteLLM's root-cause post, published on October 23, explains how it started. On May 27, a configuration file containing a master key for an internal test platform was committed to a public GitHub repository, and that key was never revoked. On October 10, the attacker used it to pull a GitHub token belonging to an organization owner and, on October 21, pointed the release workflow at a look-alike repository named Berri-AI/litellm. The source code on GitHub stayed clean.
Why It Matters
Security firms Socket and Chainguard found that the package dropped a cook.pth file plus a sitecustomize.py into the Python environment. Python runs these automatically at startup, so the code ran even if your app never imported LiteLLM. It went after cloud credentials, SSH keys, browser passwords, AI coding tool configs and, when DATABASE_URL was set, the provider keys saved in the LiteLLM proxy database. The stolen data was sent to www.litellm[.]dev, a look-alike domain that is not the real litellm.ai.
The catch for small teams: anyone who installed LiteLLM without a fixed version, or pulled the latest image during the window, got the bad build automatically.
| Where | What was poisoned | Live window (Oct 21, UTC) |
|---|---|---|
| PyPI | litellm==1.107.0, all 7 wheels | 11:39 to 13:23 |
| Docker Hub | v1.107.0, latest, main-latest, main-stable | 11:46 to 14:20 |
| GHCR | Same tags for litellm, litellm-database, litellm-non_root | 11:46 to 13:51 |
For Philippine businesses
Many AI chatbots and automations built for local shops, schools and cooperatives run on cheap cloud servers with an OpenAI, Gemini or Claude key sitting in an environment file. If your developer used LiteLLM and redeployed on the evening of October 21 (Philippine time), those keys may now be in someone else's hands, and a stolen AI key can run up a dollar bill fast. If customer data sat on that server, remember your Data Privacy Act (RA 10173) duties and ask your developer for a straight answer this week.
What to Do Now
- Check, don't run. Look at your lock files, requirements files, CI build logs and container image tags or digests for
1.107.0or alatestpull on October 21. Don't runpipinside a suspect environment; LiteLLM warns that starting Python re-runs the malware. - Isolate and rebuild. If you were affected, take the host or container offline, then rebuild it from scratch with a clean image.
- Rotate every reachable secret. From a clean machine, replace cloud keys, AI provider keys, LiteLLM master and virtual keys, database passwords, SSH keys and GitHub tokens. LiteLLM's advice is blunt: if 1.107.0 ran on a host with internet access, assume the data was sent.
- Pin versions. Use
litellm==1.106.2(or another explicit older version) and pin Docker images by digest instead oflatest. - Hunt for old leaked keys. Scan your repositories for committed secrets and revoke anything that was ever exposed, even months ago. That single step would have stopped this attack.
My take
I like LiteLLM and I'll keep recommending it, but this incident is a reminder that "pip install the newest version" is a habit we can't afford on a production server. I now pin every AI library and Docker image for my clients and update on purpose, not by accident. And the real villain here is a key leaked five months earlier, so please go and revoke the old keys you've been meaning to clean up.
Frequently Asked Questions
Was every LiteLLM version infected?
No. LiteLLM says only the 1.107.0 release published on October 21, 2026 was compromised and that all previous versions are safe. It recommends pinning to version 1.106.2 for now.
I never import LiteLLM in my code. Am I safe?
Not necessarily. Researchers found that the malicious files ran every time Python started, so having version 1.107.0 installed in an environment was enough to run them, even if your code never imported it.
I use the LiteLLM Docker image with the latest tag. Was I affected?
If you pulled the latest, main-latest, main-stable or v1.107.0 tag from Docker Hub or GHCR during the October 21, 2026 exposure window, treat that container as compromised. Rebuild it from a pinned, reviewed image and rotate every secret it could read.
Were LiteLLM Enterprise customers affected?
LiteLLM says customers running the private enterprise release of LiteLLM were not impacted.
Can you help me check and secure my AI or Python setup?
Yes. I can review your servers, Docker images and API keys, pin your dependencies and set up safer secret handling for your AI tools and automations. Contact me here.
Sources
- Contained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised · LiteLLM, October 21, 2026
- The attack chain behind the v1.107.0 LiteLLM release · LiteLLM, October 23, 2026
- LiteLLM PyPI Package and Docker Images Compromised to Steal Cloud and AI Credentials · Socket, October 21, 2026
- LiteLLM attacked again: Malicious 1.107.0 wheels on PyPI and Docker Hub (October 2026) · Chainguard, October 21, 2026
Worried About Your Servers or AI Keys?
I can check your Python and Docker setup, rotate exposed keys and put safer update habits in place so one bad package can't take your business down.
Information current as of October 26, 2026.

Comments
Post a Comment