Compromised LiteLLM 1.107.0 on PyPI Installs a Credential Stealer and Backdoor
- ID: a0e7a23f
- 原文链接: https://safedep.io/litellm-pypi-compromise-credential-stealer-backdoor
- PDF: N/A
- 作者: Kunal Singh (SafeDep)
- 日期: 2026-10-21
- 更新: N/A
- 分类: infra
- 来源类型: article
- 标签: supply-chain, security, pypi, litellm, credential-stealer
- 质量评分: 5/5
- 抓取时间: 2026-10-23T04:29:05Z
中文导读
LiteLLM 1.107.0 在 PyPI 被投毒:七个平台的 wheel 全部带凭证窃取器与 RCE 后门sdist 的 maturin 构建段只多了一行 data = cook(任何公开 commit 里都没有),把 cook 目录装进 site-packages:cook.pth 加载 cook.py,收集 SSH 密钥云凭证CI/CD secretAI 工具 token浏览器密码以及 LiteLLM 代理数据库里的 LLM provider 密钥,外传到仿冒的 litellm.dev 域名;sitecustomize.py 启动守护进程,每小时从 GitHub 文件读取 C2 地址重跑窃取器并执行下载的代码,任何 Python 进程启动都会触发,根本不需要 import litellmPyPI 在 2026-10-21 13:23 UTC 前移除了该版本;Docker 镜像 v1.107.0latestmain-latestmain-stable 在 11:46 到 14:20 UTC 之间带毒;1.106.2 与 rc1/rc2 干净LLM 网关已成为高价值供应链攻击目标
为什么值得关注
LiteLLM 1.107.0 在 PyPI 被投毒:一行 maturin 配置带进窃密器与后门,任意 Python 进程启动即触发外传。 任意 Python 进程启动即触发,不需要 import litellm;LLM 网关已成为高价值供应链攻击目标,用到的团队应立即核对安装版本并对照 IoC 排查。
关键信息
- 文章标题:Compromised LiteLLM 1.107.0 on PyPI Installs a Credential Stealer and Backdoor
- 作者:Kunal Singh (SafeDep)
- 原文:https://safedep.io/litellm-pypi-compromise-credential-stealer-backdoor
- 发布时间:2026-10-21
- 关联标签:supply-chain, security, pypi, litellm, credential-stealer
English Summary
LiteLLM 1.107.0 on PyPI shipped a credential stealer and RCE backdoor in all seven wheels (Linux, macOS, Windows). A single injected data = cook line in the sdist's maturin build section - present in no public commit - copies a cook/ folder into site-packages: cook.pth loads cook.py, which collects SSH keys, cloud credentials, CI/CD secrets, AI tool tokens, browser passwords and the LLM provider keys in a LiteLLM proxy database and exfiltrates them to a lookalike litellm.dev domain; sitecustomize.py starts an hourly daemon that reads a server address from a GitHub file, re-runs the stealer and executes downloaded code. Both run whenever any Python process starts, even without importing litellm....
Source Excerpt
The LiteLLM 1.107.0 release on PyPI carries a credential stealer and a remote code execution backdoor. All seven wheels (Linux, macOS, Windows) install them as three files in site-packages. Both run when any Python process starts on the host, even one that never imports litellm.
Obsidian Notes
- 正文经 curl 抓取原文页面校验(opencli 导航被拒);导读与价值判断锚定在条目已有摘要与原文页面可核对的事实上,未补充抓取内容之外的细节。