On 24 March 2026, something happened that made the AI developer community sit up and take notice: LiteLLM, one of the most widely used open-source gateways for LLM APIs, fell victim to a targeted supply chain attack. The criminal group TeamPCP managed to upload poisoned versions of the PyPI package โ potentially compromising hundreds of thousands of developer systems.
What exactly happened
The attack unfolded in several stages. First, TeamPCP compromised the Trivy security scanner that LiteLLM uses in its CI/CD pipeline. Trivy was installed via apt without a pinned version โ a classic mistake. The manipulated version then stole the PYPI_PUBLISH token straight from the GitHub Actions environment.
With this token, the attackers uploaded versions 1.82.7 and 1.82.8 directly to PyPI โ bypassing the official build process. Both versions contained a hidden litellm_init.pth file in Python's site-packages directory that was executed automatically every time Python started.
The loot: everything of value
The malware was a three-stage payload: orchestrator, credential harvester and persistence daemon. What it collected reads like a nightmare for any DevOps engineer:
SSH keys, AWS/GCP/Azure IAM credentials, Kubernetes configs, Docker registry tokens, npm auth tokens, HashiCorp Vault tokens, crypto wallets โ and, of course, every LLM API key for every configured provider. All automatically, without the user having to do anything other than pip install litellm.
My take
This attack is a textbook example of how fragile the AI toolchain really is. LiteLLM has ~480 million downloads โ it literally sits as a gateway between developer applications and almost every major LLM provider. Whoever controls this package controls API keys for GPT-4, Claude, Gemini and dozens of other models.
Particularly worrying: the attack didn't rely on a zero-day vulnerability but on a simple DevOps mistake โ an unpinned dependency in the CI pipeline. That can happen to anyone. And it will happen again.
What you should do now
If you use LiteLLM in a project: check immediately whether you have used version 1.82.7 or 1.82.8. If so, treat all credentials on the affected system as compromised and rotate them โ API keys, SSH keys, cloud credentials, everything.
Going forward: always pin dependencies in CI/CD pipelines to fixed versions. Use pip install litellm==X.Y.Z instead of an unversioned install. And consider adding package signatures or a private package repository as an extra layer of protection.
Sources: LiteLLM Security Update ยท ReversingLabs: TeamPCP ยท Snyk Analysis