Blue LiteLLM logo and wordmark centered on white
Blue LiteLLM logo and wordmark centered on white
+ AI News

Compromised LiteLLM 1.107.0 package carries a credential stealer and backdoor

SafeDep reports that LiteLLM 1.107.0 targets provider API keys and other credentials, with malicious code that runs at Python startup.

The LiteLLM 1.107.0 release on PyPI contained a credential stealer and a backdoor, according to SafeDep’s October 21 analysis. The malicious code targeted credentials used by AI infrastructure, including provider API keys stored in a LiteLLM proxy database. Python startup could trigger it even when an application never imported LiteLLM.

This was a compromised software dependency. The reported attack ran through the package and its release process, rather than a vulnerability in an underlying model. Switching which model a proxy calls would leave that package compromise unresolved.

What the release exposed

SafeDep found three planted files in all seven published wheels for Linux, macOS and Windows. A cook.pth file imports the stealer in cook.py at Python startup. The third file, sitecustomize.py, starts a background process that can fetch and execute further code.

The stealer reads DATABASE_URL and targets two LiteLLM proxy tables that hold provider API keys. Its other targets include cloud credentials, SSH keys, AI development tool tokens and process environment variables. It encrypts collected data and uploads it to www.litellm[.]dev.

SafeDep says the backdoor checks a GitHub file every hour for a server address, reruns the stealer and downloads code to execute. The GitHub account returned 404 by 13:40 UTC on October 21. SafeDep could not recover the server address, so what any earlier second-stage download did remains an open question.

Which artifacts were affected

PyPI removed 1.107.0 by 13:23 UTC on October 21, SafeDep reports. Docker images tagged v1.107.0, latest, main-latest and main-stable on Docker Hub and GHCR also carried the code between 11:46 and 14:20 UTC that day.

SafeDep identifies 1.106.2, 1.107.0rc1 and 1.107.0rc2 as clean. It also identifies the pinned companion packages litellm-proxy-extras==0.4.110 and litellm-enterprise==0.1.78 as clean.

The upstream GitHub source lacked the planted files. Citing LiteLLM’s incident report, SafeDep says an attacker used stolen developer credentials to redirect a private release workflow to a lookalike repository. The official pipeline then built, signed and published the artifacts.

Sources

The AI Feed Desk

The AI Feed Desk

Editorial desk

The AI Feed Desk tracks AI provider updates, model releases, agent tooling, and enterprise adoption, turning fast-moving announcements into source-linked context for builders and operators.

Noticed a typo, incorrect information, or translation error?

Tell us so we can fix it.

Help Improve This Article

Related Articles

1Password diagram shows a browser agent requesting a login, a person approving it, and the agent retrieving an airline invoice

1Password adds approved sign-ins for AI agents without exposing passwords

1Password for Agents lets users approve account sign-ins while keeping passwords hidden from the agent. Approval still means trusting it with account access.

The AI Feed Desk

By The AI Feed Desk

Cut-paper illustration of two speech bubbles, one folded behind a padlock

ChatGPT adds locks for individual chats

Locked Chats hides selected conversations behind a PIN or supported biometrics. Memory and PIN reset rules matter when choosing what to protect.

The AI Feed Desk

By The AI Feed Desk

Optical data-center components sit beside a refined metal sample, shipping documents, and a global supply-chain route map

Indium scrutiny puts AI data-center optics in the supply-chain frame

Reuters reports that buyers are seeing tighter Chinese scrutiny around indium exports, raising attention on a niche material used in high-speed optical chips for AI data centers.

The AI Feed Desk

By The AI Feed Desk

Illustration of a Notion AI chat transcript beside a Fireworks AI label, with a detached identity label and one line of text in red

Fireworks AI security incident affects Notion customers

Notion says fewer than 1% of workspaces may be affected. Chat transcripts lacked identity labels, but their text could still contain sensitive information.

The AI Feed Desk

By The AI Feed Desk

A personal assistant agent holding permission keys between private messages, calendars, and purchase approvals

Instinct funding surge tests privacy expectations for consumer agents

Instinct reportedly raised a $250 million Series B at a $2.5 billion valuation while its private-beta personal agent drew early privacy and security scrutiny.

The AI Feed Desk

By The AI Feed Desk