Backdoored LiteLLM PyPI Releases Stole Secrets and Targeted Kubernetes Clusters
Supply Chain Risk · 33 sources · Updated 3mo ago · First seen Mar 25, 2026

Malicious versions 1.82.7 and 1.82.8 of the widely used litellm Python package were uploaded to PyPI after attackers used compromised publishing access, turning a popular AI gateway library into a supply-chain malware delivery vehicle. Researchers and project maintainers said the tainted code was absent from the upstream GitHub repository, indicating the compromise occurred in the release pipeline or during package publication. The malware executed on import in 1.82.7, while 1.82.8 added a litellm_init.pth file that triggered on every Python interpreter startup, greatly expanding exposure even beyond direct use of the package. PyPI removed or quarantined the malicious releases, and 1.82.6 was identified as the last known clean version.
The payload harvested a broad range of secrets, including cloud credentials, SSH keys, API tokens, Kubernetes service-account tokens, database and CI/CD secrets, .env files, shell histories, TLS keys, and cryptocurrency wallet data, then encrypted and exfiltrated the data to attacker-controlled infrastructure including models.litellm.cloud. Multiple reports said the malware also attempted Kubernetes lateral movement by enumerating clusters, dumping secrets, and deploying privileged pods across nodes, while establishing Linux persistence through a disguised systemd user service that contacted checkmarx.zone for follow-on payloads. Researchers linked the intrusion with high confidence to TeamPCP, tying it to the earlier Trivy compromise and a broader campaign spanning GitHub Actions, Docker Hub, npm, OpenVSX, and PyPI; organizations that installed and ran the affected versions were urged to assume full credential compromise, rotate secrets, inspect for persistence, and review Kubernetes environments for rogue activity.


