6 Sources
[1]
LiteLLM supply chain attack started with an exposed master key
LiteLLM has traced last week's supply chain attack to a master key it accidentally committed to a public GitHub repository in May. The cloud and AI model secret-stealing part of the incident began when someone uploaded a poisoned version (1.107.0) of the popular open source AI gateway to PyPI and
[2]
Leaked LiteLLM Master Key Let Attackers Steal GitHub Tokens and Hijack Release Pipeline
LiteLLM on Friday revealed that an Agent Platform master key accidentally published to a public GitHub repository in late May 2026 ultimately allowed the threat actor to push a malicious version of the popular Python package. "On May 27, 2026, a configuration file was committed to the public
[3]
LiteLLM release pipeline hacked to distribute info-stealer malware
Hackers compromised the LiteLLM project's PyPI package and published malicious Docker images with a payload that steals credentials, secrets, and environment variables. The supply-chain attack affected all PyPI wheels (.whl installation packages) for LiteLLM version 1.107.0, impacting Windows,
[4]
LiteLLM supply chain attack hoovers up passwords and secrets
Unknown crims compromised LiteLLM's release process on Wednesday, distributing a malicious version (1.107.0) containing malware designed to steal cloud and AI credentials and a remote access trojan (RAT) capable of executing arbitrary code on infected machines through PyPI and Docker
[5]
LiteLLM Suspects GitHub Token Leak in AI Gateway Logs Behind Malicious Package Release
LiteLLM on Wednesday disclosed that threat actors compromised "multiple independent security controls" to push a malicious version of the Python package containing a credential stealer and a backdoor. On October 21, 2026, LiteLLM's release pipeline was compromised to push 1.107.0 to the Docker Hub
[6]
LiteLLM Compromised in Supply Chain Attack Delivering Credential Stealer and Backdoor
The popular LiteLLM Python package has been compromised as part of a software supply chain attack that delivered a credential stealer and a backdoor, according to reports from SafeDep, Socket, StepSecurity, and Upwind. The compromise affects LiteLLM 1.107.0, distributed through PyPI wheels and
Share
Copy Link
LiteLLM's release pipeline was compromised after an exposed master key from May 2026 allowed attackers to steal GitHub CLI OAuth tokens. The breach led to the distribution of version 1.107.0 containing credential-stealing malware through PyPI and Docker Hub, affecting the popular AI gateway used by major companies.
LiteLLM traced last week's supply chain attack to an exposed master key accidentally committed to a public GitHub repository on May 27, 2026
1
. The configuration file containing the master key belonged to an open source tool used internally by the AI gateway provider to orchestrate AI agents. While LiteLLM's developers quickly spotted the error and removed the exposed commit, they failed to revoke the master key itself—a critical oversight that would enable the entire attack chain2
.
Source: The Register
On October 10, 2026, a threat actor operating from IP address 69.48.229.143 used this unrevoked key to gain access to LiteLLM's Agent Platform and extracted a GitHub CLI OAuth token
2
. The stolen GitHub tokens proved especially dangerous because they are "post-2fa," meaning they don't trigger GitHub's sudo mode authentication flows typically required to perform high-impact repository actions1
. This gave the attacker owner-level access to all repositories in LiteLLM's GitHub organization without raising immediate suspicion.Between October 10 and October 12, the attacker authored commits into throwaway branches on internal repositories to run workflows designed to steal additional GitHub CLI OAuth tokens associated with two engineers with maintainer privileges
2
. On October 21, 2026, the attacker overrode branch protection and altered the release pipeline, setting the source to a lookalike repository "Berri-AI/litellm" rather than the legitimate "BerriAI/litellm"2
.
Source: Hacker News
LiteLLM version 1.107.0 was published to PyPI at 11:39 UTC and remained available until 1:23 p.m. UTC when PyPI quarantined the compromised package
3
. During this window of less than two hours, the malicious package received approximately 49,000 downloads1
. Docker Hub and GHCR images were also published, with tags v1.107.0, latest, main-latest, and main-stable pointing to compromised image indexes from 11:46 UTC until removal3
.The compromised PyPI package and Docker images contained sophisticated info-stealer malware designed to harvest sensitive credentials across multiple platforms
4
. The attacker modified only the installation package, placing three malicious files—cook.pth, cook.py, and sitecustomize.py—in the environment's Python library directory3
. These files executed automatically every time Python was launched in the environment, even when users ran Python or pip to investigate an affected installation.
Source: Hacker News
The credential stealer targeted browser credentials and cookies from Chrome, Firefox, Edge, and Safari, along with AWS credentials, Google Cloud Platform service account keys and application default credentials, and Microsoft Azure tokens
1
. It also swiped API keys for OpenAI, Anthropic, Cohere, and other LLM providers, plus SSH private keys, GPG keys, and shell history files4
. The stolen data was encrypted using AES-256-CBC, with the encryption key wrapped using an RSA-4096 public key, before being exfiltrated via HTTP POST to litellm.dev/healthcheck3
.Beyond credential theft, the malicious package included a remote access trojan capable of executing arbitrary code on infected machines
5
. The sitecustomize.py file spawned a background daemon that polled the attacker's infrastructure every hour for new commands to execute4
. This daemon acquired a lock at /tmp/remote_code_loader.lock to prevent multiple instances, then entered an infinite loop fetching the attacker's current command-and-control domain from a GitHub repository and executing Python payloads from the specified domain5
.Wiz researchers observed abuse of stolen credentials starting approximately 4.5 hours post-exfiltration, with the attacker validating AWS instance role credentials captured from compromised CI runners and Kubernetes nodes between 4:20 p.m. and 5:01 p.m. UTC
5
. Each credential was checked with AWS Security Token Service calls, followed by attempts to list foundation models—consistent with LLMjacking attacks targeting AI infrastructure.Related Stories
LiteLLM is a massively popular project with 61,800 GitHub stars and 92 million monthly downloads on PyPI, used by high-profile companies including NVIDIA, Netflix, AT&T, and Okta
3
. The AI gateway provides a common interface for LLM providers including OpenAI, Anthropic, and Google Gemini, receiving about 23 million weekly downloads4
. This widespread adoption means compromised installations could run alongside LLM provider API keys, cloud credentials, and database connection strings, exposing vast amounts of sensitive data.Multiple application security companies detected the attack within six minutes of publishing the malicious version
3
. Security researchers from Aikido, Wiz, and Socket published extensive threat-hunting and mitigation instructions for affected organizations. The most recent safe version is 1.106.2, and LiteLLM developers are revoking every token associated with every internal system and vendor platform in response to the breach1
.This marks the second major security incident for LiteLLM in 2026. The project previously suffered a breach in March when the TeamPCP hacking group published malicious versions on PyPI after breaching Aqua Security's Trivy vulnerability scanner used in LiteLLM's CI/CD pipeline
3
. That earlier compromise potentially exposed more than 2,500 organizations and 434,000 CI/CD pipelines worldwide, according to CloudSEK.LiteLLM maintainers acknowledged that the incident provided "a strong illustration of the risks associated with failing to rotate a potentially exposed key"
1
. Post-incident analysis revealed that Claude Code embedded GitHub CLI OAuth tokens into response bodies in specific situations, and when response bodies were logged, these tokens appeared in LiteLLM logs5
. Organizations using version 1.107.0 should immediately stop affected deployments, investigate environments without launching the Python interpreter, isolate infected systems, rebuild from clean backups, and rotate all exposed secrets.Summarized by
Navi
[1]
[2]
[3]
[4]
24 Mar 2026•Technology

13 Aug 2026•Technology

29 Apr 2026•Technology

1
Policy and Regulation

2
Technology

3
Technology
