NVDA 228.87 ▲0.66%GOOGL 351.16 ▼1.07%MSFT 498.00 ▼0.72%AMD 623.77 ▲1.34%INTC 123.86 ▲1.71%TSMC 452.00 ▲1.54%AMZN 254.98 ▼1.34%META 736.60 ▼0.63%AAPL 339.75 ▲0.23%PLTR 184.99 ▲1.04%
Markets at last close

Security

Compromised LiteLLM releases exposed developer secrets

·1 min read

LiteLLM, a Python library that provides a unified API wrapper for LLM providers including OpenAI, Anthropic and Azure, became the center of a software supply chain attack in March 2026. Attackers gained access to the maintainer’s PyPI account and published malicious releases, 1.82.7 and 1.82.8, which could be pulled through standard installs or as transitive dependencies.

FutureSearch engineers discovered the compromise while testing a Cursor MCP plugin that depended on LiteLLM. After Python started, their machine became unresponsive from RAM exhaustion, leading them to a litellm_init.pth file described as a 34,628-byte, double base64-encoded payload in site-packages/. The malware ran in stages to collect environment variables, cloud credentials, Kubernetes configs, SSH keys, Docker configs, CI/CD secrets, database credentials and crypto wallets, then exfiltrated the data to attacker-controlled infrastructure.

The malicious versions were live for about two hours, but the risk was amplified by LiteLLM’s use in AI apps, backend services, CI/CD pipelines and cloud infrastructure. The incident was also tied to a broader campaign linked to the TeamPCP group and a previous breach involving Trivy and other tools.

Users were advised to remove affected versions, upgrade to a known clean release, rotate API keys, cloud credentials, SSH keys and CI/CD tokens, audit logs and outbound traffic, check for the litellm_init.pth file, and rebuild high-risk environments from a clean state. Longer-term mitigations include dependency pinning, scanning, signature verification and SBOM tracking.

Originally reported by herodevs.comRead the source →
Related coverage