Incident report

LiteLLM PyPI Supply Chain Compromise (v1.82.7 / v1.82.8) Installing Credential Hooks

On March 24, 2026, threat actors compromised the PyPI release pipeline for LiteLLM, publishing trojanized package versions `1.82.7` and `1.82.8` of the widely adopted unified LLM proxy library. The malicious wheels dropped Python startup hooks (`.pth` / `sitecustomize.py`) that executed automatically whenever the Python interpreter started, harvesting cloud IAM credentials, Kubernetes secrets, and centralized OpenAI/Anthropic/Bedrock API keys held by AI gateways. Because enterprises deploy LiteLLM as a central broker holding master keys for every model provider, gateway compromise created an outsized blast radius. Maintainers yanked the poisoned versions, rotated PyPI credentials, and advised immediate secret rotation across affected environments.

Incident record

Reported
Severity
Critical
Vector
Supply Chain
Affected system type
Unified LLM API Proxies & Enterprise AI Gateways
Reference URI
https://securitylabs.datadoghq.com/articles/litellm-supply-chain-compromise/

Inspect in Interactive Incidents Hub

Defensive lesson

Pin verified wheel digests for AI gateway dependencies, scan installed Python site-packages for unauthorized .pth hooks, and use short-lived IAM roles rather than static keys.

Research citation

Referenced techniques