Supply chain

A poisoned LiteLLM wheel sat on PyPI collecting keys

SafeDep found a credential stealer and an hourly backdoor inside the LiteLLM 1.107.0 wheel. LiteLLM says stolen GitHub tokens let an attacker rewrite its release workflow.

  • 1.107.0the one poisoned release
  • 3 filesdropped into site-packages
  • every hourthe backdoor fetched new orders
Official blog
SafeDepsafedep.io

“The LiteLLM 1.107.0 release on PyPI carries a credential stealer and a remote code execution backdoor.”

Compromised LiteLLM 1.107.0 on PyPI Installs a Credential Stealer and Backdoor

451 points152 commentsHacker News thread Counted 22 Oct 2026
Read the original on safedep.io Quoted from the source above. Recreated as text by Voxaka, not a screenshot.

What landed. Three files go into site-packages and Python loads two of them every time it starts, which means the code runs whether or not anything imports LiteLLM. One collects SSH keys, cloud credentials, CI secrets, AI tool tokens and browser passwords, encrypts the pile and sends it to the attacker. The other keeps a hold on the machine and, once an hour, reads commands from a GitHub repository and runs them.

How it got in. The implants were injected into the PyPI wheel build through a change to pyproject.toml, and SafeDep notes that no public commit in BerriAI/litellm carries it. LiteLLM has since confirmed the route. Stolen GitHub OAuth tokens were used to disable branch protections and alter the release workflow, which published artefacts from a lookalike repository called Berri-AI/litellm, one hyphen away from the real one.

What is clean. SafeDep lists 1.106.2, 1.107.0rc1 and 1.107.0rc2 as clean, and PyPI removed the bad release after the report. The pip package was not the only carrier. LiteLLM also names the Docker tags v1.107.0, latest, main-latest and main-stable, so a container that pulled on 21 October needs the same treatment.

If that version touched a machine you own, every secret on it is spent. A startup hook runs for any Python process, so an unrelated cron job was enough to trigger the theft. LiteLLM says to delete the files, kill the processes, reinstall 1.106.2 and rotate every key the machine could reach. It is also the second LiteLLM compromise this year after the March attack on versions 1.82.7 and 1.82.8, which is the detail worth taking to whoever signs off your dependency policy.

More from the news desk

All news →