LiteLLM 1.107.0供应链投毒
SafeDep分析称,LiteLLM 1.107.0面向Linux、macOS和Windows的七个安装包均植入了三个恶意文件,即使其他Python程序未导入LiteLLM,也可能在进程启动时触发。PyPI及容器镜像仓库已移除受影响版本和镜像,LiteLLM调查称攻击者利用三名工程师遭窃取的GitHub凭据修改发布流程,但公开源码标签中并不存在这些恶意文件。LiteLLM还提出Claude Code可能在特定情况下把GitHub CLI OAuth令牌写入回复并被日志记录,但团队尚未确认最初入侵路径,也不能断定Claude Code导致了令牌泄露。
受污染软件包可窃取AI服务商API密钥以及云端、浏览器、SSH和开发工具凭据,攻击者还借官方发布流程分发了恶意代码。
• Oct 21, 2026 •6 min read
On this page
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. The upstream GitHub source does not contain them. PyPI has since removed the release.
Versions 1.106.2, 1.107.0rc1, and 1.107.0rc2 are clean. The companion packages that 1.107.0 pins, litellm-proxy-extras==0.4.110 and litellm-enterprise==0.1.78, are also clean.
What the attack does
Installing litellm==1.107.0 places three files in site-packages. Python loads two of them each time it starts.
#LiteLLM#PyPI#Docker Hub#GitHub Container Registry#GitHub#Anthropic#Claude Code