A compromised release of the popular LiteLLM library proves that Python packages can compromise your system even if your application never imports them.
The attackers compromised version 1.107.0 on PyPI by inserting a single directive into the maturin build configuration within pyproject.toml. That single line caused the wheel installer to drop extra payload files directly into the site-packages directory of the environment.
The payload takes advantage of two standard Python startup mechanisms: a pth file and a sitecustomize script. Because the Python runtime evaluates these files on initialization, the backdoor and credential stealer execute whenever any Python process starts on the machine. The attacker scripts scrape cloud secrets, shell configurations, CI credentials, and stored LLM provider API keys before transmitting them to a malicious remote domain.
For backend teams deploying LLM proxies, this attack targets the exact credential store where production model keys reside. Pinning exact hash digests and utilizing ephemeral, isolated execution environments are no longer optional precautions for AI gateway infrastructure.
Supply chain defense must verify the build artifact itself, not just the repository source code.










