Skip to content

LiteLLM: attestation is not enough

Why LiteLLM and Trivy show that attestation alone cannot establish release safety, and how Bitbison combines static analysis with actually building and running packages.

LiteLLM overhauled its release process after its March compromise. In October, that pipeline still built, signed and published malware. Trivy had already shown a similar failure. Attestation alone is not enough to establish that a release is safe; the decision also needs evidence of what actually ran.

A hardened release pipeline still shipped malware

LiteLLM's October compromise came after a release-security overhaul. Following an earlier compromise in March, the LLM gateway had moved releases to a private repository, adopted Trusted Publishing and added Docker image signing. Those controls did not stop the next malicious release. On October 21, the project's own pipeline built, signed and published version 1.107.0 from attacker-controlled source. The compromised Docker images carried valid signatures.[1]

Trivy had shown a related failure in March. The project already used Sigstore signing and had enabled immutable GitHub releases after an earlier compromise. Immutability protected existing releases, including Trivy 0.69.3 and trivy-action 0.35.0. But incomplete credential rotation left attackers with access to modify the release workflow, fetch malicious source during the build and publish a new malicious version, 0.69.4.[2] Aqua added SLSA provenance attestations as part of the subsequent remediation.[3]

An attestation is a digitally signed statement about a software release. For example, a publish attestation can say that a particular package file was uploaded by a project's release workflow. It identifies the file by a cryptographic hash: a fingerprint calculated from the file's contents. Verification checks that the downloaded file matches that fingerprint and that the statement's signature belongs to an identity the consumer trusts, such as the project's GitHub Actions workflow.[4]

The misconception is that verifying a release's signatures and attestations is enough to establish that it is safe. Attestation alone is not enough. A publish attestation can identify the expected publisher, but it cannot tell you whether that publisher's workflow has been compromised. It does not establish that the published code is safe.[5] Making that decision requires evidence about the code's behavior and the execution that produced the artifact.

LiteLLM's October 23 postmortem traces the attack to an exposed Agent Platform master key that had not been revoked. The attacker used it to retrieve a GitHub organization owner's token, then stole additional maintainer tokens through malicious workflows. With those credentials, the attacker bypassed branch protections, redirected the release workflow to a lookalike repository and approved publication.[6]

The resulting wheels contained a credential stealer. Our incident review shows the behavior Bitbison detected.[7] This post examines the evidence that signatures and publish attestations do not provide, and how Bitbison users act on it at two points: rejecting malicious dependencies before installation or import, and blocking compromised artifacts before publication.

Verify what each attestation establishes

For a GitHub Actions release, GitHub issues a short-lived identity token to the running workflow. Services such as PyPI can check that token to establish which workflow is publishing. A signed attestation lets consumers verify the connection between that publisher and a specific package file. These checks establish origin and integrity; they do not inspect the package for malicious behavior.[8][5]

The scope of the claim matters. Release controls provide different guarantees:

  • Trusted Publishing authorizes uploads using a configured identity and short-lived credentials. PyPI explicitly states that it does not establish whether the uploaded code is safe. The authorized workflow must still be protected.[8]
  • Artifact signatures let consumers verify that an artifact has not changed since it was signed. They do not establish the integrity of the build and release process that produced it.
  • Publish attestations associate a distribution with the Trusted Publisher identity that uploaded it. A PyPI publish attestation does not contain a history of the build's execution.[5]
  • Build provenance records how an artifact was produced, including the builder, parameters and resolved dependencies. Consumers can check those claims against their expectations.[9]

The gap between declared build inputs and actual execution is a recurring attack surface. In the Ultralytics compromise, attackers poisoned a build cache and published the first malicious releases through the existing workflow.[10] The xz backdoor used code added to release tarballs to extract a payload from files presented as test data and alter the build.[11]

These attacks illustrate why the build's behavior matters. Provenance derived from declared configuration or telemetry limited to individual tools can miss activity in build scripts, subprocesses and the surrounding system. A correctly signed attestation cannot explain behavior its producer never observed.

Combine static and dynamic analysis

Behind registry.bitbison.io is our bare metal cloud, continuously building and analyzing packages in real time. It has already performed millions of package builds. Its analysis machines come preloaded with Bitbison's runtime technology, so package execution is observed as it happens.

We combine advanced static analysis with dynamic analysis: examining package code, then actually building and running the package in isolation. Our runtime technology records the processes a package starts, the files those processes access and the network connections they make. It preserves the causal links between these actions: which process read an input, what it wrote and which process used that output next. That lets us trace suspicious behavior back to the code and inputs responsible for it.

We use techniques to maximize execution coverage, exercising more of a package's code paths so the analysis can expose behavior that a single execution might miss. Static analysis and the execution record provide complementary evidence: what the code can do and what it did during the analyzed runs.

Bitbison Code gives developers and their coding agents direct access to this analysis cloud, with guardrails that make analysis a condition of bringing a dependency into the stack. Package managers download through the organization's Bitbison registry, which checks analysis results and policy before serving a release. Developer installs, coding-agent requests and dependencies fetched by installation scripts all go through that check. Developers and agents can act on the findings; the registry enforces the decision before the package reaches their environment.

The package analysis view makes that decision inspectable. For rdsutilspack 9.9.9, Bitbison Code presents a deny verdict for an import-time beacon that sends hostname, username and DNS details to an external service. The build graph connects the outbound network finding to the execution that produced it.

Bitbison Code brings the package review, admission verdict and runtime findings into one view for developers and their coding agents. Click to enlarge.

Using runtime evidence as the basis for build provenance presents two distinct problems: making collection and retention affordable, and preserving the causal context needed to explain a build. Research such as eAudit continues to address collection overhead, event loss and log volume.[12] OpenSSF Package Analysis installs, builds and runs packages in sandboxes to examine their behavior before dependency use.[13]

The first problem is the cost of collecting and retaining that evidence. A declarative description of the build's inputs and configuration is easier to produce than a record of its actual execution. Bitbison solves the collection problem by providing a practical solution to full system causal capture, including that of builds. The measurements below show the cost of that capture on a kernel build.

The second is the data model. SLSA can identify inputs by location and content digest, although completeness of resolvedDependencies remains best effort through Build L3. Even a complete inventory would not establish which process retrieved an input, what happened to it before use or how it influenced an output. The standard does not require a record of those causal relationships. Establishing them requires both runtime evidence and a model that preserves the connections between operations, inputs and outputs.[9]

Follow the inputs into the artifact

Consider a build helper that downloads a file. A second process reads that file and writes a module into the release package. Investigating the module requires connecting those operations: where the input came from, which process consumed it and which output that process produced.

Recording that both processes ran leaves those relationships unresolved. The record must identify the file the first process wrote and the second process read, preserving the order of those operations. Here, causal completeness means preserving the process, file and network relationships needed to reconstruct such chains within the captured workload. A dependency establishes potential influence; deciding whether the activity is malicious requires further analysis.

To understand those chains as build operations, we also need to know which tools ran and what they were expected to do. Tool provenance identifies the tools and versions involved. Bitbison pairs the recorded system activity with a semantic model of those tools: a description of their expected operations, inputs and outputs. The model lets us interpret individual file reads and writes as build operations, such as compiling source code into an object file or linking object files into a library.

Bitbison then checks whether the observed behavior matches the tool's model. Inconsistencies become findings that can indicate malicious behavior.

Bitbison records these relationships so an investigator can trace an artifact back through the processes and inputs that produced it. The same record lets build analysis connect credential access to subsequent network activity.

Our October 25, 2026 reproduction of the xz-utils 5.6.0 build shows this in practice. Bitbison detected four findings in the backdoored release:[14]

  • Object provenance: three findings, two critical and one high, trace object code from tests/files/good-large_compressed.lzma through decoding commands into object files and ultimately liblzma.so.5.6.0, without a corresponding source compilation.
  • Build-file tampering: a high-severity finding identifies a generated Makefile edited in place by sed and read afterward by the build.
The registry's reproduction of the xz backdoor connects build behavior to the resulting artifact. Click to enlarge, or inspect the findings and their evidence.

Collecting that evidence has a cost. The hooks a collector uses, the operations it records and the way it stores relationships determine both its overhead and the questions it can answer. eBPF provides instrumentation facilities, but using it alone establishes neither capture completeness nor low overhead. Our post on eBPF performance covers some of these trade-offs, and we'll be sharing more in the coming months.

Make witnessing practical

The cost of collecting and retaining runtime evidence has made routine witnessing difficult to deploy. Bitbison makes it practical: during a Linux defconfig kernel build with make -j16, it added 0.98% median build time and retained a 4.60 MiB compressed causal record, with zero reported buffer drops.

In our OpenSSF Package Analysis run, build time increased by 250.97%, or about 3.51 times the uninstrumented baseline. Its compressed recording was 2,415.17 MiB, roughly 525 times the size of Bitbison's causal record. It then spent another 11 minutes 38 seconds processing the build log after execution; that time is excluded from the build slowdown shown below. This run used a custom kernel workload inside gVisor under a 4 GiB memory cap, so the slowdown includes sandbox execution.

Kernel build capture comparison. Bitbison, Sysdig, Tetragon and OpenSSF Package Analysis respectively: build slowdown 0.98%, 2.86%, 11.90%, 250.97%; compressed recording 4.60 MiB, 547.36 MiB, 211.03 MiB, 2415.17 MiB; reported Event Drops 0.00%, 16.08%, 84.23%, and 0 reported log-message drops for Package Analysis, whose event-loss percentage is unknown. Collector CPU: 1.83%, 76.79%, 282.88% of one core; peak collector memory: 249.55 MiB, 354.17 MiB, 4678.46 MiB. Package Analysis collector RSS was not measured separately; collector-only CPU was not isolated. Capture scopes and loss counters differ; Tetragon's recording is incomplete.

The retained data also differs in what it can establish. The Sysdig and Tetragon captures in this comparison did not retain the causal relationships needed for the analysis above. Those records cannot support the same tracing of an artifact back through the processes and inputs that produced it. Recording individual events does not establish the complete chain from a disguised test file to an injected object and the library that ships.

Bitbison's measurements include retaining that causal record. It makes the connections available for analysis as part of the workflow, informing the decisions to admit a dependency or release an artifact.

What Bitbison observed in 1.107.0

Our recorded runs show the malicious release executing in two settings on October 22. These were reproductions after publication; we did not observe LiteLLM's original release build.

  • At 02:07 UTC, a continuous integration job used uv to build a service that depended on LiteLLM 1.107.0. The installed wheel's startup code read credentials and uploaded collected data to www.litellm.dev. Running the same job with 1.106.2 at 02:26 UTC did not show that behavior.
  • At 04:15 UTC, the registry's isolated execution of 1.107.0 recorded credential collection and uploads. A repeat at 05:14 UTC recorded collection again, but uploads could not proceed because the destination no longer resolved.

The registry analysis rated the credential sweep critical and also flagged the installation of sitecustomize.py, which Python runs at startup. Those findings connect the release to behavior observed during execution. The review contains the detailed record of both settings.[7]

How Bitbison users block the package and the release

Detection becomes a blocking decision when a workflow acts on the result. The two integration points are:

  • Before dependency use: route package downloads through the organization's Bitbison Code registry, which applies policy and analysis findings before admitting a release. Coding agents can act on the result by selecting a fixed version or a different package. The registry enforces the admission decision.
  • Before artifact publication: require an acceptable analysis of the build before the release workflow publishes its outputs. A finding such as the credential sweep in our service build can cause that workflow to reject the release.

A release gate stops distribution of the resulting artifact. Preventing a credential upload during execution requires enforcement at that point too; rejecting the release cannot undo an upload that already occurred. Likewise, detecting a malicious dependency during a service build does not demonstrate that the same behavior executed while the dependency itself was being packaged.

Keep signing releases and verifying their attestations. Add static analysis and execution evidence to the decision about whether a dependency can be used or an artifact released. Bitbison Code's registry enforces dependency admission; the build's release workflow enforces the publication decision.

Put the analysis to work

Explore the package analysis and incident reviews at registry.bitbison.io. Bitbison Code is available now to give developers and coding agents access to that analysis with enforced dependency admission. Sign up for Bitbison Code, or request a demo to run your own builds on Bitbison.

We are also working on an open-source dynamic sandboxing product to constrain access to secrets and capabilities during execution, using Bitbison's causal data model to inform policy. Follow Bitbison on LinkedIn for the announcement.

References

  1. LiteLLM. Contained: October 21, 2026 release v1.107.0 compromised. October 21, 2026. ↩︎

  2. Aqua Security. Trivy ecosystem supply chain temporarily compromised. GHSA-69fq-xp46-6x23, March 21, 2026. Describes the incomplete credential rotation and the modified release workflow used to publish v0.69.4. ↩︎

  3. Aqua Security. Trivy Security incident 2026-03-19 conclusion. March 30, 2026. Lists SLSA provenance attestations among the remediation measures, in addition to existing Sigstore signing. ↩︎

  4. PyPI. Introduction to attestations and Consuming attestations. Explains how signatures bind package files to publisher identities and how consumers verify them. ↩︎

  5. PyPI. Publish Attestation v1. ↩︎ ↩︎ ↩︎

  6. LiteLLM. The attack chain behind the v1.107.0 release. October 23, 2026. ↩︎

  7. Bitbison. LiteLLM 1.107.0 incident review and recorded runs. October 22, 2026. ↩︎ ↩︎

  8. PyPI. Trusted Publishing security model and considerations. ↩︎ ↩︎

  9. SLSA. Build provenance. Specification v1.2, including the resolvedDependencies definition. ↩︎ ↩︎

  10. Seth Larson. Supply-chain attack analysis: Ultralytics. PyPI, December 11, 2024. ↩︎

  11. Andres Freund. Backdoor in upstream xz/liblzma leading to SSH server compromise. March 29, 2024. ↩︎

  12. R. Sekar, Hanke Kimm and Rohit Aich. eAudit: A Fast, Scalable and Deployable Audit Data Collection System. IEEE Symposium on Security and Privacy, 2024. Sections 2.1–2.4 examine event loss, overhead and log volume. ↩︎

  13. OpenSSF. Package Analysis. Collects syscall and network activity in gVisor sandboxes. Package installation can involve compilation; its Rust analyzer explicitly builds packages. ↩︎

  14. Bitbison. xz-utils 5.6.0 build reproduction and findings. Run xz-utils-5.6.0-r2, October 25, 2026. Three object-provenance findings and one build-file tampering finding. ↩︎