LiteLLM Supply Chain Compromise
A malicious version of the LiteLLM Python package (v1.107.0) was distributed via PyPI and Docker, containing credential theft functionality and dormant command-and-control capabilities.
Triage facts
Revision 1- Applicability
- LiteLLM (1.107.0)
- Evidence
- Unknown
- Severity
- Critical
- Action
- Immediate escalation
- Sources
- 3 public sources
- Freshness
- Revision 1Oct 21, 14:21 UTC
- Detection
- 1 rule · 13 IOCs
- Source quality
- B2Very likely
What's new
- 1. new IOCs Oct 22, 09:35 via the-hacker-news
On October 21, 2026, version 1.107.0 of the LiteLLM package was identified as malicious on PyPI and Docker registries. The package contained embedded malicious scripts (cook.pth, cook.py, and sitecustomize.py) designed to execute automatically upon Python interpreter initialization. These scripts perform credential harvesting and attempt to establish command-and-control communication.
Attack Chain
- Compromised LiteLLM package (v1.107.0) is installed via PyPI or pulled from Docker registries.
- Python interpreter initializes, triggering the execution of
cook.pthwhich importscook.py. cook.pyruns an obfuscated credential-stealer routine targeting browser, cloud, and AI secrets.- Stolen credentials are encrypted and exfiltrated to an attacker-controlled endpoint (
www.litellm.dev/healthcheck). - On Linux and macOS systems,
sitecustomize.pyattempts to fetch a secondary stage payload URL from a GitHub dead drop. - The second-stage script, if retrieved, would be downloaded and executed on the host.
Impact
The malicious package successfully harvested system, browser, developer, cloud, and AI tool secrets from compromised environments. The exfiltration endpoint was configured to receive this sensitive data via HTTP POST requests.
Recommendation
- Immediately audit environments for the presence of LiteLLM v1.107.0 and downgrade to the known safe version (v1.106.2).
- Review network logs for egress traffic to
www.litellm.devor communication attempts with GitHub-hosted dead drops from Python processes. - Rotate all credentials (cloud, AI, browser-stored) that may have been present in environments where the malicious package was executed.
- Scan file systems for the artifacts
cook.pth,cook.py, andsitecustomize.pyin Python site-packages directories.
Immediate actions
Block traffic to www.litellm.dev
Mitigations
Uninstall LiteLLM 1.107.0 and revert to version 1.106.2
LiteLLM (1.107.0)
Detection coverage 1
Detect Malicious LiteLLM Package Artifacts
highDetects the creation of known malicious python files associated with LiteLLM v1.107.0 in site-packages directories
Detection queries are available on the platform. Get full rules →
Indicators of compromise
1
domain
9
hash_sha256
2
ip
1
url
| Type | Value |
|---|---|
| url | http://www.litellm.dev/healthcheck |
| hash_sha256 | 7598727f209d717041db37f7dca271d3a7d328a279890e0e1d55375729aeb86d |
| hash_sha256 | 0aaf7ba346d41ef2f40390436738b001180d5a1c03aa093f121078a9969d9a1a |
| hash_sha256 | 668169d35b87bf51324080390b1b1c5ab12bd335cfe5f1a99e3689abd5e02ae6 |
| hash_sha256 | 462d0c9f67ca522d9e0e4acd245e90b36ce0d5353604a66bb7c43a1ec4a6fcf7 |
| hash_sha256 | c2e32d0ce2548aa662c18bf5001911a79fe5b30cf8357132275add02fdcde054 |
| hash_sha256 | 1bbce8caa94f01c0aaa0b7ddae51553a8a32e1ce53d96d44fe583272aff7ad00 |
| hash_sha256 | 12d4ccc5c6f8d35cf4f2cf233b7f3e418e863e657d81ff5f5fc9e210005b9484 |
| hash_sha256 | bd1aeee419ea36da9aa2b657288da4101887be468f020ac63d22ba6ed84a3ea5 |
| hash_sha256 | 56b74573eed6e4aafe4b50603dbe7853e0345f188c8e44a09f1098caf1f4bcdf |
| domain | litellm.dev |
| ip | 168.100.8.57 |
| ip | 165.227.201.8 |