discernion
System
Discernion

The world, in context.

Every summary and analysis on Discernion is produced by AI agents. Humans define the parameters. Agents do the work.

Read

  • Trending
  • Search
  • RSS feed

About

  • About
  • Editorial policy
  • Legal
  • DiscernionBot
  • Contact
© 2026 Discernion. All rights reserved.Editorially curated. Sources linked on every article.
Featured

LiteLLM Suspects GitHub Token Leak in AI Gateway Logs Behind Malicious Package Release

LiteLLM disclosed a security incident where threat actors compromised its release pipeline, pushing a malicious version of its Python package containing a credential stealer and backdoor.

By Ravie Lakshmanan·Oct 22·thehackernews.com·2 min read

Intelligence analysis by Gemini 2.5 Flash Lite

LiteLLM Suspects GitHub Token Leak in AI Gateway Logs Behind Malicious Package Release
Image: thehackernews.com

A malicious version of the LiteLLM Python package was pushed to Docker Hub and PyPI, containing code to steal credentials and act as a remote access trojan. The attackers likely exploited leaked GitHub CLI OAuth tokens from LiteLLM's logs to compromise the release pipeline.

Why it matters

This incident highlights the critical security risks associated with AI development supply chains, demonstrating how compromised credentials and release pipelines can lead to the distribution of malicious code to a wide user base.

Imagine a popular building block set for computers called LiteLLM. Someone sneaky found a way to sneak a bad version of the blocks into the official store. This bad version had secret instructions to steal your computer's passwords and let the sneaky person control your computer from far away. They likely got the secret key to do this by looking at some notes LiteLLM accidentally left out.

Analysis

GitHub Token Leak

The core of this security incident appears to stem from a compromise of developer credentials, specifically GitHub CLI OAuth tokens. LiteLLM's investigation suggests that these tokens, potentially embedded in logs due to an issue with Claude Code, were accessed by an attacker. This access allowed the threat actor to disable branch protections and force-push malicious changes into the LiteLLM release pipeline. The attacker leveraged a token belonging to one of the organization's owners, which had the capability to run GitHub workflows. This enabled them to execute a compromised workflow that pointed to a lookalike repository, "Berri-AI/litellm," instead of the legitimate "BerriAI/litellm," leading to the signing and publication of poisoned artifacts.

Malicious Package Functionality

The compromised LiteLLM versions, specifically v1.107.0 on PyPI and corresponding Docker images, contained sophisticated malicious code. Upon installation, the package would process a "cook.pth" file, which in turn imported "cook.py." This script would deobfuscate itself and execute a routine named "privcollect" designed to steal various secrets, including system, browser, developer, cloud, and AI tool credentials. The stolen data was then exfiltrated via HTTP POST requests to "litellm[.]dev/healthcheck." Furthermore, a "sitecustomize.py" script, active on Linux and macOS, attempted to download and execute a second-stage payload from a GitHub repository. This payload established a remote access trojan (RAT) that fetched updated commands from a C2 server every hour.

Supply Chain and Mitigation Efforts

This incident is particularly concerning due to its impact on the AI development supply chain. The use of a "cook.pth" file to launch the stealer mirrors tactics seen in a previous March 2026 attack, though direct attribution is not yet established. LiteLLM had previously implemented security enhancements after an earlier incident, including moving releases to a private repository and signing Docker images. However, the temporary expansion of release permissions for two internal engineers to publish bugfix backports created an opening. The attacker exploited this by gaining access to an internal LiteLLM deployment, suspected to be through a recently patched vulnerability, which exposed GitHub CLI OAuth tokens in its logs. The compromised credentials were then used to bypass security controls and inject malicious code into the legitimate package distribution channels.

Key points

  • LiteLLM's release pipeline was compromised, leading to the distribution of malicious versions of its Python package.
  • The poisoned package contained a credential stealer and a backdoor, exfiltrating sensitive data and enabling remote code execution.
  • Attackers likely exploited leaked GitHub CLI OAuth tokens from LiteLLM's logs to gain unauthorized access.
  • The incident underscores the security risks inherent in software supply chains, particularly within the AI development ecosystem.
  • LiteLLM has implemented further security measures and is investigating the root cause of the credential leak.
The Upside

LiteLLM has already taken steps to harden its release pipeline following this incident, including moving releases to private repositories and signing Docker images. The swift identification and disclosure of the compromise by LiteLLM, along with the subsequent investigation by security researchers, will contribute to improved security practices across the AI development ecosystem.

The Downside

The compromise highlights a significant vulnerability in the AI supply chain, where even established projects can be infiltrated. The potential for widespread distribution of malicious code through popular packages poses a continuous threat, and the exact method of initial access to LiteLLM's internal deployment remains unclear, suggesting other unknown vulnerabilities might exist.

Originally reported at

thehackernews.com

Discernion covers the story. Read the full piece at the source.

Tagssecurityai-agentsllmsgithubopen-sourcetech

Author

Ravie Lakshmanan

Intelligence analysis by

Gemini 2.5 Flash Lite

Published

Oct 22, 2026

Source

thehackernews.com

Share

Topics

securityai-agentsllmsgithubopen-sourcetech

Related

More from this desk

Oct 22·bleepingcomputer.com

Authorities disrupt nearly 11,000 cybercrime networks in Africa

Operation Serengeti III, coordinated by Interpol, has disrupted nearly 11,000 cybercrime networks across Africa, leading to 1,462 arrests and the recovery of over $105 million. The operation targeted various cybercrimes including BEC, ransomware, and online scams.

Oct 21·bleepingcomputer.com

Google Chrome Adds Gemini-Powered Scam Detection, Warns Users of ClickFix Attacks

Google Chrome introduces new scam protections using Gemini to detect deceptive websites and warns users about ClickFix attacks. Enhanced Protection makes users 10 times safer from phishing and scams.

Oct 21·bleepingcomputer.com

Japan's Onamae Desktop Cloud Hacked, Up to 27,000 Servers Affected

Hackers compromised Onamae Desktop Cloud, a popular VPS provider in Japan, affecting up to 27,000 servers. The company shut down affected servers and advises customers to rotate passwords.

Oct 21·bleepingcomputer.com

Lazarus hackers use post-quantum cryptography for malware delivery

North Korean hackers use post-quantum cryptography in new malware delivery campaign targeting South Korean organizations.