How to Check Endpoints for the Compromised LiteLLM 1.82.7 and 1.82.8

On March 24, 2026 two malicious LiteLLM releases were published to PyPI. They were live for less than an hour, but LiteLLM is a common dependency of agent frameworks and MCP servers, so many machines got it without anyone choosing to install it. Here is what happened, according to LiteLLM's own incident report, and how to check laptops, virtual environments, WSL and containers.

By Kuntur team · Published

Short answer. Look for two things on every machine that runs Python: a litellm-1.82.7.dist-info or litellm-1.82.8.dist-info folder in any site-packages, and a file named litellm_init.pth. Check DNS and proxy logs for models.litellm.cloud and checkmarx.zone. If you find any of them, LiteLLM's guidance is to rotate every secret the machine had access to, remove the file, investigate the host and keep the artifacts. The official ghcr.io/berriai/litellm Docker image, LiteLLM Cloud, installs from the GitHub source and machines that stayed on 1.82.6 or earlier were not affected.

What happened

LiteLLM is a Python SDK and AI gateway that gives one interface to many model providers. According to LiteLLM's incident report:

The .pth file is what made 1.82.8 worse. Python reads .pth files in site-packages every time the interpreter starts, and lines that begin with import are executed. So once 1.82.8 was installed in an environment, any Python program started from that environment could run the payload, even one that never imports LiteLLM.

Why laptops are in scope

LiteLLM's report lists three ways to be affected: a direct pip install litellm without a pinned version, a Docker image built in that window with an unpinned install, or LiteLLM pulled in as an unpinned transitive dependency of something else, such as an AI agent framework, an MCP server or an LLM orchestration tool.

The third one is why this is an endpoint problem and not only a CI problem. A developer who installed an agent framework or a Python MCP server that day may have LiteLLM without knowing it, in a virtual environment nobody inventories. Developer laptops also hold exactly what the payload looked for: SSH keys, cloud CLI credentials, kubeconfigs and API keys in environment variables.

Check one machine

Run these as the user who uses Python, not as SYSTEM or root only: per-user installs live in the home folder. On Windows, repeat the Linux commands inside each WSL distro, because WSL has its own Python installs.

macOS and Linux

# Every installed LiteLLM version, in any site-packages under these folders
find "$HOME" /usr /opt /Library -type d -name 'litellm-*.dist-info' 2>/dev/null

# The .pth launcher used by 1.82.8
find "$HOME" /usr /opt /Library -name 'litellm_init.pth' 2>/dev/null

# Wheels still sitting in the pip cache (they would reinstall the same version)
python3 -m pip cache list litellm 2>/dev/null

The folder name carries the version, for example litellm-1.82.8.dist-info. Anything other than 1.82.7 or 1.82.8 is not one of the two compromised releases.

Windows (PowerShell)

$roots = $env:USERPROFILE, $env:LOCALAPPDATA, $env:APPDATA, $env:ProgramFiles, 'C:\ProgramData'
# Installed LiteLLM versions
Get-ChildItem -Path $roots -Recurse -Directory -Filter 'litellm-*.dist-info' -ErrorAction SilentlyContinue |
  Select-Object FullName
# The .pth launcher used by 1.82.8
Get-ChildItem -Path $roots -Recurse -File -Filter 'litellm_init.pth' -ErrorAction SilentlyContinue |
  Select-Object FullName, LastWriteTime

A recursive search of the profile can take a few minutes on a developer machine with many projects. That is expected: virtual environments are usually inside project folders.

Containers

For images you build yourself, check the installed version inside the image, not only the Dockerfile:

docker run --rm --entrypoint sh IMAGE -c 'pip show litellm 2>/dev/null | grep -i ^version; find / -name litellm_init.pth 2>/dev/null'

Images built on March 24, 2026 with an unpinned LiteLLM, directly or through a dependency, are the ones to look at first.

Check a fleet

If you find it

LiteLLM's recommended actions, in order:

  1. Rotate every secret on the affected system: API keys, cloud access keys, database passwords, SSH keys, Kubernetes tokens, and any secret in environment variables or config files.
  2. Remove litellm_init.pth, investigate the host for further compromise and preserve artifacts for forensics.
  3. Audit version history in local environments, CI/CD pipelines, Docker builds and deployment logs to confirm whether 1.82.7 or 1.82.8 was installed.
  4. Pin LiteLLM to 1.82.6 or earlier, or to a later verified release such as 1.83.0.

Removing the package or the file stops it from running again. It does not undo what already ran, which is why rotation comes first.

What Kuntur does and does not cover

We want to be precise here. Today Kuntur reports LiteLLM where it finds it: as an AI SDK in Python environments in common locations (system and user site-packages, conda, pyenv, ~/.venv) and in the environments of running Python processes, and as a container when the official ghcr.io/berriai/litellm image is running. That tells you which machines and users have LiteLLM at all, which narrows where to run the checks above.

It does not yet report the installed LiteLLM version, and it does not flag litellm_init.pth. For this incident, use the commands and queries on this page. Kuntur also never blocks or removes anything; remediation stays with you.

To see which AI tools and SDKs one machine has, run the free scanner as the user:

Windows (PowerShell)

irm https://app.kuntur.io/scan.ps1 | iex

macOS and Linux (Terminal)

curl -fsSL https://app.kuntur.io/scan.sh | sh

It needs no account and no admin rights, writes an HTML report to the Desktop (or home folder) and uploads nothing. You can read scan.ps1 or scan.sh before running it; what it collects is documented.

Free for up to 5 endpoints. Pro is US$3 per endpoint per month (or US$30 per endpoint per year) for 10 to 30 endpoints. The trial needs no credit card.

FAQ

Was the official LiteLLM Docker image affected?
No. LiteLLM says users of the official proxy image ghcr.io/berriai/litellm were not affected, because it pins its dependencies. Images you built yourself with an unpinned pip install litellm on March 24, 2026 can be.
Is LiteLLM 1.82.6 safe?
LiteLLM lists 1.82.6 and earlier as not affected, and publishes SHA-256 checksums for the releases it audited. 1.83.0 was the first release from its rebuilt pipeline.
Do I need to import LiteLLM to be affected?
Not with 1.82.8. Its litellm_init.pth file runs whenever Python starts in that environment, whether or not anything imports LiteLLM. With 1.82.7 the payload was in the gateway's proxy_server.py.
Was the GitHub repository compromised?
LiteLLM says no: the two versions were published directly to PyPI and installs from the GitHub source were not affected.

Sources

  1. LiteLLM: Security Update, Suspected Supply Chain Incident (March 2026)
  2. Python documentation: the site module and .pth files
  3. osquery schema: python_packages table
  4. PyPI: litellm release history

More guides and tools: