AI Aulis

AI NEWS IN ENGLISH · 22 October 2026

The most important AI news every morning. AI writes and checks the stories against the original sources – check important facts in the sources.

← Issue 22 October 2026Paper

SafeDep: LiteLLM 1.107.0 on PyPI contained a credential stealer and a backdoor

AI-generated contentWritten by AI

github.com, safedep.io · 2 sources · Sources published: 21 October 2026 · Some source publication dates are unknown

Version 1.107.0 of the LiteLLM library on PyPI installed malicious code that starts in every Python process on the machine and steals credentials and keys, security company SafeDep said. PyPI has removed the release, and the source code on GitHub contained no malicious code.

Security company SafeDep reported on 21 October that version 1.107.0 of the LiteLLM library installed a credential stealer and a backdoor. The version was published on PyPI, the Python package index. According to SafeDep’s timeline, the release was uploaded to PyPI between 11:39 and 11:40 UTC that day and had been removed by 13:40.

LiteLLM is an open source Python library and proxy server from BerriAI. It lets applications call models from more than 100 LLM providers, such as OpenAI, Anthropic and Google, through a single OpenAI-format interface. The proxy server stores the providers’ API keys in its database.

All seven installation packages in the release, for Linux, macOS and Windows, added three files to Python’s site-packages directory. When Python starts, it reads the .pth files in that directory and runs their import lines. It also loads the sitecustomize.py file automatically. As a result, the malicious code starts in every Python process on the machine, including those that do not use LiteLLM, such as pip installs, editor language servers and CI runs.

The credential stealer collects SSH keys, credentials for AWS, Azure, Google Cloud and Kubernetes, CI/CD secrets and passwords saved in browsers. It also collects credentials for AI tools such as Claude Code, Cursor and Codex, as well as the environment variables of other processes. If the DATABASE_URL environment variable points to the database of a LiteLLM proxy server, the stealer copies the tables that hold the providers’ API keys. It then encrypts the data and sends it to www.litellm[.]dev.

The backdoor keeps running as a background process. Every hour it fetches its server address from a repository belonging to the GitHub user letters9813, runs the credential stealer again, and downloads and runs code from the server. The user account and the repository were deleted about two hours after the release, so the backdoor can no longer find the server. However, machines on which the backdoor was running before then may have downloaded and run second-stage code, SafeDep said. The company was unable to determine the server address.

SafeDep said versions 1.106.2, 1.107.0rc1 and 1.107.0rc2 are clean. So are litellm-proxy-extras 0.4.110 and litellm-enterprise 0.1.78, the packages that version 1.107.0 requires. BerriAI’s public GitHub repository contained no malicious code. The pyproject.toml file in the release contained an added line, data = "cook", which caused the malicious files to be copied into the installation packages. The same file also had a changed version number, and its dependency versions were set to match rc2. Comparing the dependencies with rc2 therefore reveals nothing unusual.

It is not certain how the change got into the release. SafeDep assesses with moderate to high confidence that BerriAI’s private release pipeline built the packages from source code the attacker had modified. The attacker may have used, for example, a hijacked maintainer or bot credential. The evidence fits less well with the alternative, in which the attacker published the packages from the attacker’s own machine using stolen PyPI credentials, the company said. Only the logs of BerriAI’s release pipeline can establish the actual cause, SafeDep added.

SafeDep lists signs of infection that include the files cook.pth, cook.py and sitecustomize.py in the site-packages directory. The file /tmp/.pc_once_72129118c59f5636c0bb indicates that the credential stealer has already sent the data, while /tmp/remote_code_loader.lock indicates that the backdoor has been running.

Report an error in this story