AI hack · Supply chain · 21 Oct 2026Pulled same dayStolen keys usedNo breach confirmed

A key leaked in May let an attacker ship a backdoored LiteLLM through its own pipeline

On 21 October 2026, an attacker used three engineers' 3 sourcesLiteLLMContained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised21 Oct 2026 · first-handLiteLLMThe attack chain behind the v1.107.0 LiteLLM release23 Oct 2026 · first-handSocketLiteLLM PyPI Package and Docker Images Compromised to Steal Cloud and AI Credentials21 Oct 2026 · first-hand to publish a poisoned LiteLLM, an open-source gateway between apps and AI models. Version 1.107.0 stole cloud and AI credentials. The way in was a key that leaked in May and was 3 sourcesLiteLLMContained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised21 Oct 2026 · first-handLiteLLMThe attack chain behind the v1.107.0 LiteLLM release23 Oct 2026 · first-handSocketLiteLLM PyPI Package and Docker Images Compromised to Steal Cloud and AI Credentials21 Oct 2026 · first-hand.

By Chris Hoskins, Founder, Boogey ·

Tap underlined words to see who reported them.

2 hours

2 sourcesLiteLLMContained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised21 Oct 2026 · first-handGitHub issue #47826 (Lidor Machluf, Upwind)[SECURITY] litellm 1.107.0 compromised (PyPI removed; Docker latest/main-stable removed): cook.pth credential stealer + sitecustomize RCE loader, built from lookalike repo Berri-AI/litellm21 Oct 2026 · first-hand

49,000

2 sourcesWizLiteLLM Compromised, Steals Credentials21 Oct 2026 · first-handThe Record (Recorded Future News)Popular AI tool LiteLLM says unrevoked key allowed hackers to target users26 Oct 2026

3

3 sourcesLiteLLMContained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised21 Oct 2026 · first-handLiteLLMThe attack chain behind the v1.107.0 LiteLLM release23 Oct 2026 · first-handHelp Net SecurityLiteLLM hit by second supply chain attack this year, users urged to rotate credentials22 Oct 2026

0

SourceThe Record (Recorded Future News)Popular AI tool LiteLLM says unrevoked key allowed hackers to target users26 Oct 2026

What happened on 21 October

  1. Step 1

    Build from a lookalike

    LiteLLM's own release pipeline built a poisoned version 1.107.0 from Berri-AI/litellm, a fork 3 sourcesLiteLLMContained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised21 Oct 2026 · first-handUpwindLiteLLM 1.107.0 Supply Chain Attack: How a Hijacked Release Pipeline Signed Malicious Code26 Oct 2026 · first-handSocketLiteLLM PyPI Package and Docker Images Compromised to Steal Cloud and AI Credentials21 Oct 2026 · first-hand from the real BerriAI/litellm.

  2. Step 2

    Publish it

    It went live on PyPI, Python's package index, at 11:39 UTC, and behind 2 sourcesLiteLLMContained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised21 Oct 2026 · first-handUpwindLiteLLM 1.107.0 Supply Chain Attack: How a Hijacked Release Pipeline Signed Malicious Code26 Oct 2026 · first-hand, including latest.

  3. Step 3

    Run on every start

    It added three files that run 4 sourcesGitHub issue #47826 (Lidor Machluf, Upwind)[SECURITY] litellm 1.107.0 compromised (PyPI removed; Docker latest/main-stable removed): cook.pth credential stealer + sitecustomize RCE loader, built from lookalike repo Berri-AI/litellm21 Oct 2026 · first-handUpwindLiteLLM 1.107.0 Supply Chain Attack: How a Hijacked Release Pipeline Signed Malicious Code26 Oct 2026 · first-handSocketLiteLLM PyPI Package and Docker Images Compromised to Steal Cloud and AI Credentials21 Oct 2026 · first-handMicrosoft Security BlogInside the LiteLLM 1.107.0 supply chain compromise: Credential theft through Python startup hooks23 Oct 2026 · first-hand, even if nothing imports LiteLLM.

  4. Step 4

    Send it home

    A stealer encrypted what it found and sent it to www.litellm.dev, 3 sourcesGitHub issue #47826 (Lidor Machluf, Upwind)[SECURITY] litellm 1.107.0 compromised (PyPI removed; Docker latest/main-stable removed): cook.pth credential stealer + sitecustomize RCE loader, built from lookalike repo Berri-AI/litellm21 Oct 2026 · first-handUpwindLiteLLM 1.107.0 Supply Chain Attack: How a Hijacked Release Pipeline Signed Malicious Code26 Oct 2026 · first-handSocketLiteLLM PyPI Package and Docker Images Compromised to Steal Cloud and AI Credentials21 Oct 2026 · first-hand registered on 13 October.

Because LiteLLM's real pipeline did the work, the poisoned files were validly signed and 2 sourcesLiteLLMWhat we are changing after October 2130 Oct 2026 · first-handLiteLLM (GitHub discussion #48242)[UPDATED] Docker Image Signing: Keyless Signing and Key Rotation24 Oct 2026 · first-hand.

What it stole

  • Cloud and developer keys

    It took 2 sourcesGitHub issue #47826 (Lidor Machluf, Upwind)[SECURITY] litellm 1.107.0 compromised (PyPI removed; Docker latest/main-stable removed): cook.pth credential stealer + sitecustomize RCE loader, built from lookalike repo Berri-AI/litellm21 Oct 2026 · first-handSocketLiteLLM PyPI Package and Docker Images Compromised to Steal Cloud and AI Credentials21 Oct 2026 · first-hand, browser passwords and every readable process's environment variables.

  • AI coding tool logins

    It took login files for Claude, Codex, Cursor, Copilot and SourceSocketLiteLLM PyPI Package and Docker Images Compromised to Steal Cloud and AI Credentials21 Oct 2026 · first-hand.

  • LiteLLM's own key tables

    On proxies with a database, 3 sourcesGitHub issue #47826 (Lidor Machluf, Upwind)[SECURITY] litellm 1.107.0 compromised (PyPI removed; Docker latest/main-stable removed): cook.pth credential stealer + sitecustomize RCE loader, built from lookalike repo Berri-AI/litellm21 Oct 2026 · first-handUpwindLiteLLM 1.107.0 Supply Chain Attack: How a Hijacked Release Pipeline Signed Malicious Code26 Oct 2026 · first-handMicrosoft Security BlogInside the LiteLLM 1.107.0 supply chain compromise: Credential theft through Python startup hooks23 Oct 2026 · first-hand dumped the tables that hold AI provider keys.

About 4.5 hours after the theft, Wiz saw 2 sourcesWizLiteLLM Compromised, Steals Credentials21 Oct 2026 · first-handHelp Net SecurityLiteLLM hit by second supply chain attack this year, users urged to rotate credentials22 Oct 2026 used to list Amazon Bedrock models. Wiz linked it to LLMjacking, running AI models on a victim's account.

How the attacker got in

  1. 27 May 2026

    An admin key for LiteLLM's internal Agent Platform, where agents file pull requests, is 2 sourcesLiteLLMThe attack chain behind the v1.107.0 LiteLLM release23 Oct 2026 · first-handLiteLLMWhat we are changing after October 2130 Oct 2026 · first-hand.

  2. 3 hours later

    The file is deleted. SourceLiteLLMThe attack chain behind the v1.107.0 LiteLLM release23 Oct 2026 · first-hand.

  3. 10 Oct

    The attacker uses the key. The platform hands over SourceLiteLLMThe attack chain behind the v1.107.0 LiteLLM release23 Oct 2026 · first-hand, with no repository limits.

  4. 10 Oct

    The owner token pushes throwaway branches whose CI jobs leak 2 sourcesLiteLLMThe attack chain behind the v1.107.0 LiteLLM release23 Oct 2026 · first-handSocketNew Evidence Shows LiteLLM Secret-Stealing Workflows Ran 11 Days Before Supply Chain Attack23 Oct 2026 · first-hand. Nobody notices for at least 11 days, Socket found.

  5. 19 Oct

    LiteLLM relaxes its release rule so 2 sourcesLiteLLMContained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised21 Oct 2026 · first-handLiteLLMThe attack chain behind the v1.107.0 LiteLLM release23 Oct 2026 · first-hand can approve a release.

  6. 21 Oct

    The owner token 3 sourcesLiteLLMContained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised21 Oct 2026 · first-handLiteLLMThe attack chain behind the v1.107.0 LiteLLM release23 Oct 2026 · first-handHelp Net SecurityLiteLLM hit by second supply chain attack this year, users urged to rotate credentials22 Oct 2026, a second token approves production, and a third deletes the run records.

How LiteLLM is responding

PyPI 3 sourcesLiteLLMContained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised21 Oct 2026 · first-handLiteLLMThe attack chain behind the v1.107.0 LiteLLM release23 Oct 2026 · first-handGitHub issue #47826 (Lidor Machluf, Upwind)[SECURITY] litellm 1.107.0 compromised (PyPI removed; Docker latest/main-stable removed): cook.pth credential stealer + sitecustomize RCE loader, built from lookalike repo Berri-AI/litellm21 Oct 2026 · first-hand by 13:23 UTC, and the Docker tags were clean by 14:20 UTC. LiteLLM removed SourceLiteLLMThe attack chain behind the v1.107.0 LiteLLM release23 Oct 2026 · first-hand from its GitHub organization and is revoking every internal and vendor token. Owner accounts SourceLiteLLMWhat we are changing after October 2130 Oct 2026 · first-hand. Engineers keep coding agents, on accounts with regular-user rights only. A leaked key now gets a ticket that SourceLiteLLMWhat we are changing after October 2130 Oct 2026 · first-hand. A checker comparing each release with its tagged source is due by 31 December.

The Boogey fix

Is your AI gateway exposed to this?

You’re exposed if

  • You run LiteLLM or another self-hosted AI gateway or SDK, installed from PyPI or Docker.
  • An internal agent platform holds source-control or cloud tokens.
  • Your gateway hosts can reach any address on the internet.

Fix it

  1. 01Pin by hash and digest

    Pin LiteLLM by hash and images by digest, so a new release or moved tag can't reach production unreviewed.

  2. 02Give agents their own tokens

    Give agents and automations their own narrow, expiring tokens, never a person's login.

  3. 03Confirm every revocation

    Treat a leaked key as live until someone confirms it no longer works.

  4. 04Close the exits

    Let gateway hosts reach only the AI providers they call, as LiteLLM's SourceGitHub issue #47826 (Lidor Machluf, Upwind)[SECURITY] litellm 1.107.0 compromised (PyPI removed; Docker latest/main-stable removed): cook.pth credential stealer + sitecustomize RCE loader, built from lookalike repo Berri-AI/litellm21 Oct 2026 · first-hand.

  5. 05Clean up 1.107.0 hosts

    If 1.107.0 ran with internet access, 2 sourcesLiteLLMContained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised21 Oct 2026 · first-handMicrosoft Security BlogInside the LiteLLM 1.107.0 supply chain compromise: Credential theft through Python startup hooks23 Oct 2026 · first-hand. Delete the three files without starting Python or pip, then rotate every credential the host could reach.

On your platform

Settings you already have that help against this hack. Last checked 1 Dec 2026.

No setting on Claude Code helps with this one. Our test does.

Every setting for every platform

How we test it

  1. 1Within a signed scope, from the lockfiles, caches and staging containers you share, read-only, we list every LiteLLM version and image digest.Being built
  2. 2From the token list you share, names and scopes but never the tokens, we compare what each can reach with what the feature needs.Being built
  3. 3We scan the repo history you share for AI admin keys and keep only a hash. We never try a key. Your team revokes each one we find.Being built
Built
BT-22 · Model and AI supply chainBT-06 · Over-scoped tokens and agent identityBT-10 · Leaked AI keys and secrets, and the abuse that followsBT-09 · Exposed AI infrastructure and default credentials

It fails if

  • LiteLLM is 1.107.0, unpinned, or follows a floating tag like latest
  • An agent or gateway holds a person's GitHub login or an owner token
  • An AI admin key sits in your repo history, or a provider key has no spend cap
Get started

Running LiteLLM, or any AI gateway or agent platform that holds keys? This test is still being built.

What it reveals

The way in was an agent platform SourceLiteLLMThe attack chain behind the v1.107.0 LiteLLM release23 Oct 2026 · first-hand, reached with a key leaked in May. Signatures show which pipeline built a file. They can't show that it built the right source.