A software release can have a valid digital signature, a recorded build process and an identifiable publisher, yet still contain malicious code.
This sounds contradictory. Aren't signatures and build provenance supposed to establish that software came from a trusted source and passed through a trusted process?
They establish important facts, but those facts have limits. A signature can verify that an artifact was signed by a particular identity. Build provenance can record which source, dependencies and build process produced it. Neither automatically proves that the people, credentials and permissions controlling those systems were trustworthy when the release was created.
The October 2026 LiteLLM supply chain incident illustrates this problem. The attacker did not simply upload a malicious package to PyPI under a stolen publishing password. They obtained privileged credentials, changed the source used by the release workflow and allowed the organization's own pipeline to build and publish the compromised software.
The important question is therefore not only whether a release is signed. It is also:
Who was authorized to change the process that produced and signed it?**
1. What does a signed software release actually prove?
When developers publish software, they may attach a digital signature to the release artifact. An artifact could be a Python package, a container image, a compiled application or another file distributed to users.
A digital signature helps a recipient verify two things: whether the artifact matches the content that was signed, and whether the signature corresponds to the expected signing identity or key.
Think of it as a tamper-evident seal. If someone modifies the signed artifact afterward, verification should fail. If the signature is valid and the signing identity is trusted, the recipient has evidence about who or what signed it.
But a seal does not tell you whether the contents were safe before the seal was applied.
Imagine a manufacturer whose warehouse seals every product before dispatch. If an attacker has already replaced the contents on the production line, the warehouse can seal and dispatch a defective product without breaking its own process.
Software signing has a similar limitation. If malicious code enters the build before signing, the signing process can faithfully sign the malicious output.
Build provenance provides another layer of information. It is a record describing where, when and how an artifact was produced. Depending on the build system and its guarantees, it can identify the builder, source repository, commit, build parameters and dependencies.
The SLSA Build Provenance specification describes how this information helps consumers verify that an artifact was produced according to expected conditions.
However, provenance is not a general safety certificate. Its value depends on the trustworthiness of the builder, the accuracy and completeness of the recorded inputs, and whether the consumer actually verifies those details against expectations.
A signed artifact can therefore be authentic but unsafe. Provenance can accurately describe a compromised build without making that build trustworthy.
2. How did the LiteLLM release pipeline get compromised?
On October 21, 2026, malicious LiteLLM version `1.107.0` was published to PyPI and container registries. The release contained malware designed to collect credentials and enable further remote code execution.
The incident is especially instructive because the attacker had to compromise the authority behind the release process, not simply bypass the package registry.
The attack began months earlier. On May 27, an administrative key for LiteLLM's internal Agent Platform was accidentally committed to a public repository. The file was deleted a few hours later, but the key was not revoked. It remained valid.
On October 10, the attacker used that key to access the Agent Platform and obtain a GitHub CLI OAuth token associated with an organization owner. That credential provided extensive privileges across the organization's GitHub environment.
The attacker then used access to internal repositories and workflows to obtain additional maintainer credentials.
The critical step happened on October 21.
LiteLLM's release workflows were stored in a private repository. They normally used a fixed source repository for their builds. The attacker modified the release workflow to introduce a configurable source owner, allowing it to build from a different repository.
GitHub's branch protection initially rejected the change because it had not passed the required pull-request, status-check and code-owner approval process. Five seconds later, the organization owner's compromised credential was used to override those protections and force the change through.
The attacker then pointed the release workflow at a lookalike repository named `Berri-AI/litellm`, rather than the legitimate `BerriAI/litellm`.
The modified workflow ran successfully. A second compromised maintainer credential approved the production release gate. The pipeline then built, signed and published the malicious artifacts.
The complete sequence is documented in LiteLLM's October 23 root-cause analysis.
Notice what happened: the release pipeline did not need to be replaced. The attacker changed what the pipeline was instructed to build.
3. Why didn't the existing security measures stop it?
LiteLLM had already introduced several supply-chain safeguards following an earlier incident. Releases had moved to a private repository, publishing used trusted workflows, Docker release tags were made immutable, and container images were signed.
These measures addressed real risks. But they did not prevent an attacker with sufficient organizational authority from changing the workflow itself. Consider what each safeguard was designed to protect.
- Private release repositories reduce exposure and restrict who can modify release infrastructure. But a private repository is not automatically safe when an organization-owner credential can override its protections.
- Branch protection requires changes to pass specified checks, reviews or approvals. But protection rules may include authorized bypass roles. If a compromised identity can use that bypass, the rule does not provide an independent barrier against that identity.
- Trusted publishing reduces the need to store long-lived publishing credentials in a package registry workflow. It establishes trust between a publishing environment and the registry. It does not independently establish that the source code selected by that environment is safe.
- Immutable release tags help prevent published references from being silently moved or overwritten. They cannot prevent an authorized release process from publishing a malicious artifact under a new version.
- Digital signatures help verify artifact integrity and signing identity. They do not establish that the source repository or workflow was uncompromised before the artifact was signed.
The common issue is not that these controls are useless. It is that each protects a particular boundary. An attacker who gains control of the authority governing several boundaries may be able to use those controls as part of the attack.
This is why organizations should examine not only which safeguards exist, but also who can change, override or approve them.
4. The missing layer: who controls the release process?
A CI/CD pipeline is often treated as an automated sequence: retrieve source code, install dependencies, run tests, build an artifact, sign it and publish it.
But every stage depends on decisions and permissions.
Someone decides which repository the pipeline can retrieve code from. Someone can change the workflow definition. Someone controls the credentials available to the runner. Someone can approve a production release. Someone may be able to bypass a protection rule or modify the release environment.
These are different forms of authority, even when they belong to the same organization.
Consider a simple example. An engineering team requires two approvals before publishing a release. The first person can change the workflow configuration. The second can approve the production deployment. On paper, this appears to provide separation of duties.
But what happens if one compromised organization-owner credential can change the workflow, override branch protections and modify who is permitted to approve the release?
The two-approval process may still be visible in the logs, but the underlying authority boundary has weakened. The process is no longer independent in the way the organization assumed.
This distinction can be understood through three layers:
- Code authority: Who can change the source code, repository settings and release workflow?
- Execution authority: Who or what can trigger builds, access secrets, change build inputs and execute release jobs?
- Release authority: Who can approve publication, bypass restrictions, sign artifacts or change the conditions under which a release is accepted?
A secure release process needs to govern all three. Protecting the source repository while leaving workflow modification or release bypass privileges concentrated in one highly privileged identity leaves an important gap.
The goal is not to remove all administrative access. Organizations need administrators to maintain their systems. The goal is to ensure that a single compromised credential cannot silently change the rules, execute the change and authorize its release without an independent control.
5. What should enterprises verify before trusting a software release?
A supply chain review should examine the relationships between source code, build configuration, credentials and release approval. Asking whether the organization uses signed images or a trusted publishing mechanism is only the starting point.
- Who can change the source repository used by the release workflow? Verify that the repository owner, repository name and expected source reference are explicitly constrained. A successful build from an unexpected fork should not be treated as an ordinary release.
- Who can modify the release workflow itself? Workflow files are part of the software supply chain. Review who can change them, how those changes are approved and whether privileged users can bypass the review process.
- Who can override branch protection? Identify the roles, teams and applications with bypass permissions. Review whether emergency access is logged, independently reviewed and limited to a defined purpose. GitHub's ruleset documentation explains how bypass permissions can be assigned to particular actors.
- Can one identity satisfy multiple release controls? Separate the ability to change a workflow from the ability to approve and publish its output. Where possible, use independent identities, restricted permissions and approval mechanisms that cannot be modified by the same actor they are meant to constrain.
- What does the provenance actually identify? Check the source repository, immutable commit reference, builder identity, build parameters and resolved dependencies. Do not accept the presence of a provenance file as proof that the build used the expected inputs.
- Can the organization reconstruct a release after publication? Preserve the workflow version, source commit, build record, artifact digest, signer identity, approvals and publication event. These records help investigators establish what happened if a release is later questioned.
- Are privileged credentials still valid after exposure? Deleting a secret from a repository does not revoke the credential itself. Organizations need an explicit revocation and rotation process, including a record of who confirmed that the exposed credential was invalidated.
These checks turn supply-chain security from a collection of tools into a review of who can exercise authority over the complete release process.
6. The larger lesson: verify the authority behind the artifact
Software supply chain security is often discussed through package vulnerabilities, malicious dependencies, compromised maintainers and insecure build environments. Those are important risks, but they do not fully explain what happens when the process responsible for producing trusted software is itself controlled by an attacker.
The LiteLLM incident demonstrates why the distinction matters. The attacker did not merely introduce malicious code. They gained access to organizational credentials, changed the source selection in the release workflow, used additional credentials to satisfy the production gate and published the result through the normal release process.
The artifact was signed. Thprocess ran. The release was published.
The failure was deeper than a missing security scanner or an unpinned dependency. The organization had lost control over who could change the conditions under which a release became trusted.
For enterprises, the practical lesson is to maintain an auditable record of the software components they use, the versions they approve and the decisions behind those approvals. When a source, model, dependency or configuration changes, the organization should be able to establish what changed and whether the previous approval still applies.
This is one part of continuous AI assurance. KlaritiQ helps organizations record AI component versions, connect changes to governance decisions and preserve version-specific sign-off evidence. It does not scan software dependencies, detect compromised repositories or secure CI/CD pipelines. Its role is to help preserve the governance record around the AI systems an organization chooses to operate.
A valid signature tells you that an artifact was signed. Provenance helps explain how it was produced. Neither replaces the harder question:
Could an unauthorized person change the process that made you trust it?
7. Frequently Asked Questions
1. What are PyPI, a package registry, a container registry, build provenance and a CI/CD pipeline?
PyPI is the Python Package Index, a public platform where developers publish and download Python packages using tools such as pip. A package registry is the broader term for a service that stores and distributes reusable software packages. A container registry performs a similar role for container images, which package an application together with the files and dependencies needed to run it. A CI/CD pipeline is an automated sequence that takes code through steps such as testing, building, signing and publishing a release. Build provenance is a record of how a particular software artifact was produced, including details such as its source repository, version, build process and builder identity. Together, these systems help developers build and distribute software, but each also introduces access and trust requirements that must be secured.
2. If a digital signature verifies that software has not been changed, how can a signed release still contain malware?
A digital signature can detect changes made to an artifact after it has been signed. The problem is that malicious code can be introduced before signing takes place. For example, if an attacker changes the source code or the release workflow before a build begins, the automated pipeline may build the malicious code and sign the resulting artifact normally. The signature can be completely valid because the artifact has not been altered since signing. It proves that the artifact came through the identified signing process and has not changed afterward; it does not prove that the code was safe when it entered that process. In the LiteLLM incident, the compromised release pipeline built and signed the attacker's altered source, which is why the malicious release could still carry a valid signature.
3. How did an administrative key for LiteLLM's Agent Platform give the attacker access to a GitHub owner's token? Shouldn't permissions have prevented this?
The administrative key did not generate a new GitHub token or independently grant GitHub access. It allowed the attacker to access LiteLLM's internal Agent Platform, which had already been configured with a GitHub CLI OAuth token so its agents could work with GitHub repositories. When the attacker used the exposed administrative key to call the platform's API, a request to retrieve managed-agent configurations returned the stored GitHub token belonging to an organization owner. The critical configuration mistake was that the platform held a powerful, unscoped owner-level token rather than a narrowly restricted service credential. LiteLLM's investigation states that this GitHub CLI token was not limited to specific repositories or capabilities and was not subject to GitHub's additional reauthentication checks for certain sensitive actions. The attacker therefore obtained the owner's existing authority, rather than tricking GitHub into issuing a new token. The incident also illustrates two separate failures: the exposed Agent Platform administrative key was not revoked after being committed publicly, and the platform's stored GitHub credential had far more privilege than its agent workflow required.
4. If the signer is supposed to verify the release, how could it sign malicious code without checking the connected source repository?
The signer was an automated process that signed the build artifact after the release pipeline compiled the source code; it was not necessarily a person reviewing the code for malicious changes. In the LiteLLM incident, the attacker compromised an organization owner's GitHub token, modified the release workflow to accept a different source repository, and directed the official pipeline to build from a lookalike repository. The pipeline then built and signed the malicious code through its normal process. The signature was valid because the artifact had not been altered after signing, not because the source code had been independently reviewed or verified as trustworthy. The failure was that the attacker could change which source the release pipeline trusted and get that change approved.