LiteLLM 1.107.0: a poisoned release that steals credentials at Python startup
On 21 October 2026 a backdoored LiteLLM 1.107.0 reached PyPI and container registries. Its .pth startup hook ran on every Python launch to harvest cloud and AI-provider credentials.
# Startup-hook triage for a suspect Python environment (illustrative, defensive, redacted) # Pattern: a .pth line starting with 'import' runs at every interpreter launch. # [startup files] -> .pth + helper module + sitecustomize.py in site-packages [REDACTED] # [collector] -> harvests env vars, cloud and AI-provider keys [REDACTED] # [exfil domain] -> encrypted upload to attacker-controlled host [REDACTED] # Defense: inspect from a clean system (never run Python in the suspect one), pin images # by digest, rebuild from verified artifacts, rotate every secret the host could read.