My minute-by-minute response to the LiteLLM malware attack

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Anyone who installed or upgraded litellm could have pulled malicious code, so teams using the package need to verify their versions immediately.

Read this as

A researcher named Callum McMahon discovered a malicious version of the LiteLLM package, version 1.82.8, being distributed on PyPI, the online store where Python programmers download software. He used the Claude AI assistant inside a Docker container, a sealed-off virtual environment, to safely confirm the code was malware, then reported it. LiteLLM is a widely used tool for calling large language models.

A compromised version of LiteLLM, a popular open-source library for accessing large language models, briefly appeared on PyPI, exposing any organization that installed version 1.82.8. Callum McMahon confirmed the malware using Claude in a Docker sandbox and escalated it to PyPI's security team. The incident shows both real supply-chain risk to AI infrastructure and AI assistants being used to verify and respond to it.

The malicious litellm==1.82.8 wheel on PyPI contained a litellm_init.pth file, 34,628 bytes, whose first line executes base64-decoded code via subprocess.Popen.pth files run on Python interpreter startup, giving persistence. Callum McMahon downloaded the wheel in an isolated Docker container to confirm the payload, with Claude suggesting the security@pypi.org contact. He published the Claude transcript using Willison's claude-code-transcripts tool.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

LiteLLM PyPI Claude Docker Callum McMahon Simon Willison

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.

datasette-charts 0.4a0

Datasette now lets developers add custom chart types more easily, expanding visualisation options for data projects.