AI RESEARCH
[D] Litellm supply chain attack and what it means for api key management
r/MachineLearning
•
If you missed it, litellm versions 1.82.7 and 1.82.8 on pypi got compromised. malicious.pth file that runs on every python process start, no import needed. it scrapes ssh keys, aws/gcp creds, k8s secrets, crypto wallets, en vars (aka all your api keys). karpathy posted about it. the attacker got in through trivy (a vuln scanner ironically) and stole litellm's publish token. 2000+ packages depend on litellm downstream including dspy and mlflow. the only reason anyone caught it was because the malicious code had a fork bomb bug that crashed machines.