LiteLLM Compromised, Steals Credentials A malicious version 1.107.0 of the LiteLLM package was uploaded to PyPI and Docker on October 21, 2025, carrying a credential stealer targeting browser, cloud and AI secrets plus a dormant command-and-control capability, and received approximately 49,000 downloads before PyPI quarantined it at 13:20 UTC. The trojanized build also shipped in LiteLLM Docker containers on GHCR and Docker Hub under the v1.107.0, latest, main-latest and main-stable tags, which were removed around 13:53 UTC; the most recent safe version is v1.106.2. LiteLLM said the attacker compromised its release workflow through three engineers' GitHub accounts using stolen GitHub CLI OAuth tokens, after gaining access to an internal LiteLLM deployment exposed to the public internet, and that all tokens involved in the attack have been revoked. In a new incident, a malicious version 1.107.0 of the LiteLLM package was uploaded to PyPI and Docker on October 21. The malicious version includes a credential stealer targeting browser, cloud and AI secrets as well as a dormant C2 capability. At 11:39 UTC on October 21, a malicious version 1.107.0 of the LiteLLM package was uploaded to PyPI. This version was quarantined on PyPI as of 13:20 UTC. According to ClickPy data, the malicious version received approximately 49,000 downloads. LiteLLM Docker containers on GHCR and Docker hub also included the trojanized version of LiteLLM. These included the v1.107.0 , latest, main-latest and main-stable tags. These were removed ~13:53 UTC. The most recent safe version is v1.106.2. When the malicious package is installed, three files are extracted directly into the site-packages root: cook.pth, cook.py and sitecustomize.py. These packages are designed to be executed whenever a python interpreter is started. malicious actions were taken through three engineers' GitHub accounts, appearing to be by way of stolen GitHub CLI OAuth tokens. The threat actor used one user's account triggered the project-releaser run, and another user's account to approve it. All tokens which were involved in this attack have been revoked. GitHub CLI OAuth token exposure After a thorough investigation, we have observed specific situations in which Claude Code will embed a user’s GitHub CLI OAuth token into a response body, and in situations where response bodies are logged, these tokens may appear in LiteLLM logs. Access to our internal LiteLLM deployment We identified an unexpected, innocuously named user account in our internal LiteLLM deployment, which was exposed to the public internet. We believe the attacker gained access to this deployment, obtained the GitHub CLI OAuth tokens from its logs, and subsequently used those credentials to compromise our release workflow. We have not yet confirmed how the attacker gained access to our internal deployment, but currently suspect it was through a recently patched vulnerability. UPDATES 14:05 UTC - added IOC table 14:15 UTC - added Attack Commits details 14:40 UTC - added Credential Stealer details, noted Docker takedown 15:20 UTC - clarified dual-technique approach novelty and LLM-aided development 19:05 UTC - added observed post-exploitation activity 21:45 UTC - updated LiteLLM details on root cause October 22 12:55 UTC - added PyPi download stats Payload The payload has strong indications of LLM-aided development, including verbose variable names encrypted private key output , overly defensive error handling with generic try/except blocks, platform-specific code paths that fail silently on untested platforms Windows marker path /tmp/ doesn't exist, fcntl/fork calls crash the remote loader , and a dead code module exec py that was defined but never called. The structure suggests iterative prompting: functional on the happy path but brittle at the edges and untested. Upon startup, the interpreter processes cook.pth, which includes a command to import cook, which loads cook.py. cook.py deobfuscates itself, runs a stealer routine and writes a maker to /tmp/.pc once 72129118c59f5636c0bb note this fails on Windows, as the /tmp/ path often does not exist . The stealer routine gathers system, browser, developer, cloud and AI tool secrets, encrypts them and exfiltrates to www.litellm.dev/healthcheck via a post request. This domain is attacker controlled, impersonating LiteLLM infrastructure. Python interpreters will also attempt to execute sitecustomize.py - however, it will only run on Linux & MacOS machines. This script attempts to fetch domain.txt from a GitHub dead drop letters9813/pythonclient-test/main/domain.txt . If it receives a response, it will attempt to download a second stage python script from http://