Skip to content
Tencent Zhuque Lab·Indexed by this site · Originally published· Event →SelectedAttention38

Lessons on AI infrastructure security attack and defense from the LiteLLM poisoning incident with 480 million downloads

从4.8亿下载量的 LiteLLM投毒事件,看 AI 基础设施安全攻与防

AI summary

Versions 1.82.7 and 1.82.8 of the LLM gateway tool LiteLLM were implanted with malicious code. The attackers first compromised Trivy, the container vulnerability scanner used in its CI/CD pipeline, stole the PYPI_PUBLISH token from environment variables, and then published malicious packages to PyPI. The malicious file litellm_init.pth exploits the mechanism where Python's site module automatically executes .pth files at startup, triggering without needing to import litellm, and steals SSH private keys, cloud service credentials, K8s configurations, encrypted wallets, and other data, which is encrypted with AES-256-CBC and a 4096-bit RSA key before being sent to the fake domain models.litellm[.]cloud. The attack also reads K8s cluster Secrets, creates privileged containers on kube-system nodes, and implants systemd-level backdoors, writing ~/.config/sysmon/sysmon.py locally for persistence.

Why it was selected

A full review of the attack chain and impact scope of the LiteLLM poisoning, along with an actionable checklist for investigation and credential rotation.

Read originalmatrix.tencent.com