Malicious LiteLLM 1.107.0 release steals cloud and developer credentials
The compromised LiteLLM 1.107.0 package installed a credential stealer and a backdoor that exfiltrated a wide range of secrets.
Security & privacy Datadog Security Labs 21 Oct 2026 Incident analysis Real-world evidence
Published as “LiteLLM supply chain compromise: What you need to know”
Why it matters
The compromise demonstrates how stolen developer tokens can be used to hijack trusted supply chains and exfiltrate a broad set of secrets.
Summary
Attackers published a malicious LiteLLM 1.107.0 release on PyPI and Docker Hub for about two hours, inserting three files that run on every Python interpreter start. The payload steals cloud, developer, AI-tool, browser and proxy credentials and sends them encrypted to a look-alike domain, while a backdoor checks a remote GitHub file hourly for additional code. The writeup provides forensic details, remediation steps, and highlights the need for stricter build provenance controls. Evidence is based on real-world telemetry from the compromised releases.
What they found 3
- Malicious version 1.107.0 was published on PyPI and Docker images for approximately two hours before removal.
“The malicious release, version 1.107.0, was available on PyPI and in LiteLLM's official Docker images for approximately two hours before being removed.”
- The release adds three files (cook.pth, cook.py, sitecustomize.py) that run automatically on every Python interpreter start.
“The release adds three files to the victim Python installation’s site-packages directory: cook.pth cook.py sitecustomize.py”
- The backdoor checks a GitHub-hosted file hourly and, if a domain is present, downloads and runs Python code from it.
“Every hour, checks a certain file hosted on a fixed GitHub repository ( letters9813/pythonclient-test/main/domain.txt , now removed) for a domain, then downloads and runs Python code from it.”
Caveats 4
- That file only ever held test values, so no second stage payload was observed in the wild.
- At time of writing, it was not yet clear how the affected credentials were initially compromised.
- No connection between the two compromises has been established at time of writing.
- The file only ever held test values, so no second stage payload was observed in the wild.
What’s new here 4
- First known supply chain compromise of LiteLLM in 2026 using stolen GitHub CLI OAuth tokens.
- Malicious version 1.107.0 was live for ~2 hours, affecting a package with ~23 million weekly downloads.
- Payload drops .pth and sitecustomize files that execute on any Python start, stealing a broad set of secrets.
- Provides concrete remediation steps and emphasizes controls on release workflows and token protection.