A supply chain attack on March 24 compromised versions 1.82.7 and 1.82.8 of LiteLLM, a popular Python library used by thousands of developers to connect AI applications to large language models. The threat group TeamPCP hijacked PyPI credentials through a poisoned Trivy security scanner in LiteLLM's CI/CD pipeline and uploaded malicious packages directly to the Python Package Index.
The malware plants a .pth file that executes automatically on every Python startup — no import needed. It harvests SSH keys, AWS/GCP/Azure credentials, .env files, and cryptocurrency wallets, encrypts them, and exfiltrates data to a command server. On Kubernetes clusters, it reads all secrets across namespaces and deploys persistent backdoor pods on every node.
LiteLLM confirmed the incident and removed the compromised versions from PyPI within hours. Security researchers urge anyone who installed or upgraded LiteLLM on March 24 between 10:39 and 16:00 UTC to rotate all credentials immediately and check for unauthorized artifacts like ~/.config/sysmon/sysmon.py.
