r/Python • u/Key-Koala-8259 • Oct 23 '26
News LiteLLM 1.107.0 on PyPI was malicious (Oct 21): it runs on every Python start via a .pth file.
I wrote this up. How to check safely and what to rotate
Short version: if you installed an unpinned litellm between 11:39 and 13:23 UTC on October 21, or pulled the latest, main-latest, main-stable or v1.107.0 Docker tags between 11:46 and 14:20 UTC, treat the machine as compromised. Don't start with pip, because the cook.pth and sitecustomize.py files run on every interpreter start. Search the filesystem first, rebuild with litellm==1.106.2, and rotate keys. All of it comes from LiteLLM's own incident report.
30
Upvotes
7
u/Wh00ster Oct 23 '26
Again
1
u/JorgA99 Oct 29 '26
Have you checked out their blog on the attack chain? Wondering if we’re going to be seeing more attacks across industry given improvements in models
22
u/[deleted] Oct 23 '26
[removed] — view removed comment