Skip to main content
    Securem Advisory
    AI Watch
    Briefing Nov 14, 2026

    On October 21, 2026, LiteLLM's own release pipeline built, signed and published a version that stole credentials from the environments that installed it. The malicious packages were live for about two hours. The way in was an administrative key committed to a public repository in May, removed three hours later and never revoked. For any team that routes model calls through a gateway, the lesson is operational: how updates reach production, where your provider keys sit, and where your spending limit is actually enforced.

    The Gateway in Front of Your Models Got Compromised: What LiteLLM 1.107.0 Changes About Keys, Updates and Spend Limits

    An open-source model gateway shipped credential-stealing malware for about two hours on October 21, 2026, through its own signed release pipeline. For mid-market teams the gateway is where every model key and budget cap lives, so the operating decisions matter: pinned versions, provider-side spend limits, and a key rotation you have actually rehearsed.

    A model gateway is the thin layer many teams put between their applications and the model providers. It holds the provider keys, routes each request to the right model, enforces budgets and keeps the logs. We recommended the pattern ourselves in June, when a flagship model was pulled offline three days after launch and the case for an abstraction layer became hard to argue with. On October 21, 2026, LiteLLM, an open-source gateway, showed the other side of that advice. Its own release pipeline built, signed and published a version that stole credentials from the environments that installed it.

    This briefing is for the operator who owns AI workflows and their budget, whether or not LiteLLM is in your stack. The incident is specific. The questions it raises apply to any layer that sits in front of your models: how updates reach production, where the keys live, and where your spending limit is actually enforced.

    What changed: a signed release from the vendor's own pipeline carried a credential stealer

    The facts below come from LiteLLM's three published accounts and from independent analysis of the package.

    On October 21, seven package builds of version 1.107.0 were published to the Python package index and were live from 11:39 to 13:23 UTC. Container images followed a few minutes later. On Docker Hub and the GitHub container registry, the tags v1.107.0, latest, main-latest and main-stable all pointed at the compromised image, on Docker Hub until 14:20 UTC. LiteLLM puts the exposure at about two hours. The company says all previous versions are safe and that customers running its private enterprise release were not affected.

    The malicious build added three files outside the package's own directory. They run every time Python starts in that environment, including when someone runs the package installer to investigate. Socket's analysis describes sixteen collection modules that gather cloud credentials for AWS, Azure and Google Cloud, Kubernetes and Docker access, SSH keys, environment files and variables, and the saved sign-in files of several AI coding tools. A second component starts a background process that checks in every hour for further code to run. LiteLLM's guidance is blunt. If 1.107.0 was ever installed on a host with outbound internet access, assume the theft succeeded, and rotate the host's cloud role credentials, every provider key stored in the gateway's database, the master and virtual keys, the database password and any secrets in the environment.

    Two details make this more than a bad package. The images were signed. LiteLLM states that the compromised images carry a valid signature from its previous signing key, so they have to be checked by digest, and it introduced a new key on October 23. And the pipeline that produced them was the hardened one. After an earlier incident on March 24, 2026, when two malicious versions reached the package index, the company rebuilt its release process with isolated environments and image signing. That rebuilt process signed the October build.

    The root cause, published on October 23, is the part every operator should read twice. On May 27, a configuration file containing an administrative key for an internal experimental service was committed to a public repository. The file was deleted about three hours later. The commit stayed in public history until October 22 and, in LiteLLM's words, because of human error nobody followed through on revoking the key. On October 10 an attacker used it. The service returned the GitHub token of one of the organization's two owners. With that token the attacker collected two more maintainers' tokens through the build system, and on October 21 used all three to point the release at a lookalike repository, override branch protection, approve the production gate and delete the run records. Release approval had been loosened earlier that week so that any two engineers could trigger and approve a release.

    One more thing changed between the first report and the second. LiteLLM's first post suspected the tokens had been taken from the logs of an internal deployment. Two days later its own request logs showed the first token came from a different service. An early incident account is a working theory. The remediation steps are what you act on.

    Why it matters to an operator

    The gateway is valuable for the same reason it is exposed. It is the one host that holds every model key you own, the keys you issue to your own applications, the database behind them and the logs of what was asked. A compromise there reaches all of your AI spend and every data path that runs through it.

    Three operating habits decided who was exposed. The first is how updates arrive. A deployment that pulled latest or main-stable during those hours, on a restart or an automatic scale-up, received the malicious image without anyone choosing to upgrade. A tag named stable is still a pointer that someone else can move. The second is the build environment. A temporary build job that installed the package for a few minutes is a host that ran the malware, even if production never did. What matters is what executed, not what the repository says today. The third is how much weight you place on the vendor's controls. Signing, branch protection and an approval gate were all in place, and each was either satisfied or overridden with the credentials of the people those controls trusted. The protections that hold in that situation are the ones on the buyer's side: a pinned digest, and a waiting period before adopting a new release.

    There is a budget point here that is easy to miss. A stolen provider key is a spending instrument. Gateway budgets, the caps many teams rely on, limit only the traffic that passes through the gateway. A key taken from the gateway's database and used directly against the provider never meets them. The limit that binds a stolen key is the one set at the provider.

    There is also a continuity point. If the right response is to tear the gateway down and rebuild it, every workflow behind it stops while you do. A team that has rehearsed rotating its keys loses an afternoon. A team that has not will spend days finding out where each key is used.

    And the oldest lesson is the one that started it. A secret removed from a repository is not a revoked secret. GitHub's own guidance says the first step after committing one is to revoke or rotate it, and warns that the commits may still be accessible in clones and forks. More than four months passed between this commit and its use.

    What to check and what to ask

    If LiteLLM runs anywhere in your environment, establish whether version 1.107.0 was installed or its image pulled on October 21, and include build jobs, test environments and containers that no longer exist. Follow the vendor's order of operations. Do not begin by running the installer in the affected environment. Rebuild from a clean base, pin to a known version, and rotate credentials from a clean machine.

    Whatever sits in front of your models, four questions are worth an hour with whoever runs it. How does a new upstream release reach production: by a pinned digest that someone changes on purpose, or by a tag that moves by itself? How long do we wait between a release appearing and our deploying it? For each provider account behind the gateway, is there a hard spending limit at the provider or only an alert, and who receives that alert at night? And if we had to rotate every key today, where is the list of what uses each one?

    If you buy a managed or enterprise edition, ask the vendor to describe its release path in the same detail. LiteLLM's enterprise customers were not affected this time, and the company has since announced a private registry for delivering embargoed fixes, while saying plainly that the registry does not represent a material security boundary with regard to releases. That candor is useful. The tier you pay for is not, by that fact alone, the control.

    What we recommend

    First, run the gateway like production infrastructure. Deploy by digest, never by a floating tag, and hold new releases for a few days unless they fix a vulnerability you are exposed to.

    Second, put the spending limit where a stolen key will meet it. Set limits at the provider, and issue a separate provider key for each workflow so that a rotation is narrow and a runaway is contained.

    Third, rehearse the rotation. Time it once, write down the steps, and decide in advance which critical workflows can call a provider directly if the gateway has to come down.

    Fourth, close the loop on leaked secrets. Revoke first, clean up second, and keep the ticket open until someone has confirmed that the old key fails. LiteLLM has committed to that rule in its own post-incident changes.

    Fifth, keep production keys out of build environments, so that a poisoned dependency in a build job finds nothing worth taking.

    None of this argues against a gateway. It argues for owning the one you run. Where a workflow touches regulated data, our Security and Governance practice sets these controls with the client's team, and our AI Transformation practice builds them into the workflows it designs and helps run on the client's own tenant. If you do not yet have a clear picture of which workflows depend on which keys, the Diagnostic produces one in 21 days, at $10,000 fixed, in a written report that ranks workflows by value and by exposure, makes a build or buy call and sets a 90-day plan. The infrastructure behind any agent deployment is laid out in our field guide, Agent Infrastructure for Regulated Buyers.

    The gateway was the right idea in June and it is the right idea now. October showed what it costs to run one without deciding who moves its version, who holds its keys and where the money stops.

    Next step

    Have this question on a real workload?

    The Diagnostic is a written assessment of which workflows AI should carry, what each one exposes, and what to do in the next 90 days. $10,000 fixed, 21 days. You keep the report.

    See the Diagnostic
    (↗)RELATED BRIEFINGS