🔴 LiteLLM Supply Chain Attack: Credential Stealer

5 STAR - CRITICAL | Source: GitHub BerriAI/litellm Issue #24512 | Date: 2026-03-24

Summary

The litellm==1.82.8 wheel package on PyPI contains a malicious .pth file (litellm_init.pth, 34,628 bytes) that automatically executes a credential-stealing script every time the Python interpreter starts — no import litellm required.

Key Findings

Attack Mechanism: .pth files in site-packages/ are executed automatically by Python interpreter on startup. The payload is double base64-encoded, making it invisible to naive source code grep.

What Gets Stolen (Stage 1)

Exfiltration (Stage 2)

Impact

Recommended Actions

  1. Check for litellm_init.pth in your site-packages/ directory
  2. Rotate ALL credentials present as environment variables or in config files
  3. Audit your PyPI publishing credentials and CI/CD pipeline
  4. Consider using PyPI trusted publishing or hash verification

Tags

Supply Chain Security PyPI Credential Theft Security Vulnerability AI Infrastructure

🔗 Original Issue