Skip to content
Threat Feed
critical advisory updated

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

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

  1. Compromised LiteLLM package (v1.107.0) is installed via PyPI or pulled from Docker registries.
  2. Python interpreter initializes, triggering the execution of cook.pth which imports cook.py.
  3. cook.py runs an obfuscated credential-stealer routine targeting browser, cloud, and AI secrets.
  4. Stolen credentials are encrypted and exfiltrated to an attacker-controlled endpoint (www.litellm.dev/healthcheck).
  5. On Linux and macOS systems, sitecustomize.py attempts to fetch a secondary stage payload URL from a GitHub dead drop.
  6. 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.dev or 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, and sitecustomize.py in Python site-packages directories.

Immediate actions

Block traffic to www.litellm.dev

SOC 1h

Mitigations

Uninstall LiteLLM 1.107.0 and revert to version 1.106.2

immediate IT Operations

LiteLLM (1.107.0)

Detection coverage 1

Detect Malicious LiteLLM Package Artifacts

high

Detects the creation of known malicious python files associated with LiteLLM v1.107.0 in site-packages directories

sigma tactics: persistence techniques: T1546.010 sources: file_event, linux

Detection queries are available on the platform. Get full rules →

Indicators of compromise

1

domain

9

hash_sha256

2

ip

1

url

TypeValue
urlhttp://www.litellm.dev/healthcheck
hash_sha2567598727f209d717041db37f7dca271d3a7d328a279890e0e1d55375729aeb86d
hash_sha2560aaf7ba346d41ef2f40390436738b001180d5a1c03aa093f121078a9969d9a1a
hash_sha256668169d35b87bf51324080390b1b1c5ab12bd335cfe5f1a99e3689abd5e02ae6
hash_sha256462d0c9f67ca522d9e0e4acd245e90b36ce0d5353604a66bb7c43a1ec4a6fcf7
hash_sha256c2e32d0ce2548aa662c18bf5001911a79fe5b30cf8357132275add02fdcde054
hash_sha2561bbce8caa94f01c0aaa0b7ddae51553a8a32e1ce53d96d44fe583272aff7ad00
hash_sha25612d4ccc5c6f8d35cf4f2cf233b7f3e418e863e657d81ff5f5fc9e210005b9484
hash_sha256bd1aeee419ea36da9aa2b657288da4101887be468f020ac63d22ba6ed84a3ea5
hash_sha25656b74573eed6e4aafe4b50603dbe7853e0345f188c8e44a09f1098caf1f4bcdf
domainlitellm.dev
ip168.100.8.57
ip165.227.201.8