← Lab /Security & privacy

Compromised LiteLLM 1.107.0 package steals credentials via .pth and sitecustomize hooks

The malicious LiteLLM 1.107.0 release exfiltrates browser, cloud, and AI service credentials using a dual .pth/sitecustomize persistence technique.

Security & privacy Wiz Research 21 Oct 2026 Attack Real-world evidence

Published as “LiteLLM Compromised, Steals Credentials”

Why it matters

Supply-chain attackers can inject credential-stealing code into popular ML libraries, demonstrating the need for stronger package provenance checks.

Summary

The researchers observed a malicious LiteLLM 1.107.0 wheel uploaded to PyPI and mirrored in Docker images. The package drops cook.pth, cook.py and sitecustomize.py into site-packages, which run on interpreter start, steal credentials from browsers, cloud providers, AI APIs, SSH/GPG keys, encrypt them with AES-256-CBC, and exfiltrate to www.litellm.dev/healthcheck. Evidence includes the malicious commits, the extracted payload files, and network indicators, though the secondary code-download path was never observed active.

What they found 2

  1. The malicious package exfiltrates stolen data to a look-alike domain

    “exfiltrates to www.litellm.dev/healthcheck via a post request.”

  2. The dual-technique .pth and sitecustomize approach is claimed to be the first of its kind

    “The dual-technique approach, using both .pth files and sitecustomize.py simultaneously, appears to be the first documented case in the wild.”

Caveats 5

  • As of the time of analysis, the domain.txt file was never populated beyond initial test values.
  • Python interpreters will also attempt to execute sitecustomize.py - however, it will only run on Linux & MacOS machines.
  • sitecustomize only runs on Linux & MacOS machines
  • The secondary code-download path (domain.txt) was never populated, so the second-stage payload was not observed
  • The malicious package fails on Windows for the /tmp/ path used by the stealer

What’s new here 4

  • First documented use of both .pth and sitecustomize persistence in the wild
  • Evidence of LLM-aided development in the malicious payload
  • Detailed credential stealer targeting 16 modules across browsers, cloud, and AI services
  • Supply-chain compromise of both PyPI and multiple Docker images