Skip to content
NewA calmer, faster ZeroHour

Compromised LiteLLM 1.107.0 on PyPI installs a stealer and backdoor

Original title: Compromised LiteLLM 1.107.0 on PyPI Installs a Credential Stealer and Backdoor

Hacker News · securityby abhisek ()6 min read6 · 4 reads
Part of a story covered by 16 sourcesTrojanized LiteLLM 1.107.0 removed; users urged to rotate secretsMerged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

All seven wheels run the implants in every Python process; PyPI removed the release, and 1.106.2 plus two release candidates are clean.

SafeDep reports that LiteLLM 1.107.0 on PyPI carried a credential stealer and a remote code execution backdoor that are absent from the upstream GitHub source. All seven Linux, macOS, and Windows wheels install cook.pth, cook.py, and sitecustomize.py so they run when any Python process starts. The stealer collects host, cloud, CI, browser, and LLM-provider secrets and sends encrypted data to www.litellm[.]dev, while a daemon hourly fetches a server address and runs downloaded code. PyPI has removed the release.

Unconfirmed: SafeDep assesses with moderate to high confidence that BerriAI’s private pipeline built the wheels from modified source, and says only pipeline logs can confirm the cause.

Key facts
  • Versions 1.106.2, 1.107.0rc1, and 1.107.0rc2 are reported clean.
  • Pinned packages litellm-proxy-extras 0.4.110 and litellm-enterprise 0.1.78 are also clean.
  • SafeDep found no public GitHub Actions run that built or published the release.
  • The sdist adds a maturin data setting that copies a cook folder absent from public commits.
Security assessment · AI, from the article

Impact: Steals credentials and runs remotely supplied code

ProductAffected
BerriAI LiteLLM1.107.0
What to do
  1. 1.Do not install LiteLLM 1.107.0; use 1.106.2, 1.107.0rc1, or 1.107.0rc2.
  2. 2.If 1.107.0 was installed, check site-packages for cook.pth, cook.py, and sitecustomize.py.
  3. 3.Rotate credentials the stealer targets if that release ran.
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

Indicators of compromise

auto-extracted · verify before use · export allAll
TypeIndicatorContext
domainlitellm.devLM proxy database. It encrypts the data and sends it to www.litellm[.]dev . sitecustomize.py starts a background daemon. Every hour
sha2560aaf7ba346d41ef2f40390436738b001180d5a1c03aa093f121078a9969d9a1a5729aeb86d litellm-1.107.0-cp310-abi3-macosx_11_0_arm64.whl 0aaf7ba346d41ef2f40390436738b001180d5a1c03aa093f121078a9969d9a1a litellm-1.107.0-cp310-abi3-win_amd64.whl 12d4ccc5c6f8d35cf4
sha25612d4ccc5c6f8d35cf4f2cf233b7f3e418e863e657d81ff5f5fc9e210005b94843f121078a9969d9a1a litellm-1.107.0-cp310-abi3-win_amd64.whl 12d4ccc5c6f8d35cf4f2cf233b7f3e418e863e657d81ff5f5fc9e210005b9484 The planted files, from the wheel RECORD : File SHA-256 (UR
sha2561bbce8caa94f01c0aaa0b7ddae51553a8a32e1ce53d96d44fe583272aff7ad005e02ae6 litellm-1.107.0-cp310-abi3-musllinux_1_2_x86_64.whl 1bbce8caa94f01c0aaa0b7ddae51553a8a32e1ce53d96d44fe583272aff7ad00 litellm-1.107.0-cp310-abi3-musllinux_1_2_aarch64.whl c2e32d
sha2562befe2a79fb4fbbd9a543b5b40b530c8cffa8771bab22b8fb22b2e4ae3b1f819p File hashes (SHA-256) File SHA-256 litellm-1.107.0.tar.gz 2befe2a79fb4fbbd9a543b5b40b530c8cffa8771bab22b8fb22b2e4ae3b1f819 litellm-1.107.0-cp310-abi3-manylinux_2_28_x86_64.whl 462d0c
sha256462d0c9f67ca522d9e0e4acd245e90b36ce0d5353604a66bb7c43a1ec4a6fcf7b1f819 litellm-1.107.0-cp310-abi3-manylinux_2_28_x86_64.whl 462d0c9f67ca522d9e0e4acd245e90b36ce0d5353604a66bb7c43a1ec4a6fcf7 litellm-1.107.0-cp310-abi3-manylinux_2_28_aarch64.whl 66816
sha256668169d35b87bf51324080390b1b1c5ab12bd335cfe5f1a99e3689abd5e02ae66fcf7 litellm-1.107.0-cp310-abi3-manylinux_2_28_aarch64.whl 668169d35b87bf51324080390b1b1c5ab12bd335cfe5f1a99e3689abd5e02ae6 litellm-1.107.0-cp310-abi3-musllinux_1_2_x86_64.whl 1bbce8c
sha2567598727f209d717041db37f7dca271d3a7d328a279890e0e1d55375729aeb86dfdcde054 litellm-1.107.0-cp310-abi3-macosx_10_12_x86_64.whl 7598727f209d717041db37f7dca271d3a7d328a279890e0e1d55375729aeb86d litellm-1.107.0-cp310-abi3-macosx_11_0_arm64.whl 0aaf7ba346
sha256c2e32d0ce2548aa662c18bf5001911a79fe5b30cf8357132275add02fdcde054f7ad00 litellm-1.107.0-cp310-abi3-musllinux_1_2_aarch64.whl c2e32d0ce2548aa662c18bf5001911a79fe5b30cf8357132275add02fdcde054 litellm-1.107.0-cp310-abi3-macosx_10_12_x86_64.whl 7598727f
urlhttp://www.litellm.dev/healthcheckof compromise Network Indicator Purpose www.litellm[.]dev , hxxp://www.litellm[.]dev/healthcheck Receives stolen data HTTP header X-Token: XWiA8gZNa7NcX2X

From the original article

6 min read at safedep.io

The LiteLLM 1. 107. 0 release on PyPI carries a credential stealer and a remote code execution backdoor.

Hacker News · security

By abhisek · safedep.io

Read the full article at Hacker News · security

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.