Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/Litellm 11070 supply chain attack how to secure ai gateways beyond code signatur
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

LiteLLM 1.107.0 Supply Chain Attack: How to Secure AI Gateways Beyond Code Signatures

Source: Qualys•November 23, 2026 at 04:11 PM

LiteLLM 1.107.0 Supply Chain Attack: How to Secure AI Gateways Beyond Code Signatures

On October 21, 2026, LiteLLM’s official release pipeline built, signed, and published version 1.107.0 from an attacker-controlled lookalike fork. The v1.107.0 source tag on GitHub was clean, and the compromised images carried a valid signature. The maintainers have since published their…

On October 21, 2026, LiteLLM’s official release pipeline built, signed, and published version 1.107.0 from an attacker-controlled lookalike fork. The v1.107.0 source tag on GitHub was clean, and the compromised images carried a valid signature. The maintainers have since published their root cause analysis and moved to keyless signing, so security teams can now check two things: whether a compromised artifact ever ran in their environment, and whether their deployment policies would catch the next one.

Which LiteLLM Artifacts Were Affected?

All seven litellm==1.107.0 wheels on the Python Package Index (PyPI) were affected, along with the images behind four tags on Docker Hub and GitHub Container Registry (GHCR). Times are in Coordinated Universal Time (UTC) on October 21, 2026.

The source distribution carried a tampered build configuration but not the payload files. Mirrors, caches, and images built on an affected base can extend exposure beyond these windows, so match the digests in the LiteLLM advisory rather than tags.

Would You Be Affected If You Never Imported LiteLLM?

Possibly, yes. The wheels placed cook.pth, cook.py, and sitecustomize.py in site-packages, outside the litellm package. Python processes these files at interpreter startup, so any Python launch in an affected environment could run the credential collector, including an unrelated pip install. A separate loader could fetch further code from an attacker-controlled server.

The stolen credentials were used quickly. Public research observed Amazon Web Services (AWS) instance-role credentials taken from continuous integration (CI) runners and Kubernetes nodes being validated with sts: GetCallerIdentity and then used to list Amazon Bedrock models later that day.

On hosts, LiteLLM’s points to the startup files above and a detached Python process holding /tmp/remote_code_loader.lock. For the attack itself, see the maintainers’ official indicators, including the lookalike Berri-AI organization and the attacker’s Internet Protocol (IP) addresses. A missing artifact does not prove a host is clean.

Why Are AI Gateways High-Value Targets?

LiteLLM gives applications one interface to many model providers. A self-hosted proxy can hold upstream provider keys, a proxy master key, virtual keys, and database credentials, often alongside a cloud identity that can call managed model services. The same package on a developer laptop or CI runner exposes something different: source-control tokens, registry and deployment access, and sometimes signing material. Where the package ran determines which credentials were at risk.

What Should You Do If You Installed Or Ran LiteLLM 1.107.0?

Treat the environment as compromised, scope exposure from the artifact that ran, and rotate everything it could reach.

  • Find every copy that ran. Check direct and transitive dependencies, lock files, build logs, CI runners, developer environments, private mirrors, and image caches. A moving tag may resolve to a clean image today while a cluster or downstream image still runs the compromised build.
  • Contain and inspect safely. Isolate affected workloads and preserve filesystem, process, network, and identity evidence. Inspect them from a known-clean system, because running Python or pip inside a suspect environment can trigger the payload again.
  • Follow the credentials. AI gateways concentrate secrets as explained above. From a clean machine, rotate everything the affected process could reach, starting with credentials that can mint tokens or change production. On gateways, that means provider keys, proxy master and virtual keys, and database passwords. For build runners, it means access to source control, the registry, deployment, and signing. Revoke sessions, then review cloud, identity, model-provider, and source-control logs for use after exposure, including GetCallerIdentity calls from workload roles.
  • Rebuild instead of repairing. Removing the package or retagging an image does not count as recovery. Redeploy from a verified release on clean infrastructure, rebuild downstream images, and confirm the digests actually running. Keep watching the exposed identities after the workload is gone.

How Did Attackers Use a Leaked Key To Reach LiteLLM’s Release Pipeline?

The attackers used a leaked administrative key that was never revoked. In May, a configuration file containing a key for LiteLLM’s internal Agent Platform was committed to a public repository. On October 10, an attacker used it to obtain an organization owner’s GitHub Command-line Interface (CLI) token, then harvested additional maintainer tokens via short-lived workflows. On release day, the owner token overrode branch protection and pointed the staging build at the lookalike Berri-AI/litellm fork. A second stolen token approved production. This incident was separate from the March compromise of versions 1.82.7 and 1.82.8.

Why Didn’t Image Signing Stop The Attack?

A signature proves who signed an artifact, not what source that signer built. The official pipeline signed 1.107.0 exactly as it would sign a legitimate release. Public analysis of the image provenance found that it named LiteLLM’s real release workflow as the builder and the lookalike fork as the source repository. A deployment policy that checked the expected source repository and revision, in addition to the signature, had the evidence it needed to reject this release.

LiteLLM rotated its signing key on October 23 and adopted keyless signing from v1.111.0-dev.3 on November 15.

Trust the previous key only for images published before 1.107.0. Verify releases from October 24 until keyless signing began with the rotated key, after checking its fingerprint against LiteLLM’s advisory. Verify keyless releases by the certificate identity and the OpenID Connect (OIDC) issuer, not by a key.

Pin approved digests and package hashes. Give release identities short-lived, narrowly scoped credentials instead of personal CLI tokens, and require independent approval for changes to the build source.

For AI gateways, map each deployment to its owner, model provider accounts, cloud identity, and secrets. Use separate identities per environment and restrict egress, so responders know what to isolate and revoke first.

How Qualys TotalAI Helps You Scope AI Supply Chain Exposure

Qualys TotalAI brings AI software, workloads, and containers into one inventory built on Qualys sensors and connectors. Responders can use it to move from an advisory to a list of assets that need investigation.

  • Find where AI software runs. The AI Workloads view shows whether AI software is installed, running, or communicating on each host, with binary, arguments, last-seen time, and Qualys Query Language (QQL) search.
  • See inside AI containers. AI Containers adds installed software, Kubernetes metadata, and linked hosts and containers.
  • Trace code to deployment. When QScanner runs in continuous integration and continuous delivery (CI/CD), Code Assets link repositories to the images built from them. Qualys then correlates those images with container, cloud, and Kubernetes inventory to show where the software is deployed.
  • Prioritize the response. Combine TruRisk scores with what each workload can reach to decide what to isolate and which credentials to rotate first.

Frequently Asked Questions (FAQs)

Which LiteLLM version should I run?

Run a release other than 1.107.0 that you have verified against LiteLLM’s current signing guidance, and pin it by hash or digest.

Does uninstalling LiteLLM remove the malware?

No. The startup files sit outside the package directory, and stolen credentials stay valid until they are revoked. Rebuild the environment and rotate credentials.

Do images built on LiteLLM need checking?

Yes. Any image built on an affected base image or with an affected wheel carries the payload, whatever its own tag says. That includes builds after the exposure window that pulled from a cache or mirror. Check each image’s base digest and installed packages, not its build date.

Were LiteLLM Enterprise customers affected?

According to the maintainers, customers running the private enterprise release were not affected.

← All articles

What this article says

More in Cybersecurity

All →
Got the next big thing in AI security? Pitch it at CPX and win!
Check Point

Got the next big thing in AI security? Pitch it at CPX and win!

Agentic Attacks: In The Wild
Wiz

Agentic Attacks: In The Wild

Upgrade to Qualys’ Learning Management System (LMS)
Qualys

Upgrade to Qualys’ Learning Management System (LMS)

Is eBay safe? Common eBay scams to look out for
ESET

Is eBay safe? Common eBay scams to look out for

Five myths about MSP cyber resilience (and the truth behind them)
ESET

Five myths about MSP cyber resilience (and the truth behind them)

Java4Shell (CVE-2026-114938): Risks and Mitigations
CyberArk

Java4Shell (CVE-2026-114938): Risks and Mitigations

More from Qualys

Upgrade to Qualys’ Learning Management System (LMS)
Qualys

Upgrade to Qualys’ Learning Management System (LMS)

A Technical Guide to Mitigate Java4Shell with TruRisk Eliminate
Qualys

A Technical Guide to Mitigate Java4Shell with TruRisk Eliminate

Third-Party JavaScript Is Part of Your Attack Surface: Lessons from a Recent Supply-Chain Attack
Qualys

Third-Party JavaScript Is Part of Your Attack Surface: Lessons from a Recent Supply-Chain Attack

NGINX2Root: Five nginx Flaws, Led by CVE-2026-123007. How to Find, Mitigate, and Patch Now
Qualys

NGINX2Root: Five nginx Flaws, Led by CVE-2026-123007. How to Find, Mitigate, and Patch Now

Why AI-ROC Is the Future of Exposure Management
Qualys

Why AI-ROC Is the Future of Exposure Management

Cognizant and Qualys Redefine AI-Era Managed Security Service
Qualys

Cognizant and Qualys Redefine AI-Era Managed Security Service