LiteLLM Breach Exposes AI Supply Chain Risk
Attackers compromised LiteLLM's PyPI packages 1.82.7 and 1.82.8 on March 24, 2026, distributing credential-stealing malware before PyPI quarantined them. LiteLLM identified the releases as unauthorized and later released v1.83.0 through a new pipeline with isolated environments and stronger release controls. Security researchers linked the incident to the broader TeamPCP supply-chain campaign.
Attackers compromised LiteLLM's PyPI packages 1.82.7 and 1.82.8 on March 24, 2026, placing malicious code in a widely used Python layer for routing requests across LLM providers. LiteLLM's security update states that the packages were live from 10:39 UTC for about 40 minutes before PyPI quarantined them, while Snyk reports an approximately three-hour exposure window ending around 13:38 UTC. The differing durations reflect the available reporting, but both accounts identify the same two affected releases.
LiteLLM reported that 1.82.7 contained a malicious payload in proxy_server.py, and that 1.82.8 added a litellm_init.pth file as well as payload code. The GitHub incident record describes 1.82.8 as capable of triggering during any Python startup, rather than only when an affected LiteLLM module was imported. Datadog Security Research and Sonatype characterized the malware as credential-stealing code with follow-on compromise capabilities.
Compromise path and affected deployments
LiteLLM's March 24 update said the investigation indicated that a maintainer's PyPI account may have been compromised. Snyk reports that stolen credentials from a prior Trivy compromise were used to gain unauthorized access to the LiteLLM publishing pipeline. Datadog and Snyk linked the event to a broader campaign tracked as TeamPCP, which they report had previously compromised elements of the Trivy supply chain.
The LiteLLM GitHub incident record stated that the malicious versions were uploaded directly to PyPI rather than released through the project's official GitHub CI/CD process. That distinction matters operationally: source repository integrity, CI workflow integrity, package registry publishing rights, and delivered artifact integrity are separate controls.
LiteLLM said users of its official Proxy Docker image were not affected because its dependencies were pinned in requirements.txt and did not rely on the compromised PyPI versions. That statement does not establish safety for other installation paths. Datadog recommended treating hosts and CI jobs that installed either affected LiteLLM version as full credential-exposure events, including investigation for persistence, outbound traffic, and Kubernetes activity.
Release controls after the incident
LiteLLM said it deleted the compromised packages, rotated maintainer accounts, and published SHA-256 checksums for audited PyPI and Docker releases. In a March 30 update, the company announced clean v1.83.0, describing a new release pipeline with isolated environments, stronger security gates, and separation between release stages. It also stated that its codebase had been verified and that no malicious code had been pushed to main.
For ML platform teams, the incident is a concrete example of why LLM gateways and SDK dependencies belong in the same software supply-chain threat model as build tools, CI actions, and cloud credentials. Packages in these paths often run inside environments holding provider API keys, deployment credentials, and Kubernetes configuration. Comparable incidents across open-source ecosystems have made artifact pinning, hash verification, provenance checks, least-privilege publisher accounts, and rapid secret rotation central controls rather than optional hardening.
Key Points
- 1Malicious LiteLLM releases reached the real PyPI project, demonstrating that trusted package publisher accounts remain a critical security boundary.
- 2The litellm_init.pth mechanism reportedly enabled execution at Python startup, increasing exposure beyond applications that explicitly imported LiteLLM proxy components.
- 3The incident underscores the value of artifact verification and credential rotation alongside repository source review.
Scoring Rationale
The compromise affected a broadly used LLM integration package and involved code capable of harvesting credentials from developer and CI environments. Its technical lessons are highly relevant to ML platform security. The incident occurred in March 2026.
Sources
Primary source and supporting public references used for this report.
View 5 more sources
- [Security]: litellm PyPI package (v1.82.7 + v1.82.8) compromised — full timeline and status · Issue #24518 · BerriAI/litellmgithub.com
- LiteLLM and Telnyx compromised on PyPI: Tracing the TeamPCP supply chain campaignsecuritylabs.datadoghq.com
- How a Poisoned Security Scanner Became the Key to Backdooring LiteLLMsnyk.io
- Your AI Stack Just Handed Over Your Root Keys: Inside the litellm PyPI Breachtrendmicro.com
- Compromised litellm PyPI Package Delivers Multi-Stage Credential Stealersonatype.com
Practice interview problems based on real data
1,625 SQL & Python problems across 15 industry datasets — the exact type of data you work with.
Try 250 free problems

