Backdoored LiteLLM PyPI Releases Stole Secrets and Planted Kubernetes-Aware Malware
Attackers published malicious litellm versions 1.82.7 and 1.82.8 to PyPI after compromising the project’s release pipeline, turning a widely used AI gateway library into a credential-stealing malware delivery vehicle. Multiple reports link the intrusion to the broader TeamPCP supply-chain campaign and assess that stolen credentials from the earlier Trivy compromise were likely used to obtain LiteLLM publishing access. The tainted releases were available for roughly two to three hours before PyPI quarantined or yanked them, but researchers warned the exposure could be widespread because LiteLLM is heavily deployed across cloud and AI environments and was observed in about 36% of cloud environments in Wiz telemetry.
The malware harvested environment variables, cloud credentials, SSH keys, .env files, CI/CD secrets, Kubernetes tokens, database settings, Docker and Git credentials, AI provider API keys, and cryptocurrency wallet data, then encrypted and exfiltrated the data to models.litellm[.]cloud. It also established persistence through a disguised systemd service such as sysmon.service and polled checkmarx[.]zone for follow-on payloads; in Kubernetes environments, it attempted lateral movement by creating privileged pods and seeking node-level persistence. Version 1.82.8 posed the highest risk because a malicious Python .pth file executed automatically whenever the Python interpreter started, even if LiteLLM was never imported. Defenders were urged to treat any installation of either version as a full compromise, isolate affected hosts and CI jobs, remove persistence, inspect clusters and build artifacts, block attacker infrastructure, and rotate all reachable credentials immediately.
How this story unfolded
15 events from the most recent confirmed update back to the earliest known activity.
Lapsus$ claims theft of 4TB of Mercor data
On 2026-04-03, the Lapsus$ extortion group claimed it had stolen 4TB of Mercor data, including candidate profiles, PII, employer data, source code, API keys, and secrets. Mercor had not confirmed the scope or authenticity of the alleged leak, and the claim was not independently verified.
Mercor confirms security incident tied to LiteLLM compromise
On 2026-04-01, Mercor confirmed it suffered a security incident linked to the LiteLLM supply-chain attack. The company said it was among the affected firms and had contained and remediated the incident with help from external forensic experts.
Researchers map TeamPCP C2 infrastructure and 33,688 exposed LiteLLM instances
On 2026-03-27, Hunt.io reported that it had identified 33,688 internet-facing LiteLLM deployments potentially exposed to the supply-chain compromise and mapped three related TeamPCP servers. The report also disclosed a previously unreported IP address, 46.151.182.203, linked to the models.litellm.cloud exfiltration infrastructure and described AdaptixC2 and Havoc servers tied to the campaign.
Researchers report bot-driven suppression of LiteLLM GitHub disclosure
On 2026-03-26, Trend Micro reported that discussion of the LiteLLM compromise on GitHub was rapidly suppressed by apparent bot activity, suggesting TeamPCP attempted to hinder disclosure and slow incident response. The report framed this as part of the actor's broader operational security measures during the supply-chain campaign.
Community releases detection tooling for LiteLLM compromise
On 2026-03-26, community and researcher updates highlighted new detection tools and indicators for identifying LiteLLM compromise. These supplemented earlier guidance to hunt for persistence artifacts, suspicious outbound traffic, and Kubernetes abuse tied to the malware.
PyPI lifts LiteLLM quarantine after malicious versions are yanked
By 2026-03-26, PyPI had lifted the quarantine on LiteLLM after versions 1.82.7 and 1.82.8 were yanked. Even after restoration, responders continued to advise treating any installation of the affected versions as a full compromise.
Researchers tie LiteLLM compromise to TeamPCP campaign
On 2026-03-25, multiple security firms publicly linked the LiteLLM incident to TeamPCP's wider cross-ecosystem campaign spanning Trivy, Checkmarx, npm, Docker Hub, and OpenVSX. The attribution was based on shared infrastructure, malware patterns, and the credential-theft chain from the earlier Trivy breach.
LiteLLM publishes official security update
On 2026-03-25, LiteLLM published an official actively maintained security update about the compromise. Guidance across reports advised users to remove versions 1.82.7 and 1.82.8, inspect for persistence, and rotate all credentials reachable from affected hosts.
LiteLLM maintainers open incident response and engage Mandiant
By 2026-03-25, LiteLLM said it was actively investigating the compromise and working with Mandiant on forensic analysis and remediation. The project also froze new releases while the incident was being handled.
PyPI quarantines LiteLLM after brief exposure window
On 2026-03-24, PyPI quarantined the LiteLLM project and removed or yanked the malicious versions after they had been available for roughly two to three hours. Several reports warned that the package's large footprint meant many environments may still have been exposed during that window.
Analysts identify multi-stage malware in compromised LiteLLM packages
On 2026-03-24, researchers determined the malicious releases contained a credential stealer and dropper that harvested secrets, exfiltrated them to attacker infrastructure, installed persistence via systemd, and attempted Kubernetes lateral movement. Version 1.82.8 was found to be especially dangerous because a malicious .pth file executed automatically on Python startup.
Researcher publicly reports suspicious behavior in new LiteLLM releases
On 2026-03-24, a user reported that LiteLLM 1.82.7 and 1.82.8 behaved suspiciously during setup, causing severe resource exhaustion and containing a base64-encoded payload in proxy_server.py. The report referenced an upstream GitHub issue and helped surface the compromise publicly.
Malicious LiteLLM 1.82.7 and 1.82.8 uploaded to PyPI
On 2026-03-24, attackers used valid publishing access to release trojanized LiteLLM versions 1.82.7 and 1.82.8 to PyPI without corresponding upstream GitHub source changes. Reporting links the upload to a compromised maintainer or CI/CD token stolen earlier in the Trivy incident.
Attackers register LiteLLM-themed exfiltration domain
On 2026-03-23, attackers reportedly registered models.litellm.cloud to receive encrypted data stolen by the malware. The domain was designed to resemble legitimate LiteLLM traffic and was later used as the main exfiltration endpoint.
TeamPCP compromises Trivy and steals downstream CI/CD credentials
On 2026-03-19, TeamPCP's broader supply-chain campaign began with the compromise of Trivy-related CI/CD infrastructure. Multiple reports say this exposed credentials later used against downstream projects, including LiteLLM's PyPI publishing pipeline.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
47 references tracked. Mallory keeps watching after this page renders.
The LiteLLM attack was a warning shot for Agentic AI supply chains | perspective | SC Media
scworld.com
Open sourcePython Supply-Chain Compromise - Schneier on Security
schneier.com
Open sourceAI Firm Mercor Confirms Breach as Hackers Claim 4TB of Stolen Data
hackread.com
Open sourceMercor Breach Linked to LiteLLM Supply-Chain Attack
bankinfosecurity.com
Open sourcePopular litellm Python package is the latest victim of TeamPCP's ongoing supply chain attack - JFrog Security Research
research.jfrog.com
Open sourceCompromised litellm PyPI Package Delivers Multi-Stage Credential Stealer
sonatype.com
Open sourcePopular LiteLLM PyPI package compromised in TeamPCP supply chain attack
bleepingcomputer.com
Open source[Security]: litellm PyPI package (v1.82.7 + v1.82.8) compromised - full timeline and status · Issue #24518 · BerriAI/litellm
github.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.



