# LiteLLM 1.107.0 shipped a credential stealer on PyPI and the Docker latest tag

> LiteLLM 1.107.0 shipped a credential stealer on PyPI and the Docker latest tag, also tracked as litellm 1.107.0 / LiteLLM supply chain compromise October 2026 / cook.pth is a critical-severity threat campaign HOL Guard tracked from Oct 21, 2026 to Oct 21, 2026, verified against 5 primary sources and last reviewed Oct 21, 2026. Active tracking has ended and the record remains published as a permanent historical research record.

Canonical: https://hol.org/guard/security/campaigns/litellm-1-107-0-supply-chain-compromise-credential-stealer
Last reviewed: Oct 21, 2026
Tracking status: historical / inactive

## Key facts

- Severity: critical
- Confidence: high
- First observed: Oct 21, 2026
- Last observed: Oct 21, 2026
- Primary sources: 5
- Reviewed artifacts: 2

## What happened

All seven litellm 1.107.0 wheels uploaded to PyPI at 11:39 UTC on 2026-10-21 contained three extra files under litellm-1.107.0.data/purelib/ (cook.pth, cook.py, sitecustomize.py) that pip installs into site-packages root. cook.pth imports cook.py at every Python start; it collects host info, browser passwords, SSH and cloud credentials, CI and registry tokens, AI tool configs, other processes' environments and, when DATABASE\_URL is set, LiteLLM's credential and model tables, then POSTs an encrypted bundle to www.litellm.dev. sitecustomize.py adds an hourly remote-code loader keyed off a GitHub dead-drop file. The v1.107.0 git tag is clean; the sdist pyproject.toml carries an injected maturin data = "cook" line. PyPI removed 1.107.0. The Docker v1.107.0 image and the floating latest, main-latest and main-stable tags on GHCR and Docker Hub share digest sha256:1bbcb1443bc962e45f5aad53fe3d2c30600e0379715fb6c664cdd3ac126c339e and still resolved to it at 13:44 UTC.

## Evidence limits

Payload analysis comes from AISLE and the public incident report (issue #47826). The claim that the release was built from the lookalike repository Berri-AI/litellm is the reporter's finding, not yet confirmed by BerriAI. HOL verified registry tag digests directly but did not unpack the Docker image. Number of affected installs is unknown.

- Installs pinned to 1.106.2 or earlier, and Docker images pinned to version tags other than v1.107.0, are reported clean
- The 1.107.0 sdist lacks the payload files though its pyproject.toml is tampered
- Installs after PyPI removal resolve to 1.106.2
- This is not a remotely exploitable flaw in LiteLLM code; impact is on machines that installed the poisoned build
- A passing cosign verify on the v1.107.0 image is not evidence of a clean image

## Timeline

- Oct 18, 2026 — other: GitHub repository hosting the stage-2 dead-drop file is created.
- Oct 21, 2026 — first observed: litellm 1.107.0 wheels with credential stealer uploaded to PyPI.
- Oct 21, 2026 — disclosure: AISLE dependency firewall flags the first malicious wheel.
- Oct 21, 2026 — other: Docker latest, main-latest and main-stable tags move to the v1.107.0 image digest.
- Oct 21, 2026 — disclosure: Public incident report opened on BerriAI/litellm.
- Oct 21, 2026 — registry action: PyPI has removed 1.107.0; latest resolves to 1.106.2. Docker floating tags still point at the infected digest.

## Reviewed artifacts

- litellm@1.107.0 (pypi)
- ghcr.io/berriai/litellm@v1.107.0, latest, main-latest, main-stable @ sha256:1bbcb1443bc962e45f5aad53fe3d2c30600e0379715fb6c664cdd3ac126c339e (docker)

## Sources

- [AISLE: Compromised LiteLLM package found 3 minutes after release](https://aisle.com/blog/litellm-11070-on-pypi-shipped-a-credential-stealer) — research, observed Oct 21, 2026
- [BerriAI/litellm issue #47826: litellm 1.107.0 compromised](https://github.com/BerriAI/litellm/issues/47826) — other primary, observed Oct 21, 2026
- [LiteLLM v1.107.0 GitHub release](https://github.com/BerriAI/litellm/releases/tag/v1.107.0) — other primary, observed Oct 21, 2026
- [PyPI litellm release history](https://pypi.org/project/litellm/) — other primary, observed Oct 21, 2026
- [Docker Hub litellm/litellm tags](https://hub.docker.com/r/litellm/litellm/tags) — other primary, observed Oct 21, 2026

## Machine-readable exports

- [JSON record](https://hol.org/guard/security/campaigns/litellm-1-107-0-supply-chain-compromise-credential-stealer/data.json)
- [Artifact CSV](https://hol.org/guard/security/campaigns/litellm-1-107-0-supply-chain-compromise-credential-stealer/artifacts.csv)
- [STIX 2.1 bundle](https://hol.org/guard/security/campaigns/litellm-1-107-0-supply-chain-compromise-credential-stealer/stix.json)
- [Markdown record](https://hol.org/guard/security/campaigns/litellm-1-107-0-supply-chain-compromise-credential-stealer/index.md)

Corrections: https://hol.org/guard/security/campaigns/litellm-1-107-0-supply-chain-compromise-credential-stealer/corrections
