earlyink
214 first flagged22 Oct 2026

LiteLLM Sweep: find the poisoned 1.107.0 and rotate every provider key it held

CLI that finds compromised LiteLLM installs, lists every LLM and cloud key the host could reach, and walks rotation. Small AI teams pay.

Competitive · LiteLLM 1.107.0 ships a credential stealer

Written for: Solo builder

Next step

Tonight, ship a single-file Python scanner that finds litellm==1.107.0 in lockfiles, site-packages and Docker layers, with a rotation checklist per provider. Post it as a reply in the Hacker News thread and as an issue comment on the LiteLLM GitHub repo.

Why now

This is a material change to Key Census. Before, the risk was coding agents holding keys. Now a real poisoned gateway release has hit, and it targets the single process that holds all of them. Teams need three answers today: did we install it, which keys could it read, and have we rotated them all. Rust gateways like antirion will pitch themselves as the safe swap, but nobody owns the cleanup step.

What became possible

LiteLLM 1.107.0 on PyPI was compromised to install a credential stealer and a backdoor. LiteLLM is a gateway, so by design it sits on the OpenAI, Anthropic, Bedrock and Gemini keys for a whole team. One bad pip install hands over every provider credential at once.

Two ways in

  1. litellm-sweep

    Scans lockfiles, virtualenvs, Docker images and CI caches for 1.107.0. Lists the environment variables and config files a process on that host could read. Then gives step-by-step rotation links for each provider and checks afterwards that the old keys are dead.

    Customer
    Startups and solo developers running LiteLLM proxies
    Model
    Free open-source scanner, $49 one-off team report with a rotation checklist and an audit log
  2. PyPI cooldown proxy

    Install Gate for Python. A pip/uv index proxy that holds new versions of chosen packages (LLM SDKs and gateways first) for 72 hours unless allowlisted.

    Customer
    Small AI teams with CI that installs unpinned packages
    Model
    $15 per month per org, self-hosted free tier

Competition

Competitive

The PyPI cooldown proxy idea is effectively taken. uv and pip now have native cooldowns. git-pkgs proxy is a free open-source cooldown proxy. Cloudsmith, StepSecurity Secure Registry and SafeDep PMG sell or give away the same thing. Small teams can get this for free with one line of config, so there is little room to charge for it unless it is bundled into the rotation product.

Full competition notes (10 competitors)

The incident is real. LiteLLM 1.107.0 wheels and Docker images were malicious on October 21, 2026, and this is the second LiteLLM compromise in seven months after 1.82.7/1.82.8 in March. But detection is already well covered. The maintainers, about a dozen security vendors, and a free open-source IOC scanner (scan-litellm-compromise) that can add a 1.107.0 profile quickly all publish the indicators. A tool built only for 1.107.0 also has a shelf life of days to weeks, and nobody pays a subscription for a single incident. The underused piece is the second half of the sweep. Take a compromised host. List every LLM provider key and cloud key it could reach: environment variables, the LiteLLM config.yaml and its database of virtual keys, .env files, cloud credential files and CI secrets. Then link straight to the revoke page for each provider (OpenAI, Anthropic, Azure OpenAI, Bedrock, Vertex, Groq, Mistral and the long tail LiteLLM routes to). Then check that each old key now fails authentication. TruffleHog finds and verifies keys but does not walk you through rotation, and the vendor checklists only say "rotate everything." A version of this that could win would be a general "LLM gateway blast radius and rotation" CLI, offered as open source with a paid team tier. It would know LiteLLM, OpenRouter-style and Portkey-style configs, and it would handle each new supply-chain incident as a new profile instead of a new product. It would also need to be at least as easy to trust as TruffleHog, since users are handing it their secrets. The PyPI cooldown proxy idea is effectively taken. uv and pip now have native cooldowns. git-pkgs proxy is a free open-source cooldown proxy. Cloudsmith, StepSecurity Secure Registry and SafeDep PMG sell or give away the same thing. Small teams can get this for free with one line of config, so there is little room to charge for it unless it is bundled into the rotation product.

  • LiteLLM official incident post (Oct 21, 2026)

    Confirms the 1.107.0 wheels and Docker images were malicious for a window of about two hours, says 1.106.2 is safe, and tells anyone who installed it to assume compromise. The maintainers own the free remediation story, and it is less than a day old.

  • scan-litellm-compromise (CognitiveSand)

    Free open-source IOC scanner built after the March 2026 1.82.7/1.82.8 compromise. It now uses data-driven threat profiles across PyPI and npm, so adding a 1.107.0 profile for cook.pth, cook.py and sitecustomize.py is a small change. It is the closest direct substitute for the detection half.

  • Wiz, Datadog, Socket, Endor Labs, SafeDep, StepSecurity, Mend, JFrog, Chainguard, AISLE, Upwind, Ox write-ups

    Within hours, a dozen vendors published IOCs, wheel hashes and lists of exposed credentials. Several of them, including Wiz, Datadog, Socket and Endor, already detect this in their paid products for customers. Their free blog checklists cover most of what a solo developer needs. See also https://securitylabs.datadoghq.com/articles/litellm-compromised-pypi-docker/ and https://www.endorlabs.com/learn/litellm-1-107-0-compromised-python-startup-hooks-steal-cloud-ai-and-proxy-credentials

  • TruffleHog (verify and analyze)

    Free open-source tool that finds secrets in files and environments and checks live whether each one still works. That covers much of the 'list reachable keys' step and the 'confirm the old keys are dead' step. It does not revoke keys or walk users through rotation.

  • uv exclude-newer and pip --uploaded-prior-to

    The package managers now ship cooldowns natively. uv supports rolling durations and per-package exceptions. pip 26.1 accepts relative durations. Both are free and remove most of the reason to run a proxy for small teams.

  • git-pkgs proxy

    Open-source caching registry proxy. It hides versions newer than a cooldown window from metadata, supports PyPI, and allows per-package overrides. This is essentially the Install Gate idea, already free.

  • Cloudsmith cooldown policies

    Commercial registry that enforces cooldown windows at the index level for newly published packages.

  • StepSecurity Secure Registry

    Proxy that sits between npm/PyPI and developer machines and CI, and blocks versions flagged by threat intelligence. It is aimed at the same CI use case.

  • SafeDep PMG

    Client-side wrapper for pip and npm that drops versions published inside a configured cooldown window.

  • gestate

    Writes min-release-age settings into each tool's native config (uv exclude-newer, pip uploaded-prior-to). It is a cheap way to get cooldowns without running a proxy.

Checked 2026-10-22

Risks

  • Incident-driven demand fades within weeks
  • Exact IOCs may change as the investigation goes on, so the scanner must update fast
  • uv's exclude-newer and existing supply-chain vendors cover part of the cooldown idea

Strong tech readiness and team fit; open space is the weak point (5).

tech 9 · pull 8 · space 5 · fit 9 · build 9

Exposed

Companies that could benefit or be threatened. News and context, not investment advice.

Momentum of its main topic

56 developments this week +0 vs last week
23 Sep: 0 developments24 Sep: 0 developments25 Sep: 0 developments26 Sep: 0 developments27 Sep: 0 developments28 Sep: 0 developments29 Sep: 0 developments30 Sep: 0 developments1 Oct: 0 developments2 Oct: 0 developments3 Oct: 0 developments4 Oct: 0 developments5 Oct: 0 developments6 Oct: 0 developments7 Oct: 0 developments8 Oct: 11 developments9 Oct: 3 developments10 Oct: 6 developments11 Oct: 2 developments12 Oct: 7 developments13 Oct: 11 developments14 Oct: 13 developments15 Oct: 14 developments16 Oct: 8 developments17 Oct: 10 developments18 Oct: 6 developments19 Oct: 8 developments20 Oct: 8 developments21 Oct: 8 developments22 Oct: 8 developments
Stage: Coverage

Sources

  1. Compromised LiteLLM 1.107.0 on PyPI Installs a Credential Stealer and BackdoorHacker News
  2. eliasbiondo/antirionGitHub

Status history

  • 2026-10-22 Flagged as buildable