LiteLLM Ships a Credential Stealer and Remote Loader — The AI Gateway Concierge Has Copied Every Key

The software supply chain has introduced a new concierge service: install one AI gateway, receive an uninvited tour of your secrets. On October 21, 2026, security researchers found a malicious release of LiteLLM 1.107.0, the open-source tool used to route applications across AI providers. The compromised Python package and associated container images carried a credential stealer and a remote-code loader. This was not a hypothetical flaw awaiting a sufficiently motivated villain. The poisoned release was distributed, then quarantined or removed.

🤚 The Open-Palm Installation

Aikido’s investigation says the malicious release reached PyPI and the official LiteLLM Docker image. The 1.107.0 version was subsequently quarantined on PyPI, and the affected image was removed from Docker Hub and GitHub Container Registry. Removing a listing is not the same as removing software already installed on a developer laptop, CI runner, or production proxy. A recalled bottle does not politely unpour itself.

Researchers at Socket examined the packages and identified Python startup files that activate when an interpreter starts, not merely when an application imports LiteLLM. One file launches a collector; another can launch a background process that checks for remotely supplied Python code. In ordinary terms, the software meant to connect your AI services could also open an unscheduled management channel for somebody else.

The target list was not limited to model API keys. The collector sought cloud credentials, environment variables, developer secrets, private keys, and browser data. Socket also describes attempts to access LiteLLM database-backed configuration. That does not establish that every installation lost every secret; it establishes why a machine that ran this version deserves an incident response rather than a ceremonial upgrade.

👐 The Two-Handed Provenance Examination

Socket’s analysis ties the container build’s recorded source to a lookalike GitHub owner, Berri-AI, differing by a hyphen from the legitimate BerriAI. Build artifacts included malicious files supplied through a packaging configuration and bundled into the release. Socket is careful about the boundary of its evidence: recorded build inputs show what was built, but do not prove who authorized the source substitution or exactly how the PyPI upload occurred. This is the sort of distinction that keeps a security report from becoming a very expensive guessing competition.

Floating container tags such as latest can widen exposure because deployments need not explicitly request the malicious version to receive it. Conversely, 1.106.2 was identified by The Register as the most recent safe release at the time of reporting. Check current upstream guidance before choosing a replacement: release status can change faster than a compliance slide deck.

One particularly unpleasant detail: the startup hooks can run when Python starts in an affected environment. An administrator who opens that environment to inspect it may trigger the payload. Socket notes that even an absent marker file does not clear a system; containers can disappear, uploads can fail, and temporary directories can be cleaned. A tidy filesystem is not forensic absolution.

🌿 The Gentle Containment

If your team installed or ran LiteLLM 1.107.0, or pulled an affected floating container tag during the exposure window, stop deploying the artifact, isolate affected environments, and investigate machines and CI jobs where it ran. Aikido lists /tmp/.pc_once_* and /tmp/remote_code_loader.lock as useful indicators. Treat a match as urgent evidence, not the complete test for compromise; see the researchers’ response notes and technical analysis for scope and limitations.

Rotate potentially exposed AI-provider keys, cloud credentials, and other secrets from a clean environment, and review access logs for unauthorized use. Rebuild affected hosts and images from trusted artifacts where appropriate; deleting the application directory alone may not remove startup files placed elsewhere in the Python environment or terminate an already-running process. Review the full dependency path, not just the version string on a dashboard. This is a case for your incident responders and your inventory, ideally in that order.

👑 The Gold-Leaf Reckoning

An AI gateway concentrates access by design. That makes it convenient for developers and attractive to attackers. The lesson is not that routing tools are inherently suspect; it is that distribution, provenance, pinned artifacts, and credential boundaries are part of the product. An installation command is a trust decision wearing leisurewear.

The finest velvet rope in the building is still useless if the release pipeline hands the guest list to someone with a nearly identical name.

“We have verified the badge, the brochure, and the font. We may now investigate who owns the door.” — The Slap of Wisdom Supply-Chain Hospitality Department, conducting a post-install welcome interview