Back to all articles
Awarely Monitor
8 min6 sources

Malicious LiteLLM Packages Stole CI/CD Secrets: What 2,500 Matches Really Mean

LiteLLM versions 1.82.7 and 1.82.8 carried credential-stealing code on PyPI for about 40 minutes in March. CloudSEK now maps captured material to more than 2,500 organisations—but that is an exposure dataset, not a confirmed victim count.

Two unauthorised LiteLLM releases—1.82.7 and 1.82.8—were available on PyPI on 24 March 2026 from 10:39 UTC for approximately 40 minutes before the registry quarantined them. LiteLLM says the packages bypassed its official release workflow and carried code designed to harvest and exfiltrate credentials. The Python Packaging Authority advisory independently identifies the same two versions as malicious.

The collection scope was broad: environment variables, SSH private keys, cloud credentials, Kubernetes service-account tokens, database and LDAP configuration, repository and Docker credentials, dotenv files, shell histories and other secrets accessible from the host. The material was encrypted and sent to attacker-controlled infrastructure. Version 1.82.8 added a .pth file processed at Python startup, so the payload could execute without an application explicitly importing LiteLLM.

LiteLLM links the incident to the wider TeamPCP compromise of the Trivy security scanner used in its CI/CD chain. PyPA describes an exposed API token from the compromised Trivy dependency being used to upload the malicious LiteLLM versions. The exact sequence was initially described differently across reports, but the safe operational conclusion is consistent: trusted build tooling exposed a publishing credential, and that credential was used outside the intended release path.

02

Forty minutes of package exposure can create months of credential risk

Removing a malicious package ends distribution; it does not revoke anything already copied. A static cloud key, SSH key, package-publishing token or database password remains useful until it expires, is revoked or is rotated. That is why exposure assessment must follow the credential’s lifetime rather than the package’s time on PyPI.

LiteLLM advises teams to audit a wider window—from 10:39 to 16:00 UTC on 24 March—because an unpinned installation, Docker build, AI-agent framework, MCP server or orchestration dependency could have pulled one of the affected releases transitively. Official LiteLLM Proxy Docker images were identified by the project as not affected because their dependencies were pinned. Source installations from the project’s GitHub repository were also outside this PyPI publication path.

03

What CloudSEK’s new numbers say—and what they do not say

On 11 August, CloudSEK published an analysis of a dataset it says was obtained from confidential intelligence sources and built from material captured by the attackers. The company reports roughly 434,000 files or exfiltration events and organisation-level matches for more than 2,500 entities. Its public lookup labels matches High or Medium confidence and displays aggregate counts of “secrets” and “runs”.

Those figures must not be converted into 434,000 unique pipelines or 2,500 confirmed victims. CloudSEK told The Hacker News that a captured file is roughly associated with a job execution, but the dataset was not independently deduplicated into unique jobs. A High-confidence label means the researcher found stronger identity signals—such as host identity, legitimate committer domains and the organisation’s own domain—not that the organisation confirmed compromise or that an attacker successfully used a credential.

CloudSEK’s dataset is useful as an exposure notification and triage signal. It is not an independent forensic conclusion for every named organisation. We therefore do not reproduce its organisation list, secret counts or captured material here. A matching company should validate the finding against its own CI logs, dependency records, cloud audit trail and credential inventory.

04

The broader campaign has confirmed European impact

The uncertainty around the dataset’s scale does not make the TeamPCP campaign theoretical. CERT-EU and the European Commission assessed with high confidence that a compromised Trivy version exposed an AWS secret used to access European Commission cloud infrastructure. CERT-EU reported approximately 91.7 GB of compressed data exfiltrated and said information linked to at least 29 other Union entities could be affected.

That confirmed Trivy impact does not prove that every CloudSEK LiteLLM match was compromised. It demonstrates the attack chain that defenders must test: a trusted security dependency runs inside CI, reads a high-value environment, exfiltrates a credential and creates access that survives after the dependency is removed.

05

Immediate response for a possible LiteLLM exposure

LiteLLM’s incident report lists 1.82.6 and earlier audited releases as clean and says 1.83.0 was produced through a redesigned release pipeline. Because the project has continued releasing since March, remediation today should follow the current official supported-version guidance and verify artifact origin—not blindly downgrade to an old build.

  • Find evidence that LiteLLM 1.82.7 or 1.82.8 was installed or cached on 24 March, including CI logs, lockfiles, build manifests, image layers, package caches and transitive dependency records
  • Isolate affected hosts or runners and preserve evidence before cleanup; look for litellm_init.pth, persistence changes and outbound connections to the defanged indicators models.litellm[.]cloud and checkmarx[.]zone
  • Assume every secret accessible to the affected process was exposed: rotate cloud and model-provider API keys, SSH keys, Kubernetes tokens, database credentials, registry tokens and CI/CD publishing credentials
  • After rotation, invalidate sessions and derived credentials, remove unauthorised keys or service accounts and review AWS, Azure, GCP, GitHub, GitLab, Kubernetes and database audit logs for use after the exposure window
  • Rebuild affected environments from verified artifacts and a current supported LiteLLM release; do not treat deleting the package or upgrading in place as proof that the host is clean
06

Three engineering changes that reduce the next blast radius

The .pth execution path also shows why “our application does not import it” is not an adequate exposure test. Inventory must describe what was installed into the Python environment and image, not only what appears in the application’s import graph.

  • Replace long-lived CI secrets with short-lived, workload-bound credentials wherever the cloud, registry and package ecosystem support them
  • Pin actions and dependencies to immutable digests or commit SHAs, retain software bills of materials and verify that a published artifact corresponds to an approved source revision
  • Separate build, test and publishing identities so a compromised security scanner cannot automatically inherit the authority to release packages or administer production
07

The NIS2 governance question is ownership, not package trivia

For European organisations, this event maps directly to NIS2 risk-management disciplines around incident handling, business continuity, supply-chain security, vulnerability handling, cryptography and control effectiveness. Whether an event meets a reporting threshold depends on the organisation and actual impact, but that assessment cannot start without an owned inventory and evidence of exposure.

Management should be able to answer: who owns AI gateway dependencies, who can see every secret a runner receives, who authorises rotation across cloud and engineering teams, and what proves that a suspected credential was not used after March? A list of package versions answers only the first minute of the incident.

Awarely Monitor connects vulnerability and advisory intelligence from NVD, CISA KEV, EUVD and GitHub Security Advisories to an asset inventory, ownership, remediation state and audit evidence. In a supply-chain case, that record helps turn a global warning into a defensible list of affected systems, accountable owners and verified actions.

Sources and verification

Open the original sources for context, updates and the exact wording of claims.

AWARELY Intelligence

Continue reading

View all articles