Skip to main content
Mallory
Back to intelligence
package-repository-poisoningbuild-pipeline-compromisecredential-stealer-activityai-platform-security

Backdoored LiteLLM PyPI Releases Stole Secrets and Planted Kubernetes-Aware Malware

Updated 25d agoFirst seen Mar 25, 202647 sources

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.

Share:
Backdoored LiteLLM PyPI Releases Stole Secrets and Planted Kubernetes-Aware Malware
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

15 events from the most recent confirmed update back to the earliest known activity.

15 EVENTS
Apr 3, 20262mo ago

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.

AI Firm Mercor Confirms Breach as Hackers Claim 4TB of Stolen Data
Apr 1, 20262mo ago

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.

Mercor confirms security incident tied to LiteLLM supply chain attack | The Record from Recorded Future News
Mar 27, 20262mo ago

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.

33K Exposed LiteLLM Deployments and the C2 Servers Behind TeamPCP's Supply Chain Attack
Mar 26, 20262mo ago

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.

Your AI Gateway Was a Backdoor: Inside the LiteLLM Supply Chain Compromise | Trend Micro (US)

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.

Mar 25, 20262mo ago

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.

Mar 24, 20262mo ago

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.

Mar 23, 20262mo ago

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.

Mar 19, 20262mo ago

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.

The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

Backdoored LiteLLM PyPI Releases Stole Secrets and Planted Kubernetes-Aware Malware | Mallory