AI Automation

LiteLLM 1.107.0 Malware: What PH AI Developers Should Do

Efraim Ray Efraim Ray 0 Comments
Security News Python & AI tools

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.

CategorySecurity
PublishedOct 26, 2026
Read time6 min
LevelIntermediate
FocusDevelopers
A laptop on a dark studio desk showing a software package dashboard with a glowing red warning shield over a cracked package box and a broken key icon.

Key takeaways

  • Only LiteLLM 1.107.0 (PyPI) and the Docker tags v1.107.0, latest, main-latest and main-stable from 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.

Timeline of the LiteLLM 1.107.0 attack, from a key leaked on May 27 to tags removed on October 21, 2026 How one old leaked key became a poisoned release Dates from LiteLLM's own root-cause report (times in UTC) May 27 Oct 10 Oct 21, 11:39 Oct 21, 14:20 Master key pushed to a public repo Key still valid; owner's GitHub token stolen 7 bad wheels on PyPI, images on Docker/GHCR PyPI quarantine 13:23; Docker tags pulled efraimray.com
Illustration: the attack timeline from LiteLLM's root-cause report, from a leaked key in May to the poisoned release on October 21, 2026.
~2 hoursHow long the bad files were live
7Poisoned PyPI wheels
4Docker tags affected
1.106.2Version LiteLLM says to pin

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.

How the malicious LiteLLM 1.107.0 package ran: install, startup hook, key theft, upload to a look-alike domain Why "I never imported it" did not help Install litellm 1.107.0 or :latest image Startup hook cook.pth runs at every Python start Steals keys cloud, SSH, AI tools, proxy database Uploads to a fake look-alike site Fix: rebuild clean, pin 1.106.2 or an image digest, then rotate every reachable secret efraimray.com
Illustration: how the poisoned package ran at Python startup and sent stolen keys to a look-alike domain.
WhereWhat was poisonedLive window (Oct 21, UTC)
PyPIlitellm==1.107.0, all 7 wheels11:39 to 13:23
Docker Hubv1.107.0, latest, main-latest, main-stable11:46 to 14:20
GHCRSame tags for litellm, litellm-database, litellm-non_root11: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

  1. Check, don't run. Look at your lock files, requirements files, CI build logs and container image tags or digests for 1.107.0 or a latest pull on October 21. Don't run pip inside a suspect environment; LiteLLM warns that starting Python re-runs the malware.
  2. Isolate and rebuild. If you were affected, take the host or container offline, then rebuild it from scratch with a clean image.
  3. 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.
  4. Pin versions. Use litellm==1.106.2 (or another explicit older version) and pin Docker images by digest instead of latest.
  5. 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

  1. Contained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised · LiteLLM, October 21, 2026
  2. The attack chain behind the v1.107.0 LiteLLM release · LiteLLM, October 23, 2026
  3. LiteLLM PyPI Package and Docker Images Compromised to Steal Cloud and AI Credentials · Socket, October 21, 2026
  4. 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.

Efraim Ray
Written by

Efraim Ray

Software Developer and AI Specialist. BS Information Technology graduate. I pride myself on being conscientious, attentive to detail, and always open to learning — because the best solutions come from listening, taking notes, and exploring what's next.

Comments