Skip to content
Submit incident
AII-1000-63331
ReportedReported by fewer than three independent publishers, with no official finding.

Malicious LiteLLM PyPI package compromises developer systems with credential stealer

Threat actor TeamPCP injected malicious code into versions 1.82.7 and 1.82.8 of the widely-downloaded litellm Python package on PyPI, creating a backdoor that harvests credentials and cloud secrets from developer systems. The compromised packages remained available for at least two hours before detection by security researchers.

24 March 2026 Β· LiteLLM Β· Security and cyberattacks
24 March 2026
AII-1000-633312 sources ↓
Quick facts
Category
Security and cyberattacks
Source
El-Balad.com
Date
24 March 2026
Drafted by
Raidu Incident Detection

What happened

Versions 1.82.7 and 1.82.8 of the litellm Python package were published to PyPI containing malicious code injected by threat actor TeamPCP. Version 1.82.8 contains a .pth file named 'litellm_init.pth' that executes on every Python process startup without requiring import calls, while version 1.82.7 requires an import to activate.

The malicious releases remained available on PyPI for at least two hours. The three-stage payload harvests SSH keys, environment variables, AWS credentials, GCP service account tokens, Azure secrets, Kubernetes configuration files, database passwords, .gitconfig, shell history, and cryptocurrency wallet files, then encrypts and exfiltrates them with RSA-4096 and AES-256-CBC encryption.

Reported impact

LiteLLM receives over 95 million monthly downloads and sits deep in the AI tooling stack. The malicious packages posed exposure to developer laptops, CI/CD runners, and cloud infrastructure.

Independent analysis by FutureSearch identified the compromise when a transitive dependency pulled into an MCP plugin caused a runaway fork bomb and exhausted system RAM.

Index analysis

Sonatype Security Research Team tracked the malicious releases as sonatype-2026-001357. The compromised package's high distribution rate amplified risk during the release window.

Classification

Category
Security and cyberattacks
Industry
Digital security
Harm status
Potential harm
Intent
Intentional
Timing
Post-deployment
Harm types
Other
Harmed
Business
Failure modes
Data leak
AI systems
LiteLLM

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

El-Balad.com
Litellm Compromise Reveals Backdoor Risk: Multi-Stage Malware Steals Cloud, Crypto and Chat Keys
25 March 2026
IT Security News - cybersecurity, infosecurity news
Compromised LiteLLM Package With 95M Downloads Tied to TeamPCP, After Trivy & KICS Hacks - IT Security News
25 March 2026