# LiteLLM 1.107.0 on PyPI ships a credential stealer that runs in every Python process

Original title: Compromised LiteLLM 1.107.0 on PyPI Installs a Credential Stealer and Backdoor

> Hacker News story 50181114 · language: en · submitted 2026-10-21
> Web version: https://zeli.app/story/50181114
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 587 · by [abhisek](<https://news.ycombinator.com/user?id=abhisek>) · 💬 191
[original](<https://safedep.io/litellm-pypi-compromise-credential-stealer-backdoor/>) · [HN discussion](<https://news.ycombinator.com/item?id=50181114>)

## Summary

The LiteLLM 1.107.0 release on PyPI carries a credential stealer and a remote code execution backdoor hidden in all seven wheels. A single added line in the build config copies a cook/ folder into site-packages, where cook.pth and sitecustomize.py execute on every Python startup — even without importing litellm. The stealer harvests SSH keys, cloud and CI/CD secrets, browser passwords, and AI tool tokens, then beacons hourly to an attacker-controlled GitHub file. The upstream GitHub source is clean.

## Key quote

> The sdist leaves out the cook/ folder, so this line is the only visible change.

## HN discussion (191 comments)

### [linsomniac](<https://news.ycombinator.com/item?id=50184883>)

> Just going to remind you all that https://canarytokens.org/ exists.

### [crossroadsguy](<https://news.ycombinator.com/item?id=50184801>)

> All the sandbox-exec and all the Lulu rules are not going to protect against something like this.
>
> At one point permission pop-up fatigue sets in we start giving any permission as if it's normal. We also become desensitised to isntalling tools: brew, npm, it becomes second nature.
>
> "Oh, those 367 tools installed by package X? Yeah yeah, must be normal, that's how all these work now".
>
> "Brew shows 59 packages outdated?". "Must upgrade". "Yeah, done. Perfect".
>
> And the advent of agents and harnesses. It's not a matter of whether, it's when!  OSes need to do something about it. Help users have complete separate "program space" at ease with better, easier, and lighter VMs if nothing else. I know, I know - Unix and Linux solved all this even before Alexander III of Macedon started wearing his nappies. Of course.

### [threecheese](<https://news.ycombinator.com/item?id=50186105>)

> "Attackers compromised 3 unique developer github credentials" is a little scary; this seems systemic - if three developers had their keys stolen, it implies the real problem is elsewhere.
>
> They revoked all but one developers, which is probably the right approach, but I'd pin LiteLLM to "something before this version" and keep it there until further notice!

### [pkulak](<https://news.ycombinator.com/item?id=50184311>)

> How could this happen to a project with 55k commits in three years?

### [madamelic](<https://news.ycombinator.com/item?id=50183673>)

> I am not following how someone snuck the files into the release.
>
> All I read was that it creates a directory from the build file but seemingly no description how new files or added dependencies slipped by. Was `cook.pth` a dependency that got automatically downloaded from PyPI on install and then the build system put it into dependencies?
>
> \--
>
> Leaving this for others:
>
> \> BerriAI’s private release pipeline built these wheels from an attacker-modified git source. The attacker could have used a compromised maintainer or bot credential, a private branch or mirror, or the reference the pipeline builds from. A stolen PyPI token used from the attacker’s own machines fits the evidence less well.
>
> Makes sense. It was that a maintainer or the private pipeline was attacked and the malicious dependency was injected there by squatting on the maintainer's local copy rather than the dependency being hijacked for everyone. Very clever.

### [yujonglee](<https://news.ycombinator.com/item?id=50185595>)

> Official Incident Post: https://docs.litellm.ai/blog/security-incident-oct-21-2026

### [stbenjam](<https://news.ycombinator.com/item?id=50182491>)

> IMHO defaults for uv, npm, etc should all have a cooldown for 24 - 48 hours by default, you should have to go out of your way to install something newer.

### [saasisdead](<https://news.ycombinator.com/item?id=50184598>)

> Last time they had this, I just vibe coded a version of lite llm and it actually works better

---

## Cite

- Page: https://zeli.app/story/50181114
- Date: 2026-10-21
- Source: safedep.io (https://safedep.io/litellm-pypi-compromise-credential-stealer-backdoor/)
- Hacker News: https://news.ycombinator.com/item?id=50181114

## Other languages

- zh: https://zeli.app/zh/story/50181114 · markdown: https://zeli.app/zh/story/50181114.md
- ja: https://zeli.app/ja/story/50181114 · markdown: https://zeli.app/ja/story/50181114.md
- ko: https://zeli.app/ko/story/50181114 · markdown: https://zeli.app/ko/story/50181114.md
- de: https://zeli.app/de/story/50181114 · markdown: https://zeli.app/de/story/50181114.md
- es: https://zeli.app/es/story/50181114 · markdown: https://zeli.app/es/story/50181114.md
- ru: https://zeli.app/ru/story/50181114 · markdown: https://zeli.app/ru/story/50181114.md
