Home › Intelligence › Brief
BREACH BRIEF🟠 High Breach

Supply‑Chain Attack on LiteLLM Exposes Unrevoked Master Key, Leads to Credential‑Harvesting Malware on PyPI

LiteLLM’s open‑source AI tool was compromised after a master key, mistakenly published in May, remained active. Attackers used the key to upload a malicious PyPI package that harvested cloud credentials from roughly 49,000 downloads. The incident underscores the need for robust key‑management and supply‑chain controls to satisfy audit‑readiness across frameworks.

LiveThreat™ Intelligence · 📅 November 18, 2026· 📰 therecord.media
🟠
Severity
High
BR
Type
Breach
🎯
Confidence
High
🏢
Affected
3 sector(s)
✅
Actions
5 recommended
📰
Source
therecord.media

Supply‑Chain Attack on LiteLLM Exposes Unrevoked Master Key, Leads to Credential‑Harvesting Malware on PyPI

What Happened — LiteLLM, an open‑source library that powers AI agents for developers, disclosed a supply‑chain breach that originated from a configuration file accidentally published in May 2024. The file contained the master key for an internal tooling service used to orchestrate AI agents. Although the file was removed promptly, the key was never revoked. In early May 2024 an unknown attacker retrieved the key, used it to generate an access token, and gained full control over LiteLLM’s GitHub repositories.

Leveraging that access, the attacker uploaded a malicious version of the LiteLLM package (v1.107.0) to the Python Package Index (PyPI). The package contained credential‑harvesting malware that executed whenever the Python interpreter started, regardless of whether the LiteLLM library was invoked. The malicious package was live on PyPI for roughly two hours and was downloaded about 49,000 times before removal.

Wiz, a cloud‑security firm owned by Google, observed that within four and a half hours of the upload the attacker began testing stolen AWS credentials to probe which Amazon AI models the compromised accounts could access. This behavior matches the “LLMjacking” pattern, where stolen cloud accounts are used to run costly AI workloads, leaving victims with unexpected bills.

Microsoft confirmed that the malware persisted across Python sessions, making it difficult for victims to detect without thorough endpoint inspection. LiteLLM warned all users of version 1.107.0 to assume credential compromise and to rotate every password and access key reachable from the affected machines. The project also began revoking tokens across its internal services and vendor platforms.

The incident marks the second supply‑chain compromise of LiteLLM in 2024. In March, a separate campaign linked to the TeamPCP hacking group published malicious LiteLLM packages to PyPI. Australian authorities have since charged two individuals alleged to be members of TeamPCP.

Why It Matters for Trust & Control Assurance — The breach highlights a control gap in credential lifecycle management and software‑supply‑chain integrity, directly testing the control objective of “secure management of cryptographic keys and third‑party software components.”

Who Is Affected — AI/ML developers, enterprises that integrate LiteLLM into production pipelines, cloud‑service customers (AWS, Azure, GCP) that stored credentials on affected machines, and any organization that installed the compromised PyPI package.

Recommended Actions

  • Revoke all LiteLLM‑related tokens and rotate any secrets that may have been exposed.
  • Conduct a full inventory of Python environments to identify installations of LiteLLM 1.107.0 and remove them.
  • Perform credential hygiene: reset passwords, rotate API keys, and enable MFA on all cloud accounts that may have been accessed.
  • Implement continuous monitoring of supply‑chain artifacts (e.g., PyPI packages) and enforce signed releases for critical open‑source components.
  • Review and harden key‑management processes to ensure that any exposed secret is promptly revoked and audited.

Technical Notes —

  • Attack vector: Exposed master key → unauthorized GitHub repo access → malicious PyPI package upload.
  • Malware behavior: Executes on Python interpreter start, harvests cloud credentials, attempts immediate use against AWS services.
  • Impact metrics: ~49,000 downloads; malicious package live for ~2 hours; credential testing began within 4.5 hours.
  • Relevant CVEs: None disclosed; the issue stems from operational secret‑management failure rather than a software vulnerability.

Source: The Record – LiteLLM hackers AI malware

📰 Original Source
https://therecord.media/litellm-hackers-ai-malware ↗

This LiveThreat Intelligence Brief is an independent analysis. Read the original reporting at the link above.

From the Verisq platform · Trust Operations

Misconfigurations are control gaps in disguise.

Verisq AI Trust Operations turns findings like this into mapped controls with continuous evidence, keeping your audit readiness current instead of point-in-time.

Map your controls with Verisq AI Trust Operations →