Documented Incident · INC-OBS-010 · Critical severity
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 dossier metadata
- Case ID
INC-OBS-010- Classification
- Incident
- Date
- Severity
- Critical
- Sector
- Cloud & AI Infrastructure
- Attack vector
- Supply Chain
- System type
- Unified LLM API Proxies & Enterprise AI Gateways
- Reference URI
https://securitylabs.datadoghq.com/articles/litellm-supply-chain-compromise/
Defensive takeaway
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.
Mapped AI security techniques
- Supply Chain Compromise: Software AML.T0010.001
- User Execution: Malicious Package AML.T0011.001
- Unsecured Credentials AML.T0055
- OS Credential Dumping AML.T0090
- AI Agent Tool Credential Harvesting AML.T0098
- Event Triggered Execution AML.T0142
Mapped defensive controls
- Control Access to AI Models and Data at Rest AML.M0005
- Code Signing AML.M0013
- Verify AI Artifacts AML.M0014
- Maintain an AI Bill of Materials AML.M0023
Source citation records
- LiteLLM Supply Chain Compromise Technical Analysis · Datadog Security Labs ·