Anti-AIClone

Log date · Sat

How should release approvals protect a LiteLLM pipeline?

Published on · Updated

Bind approval to a specific artifact and check whether reviewers, workflows and administrators share a failure domain.

The answer: who approves what

Release approval needs to constrain both identity and the object approved. In our Python comparison of five synthetic candidates, a rule counting two account names allowed all 5; a rule bound to the record digest allowed only the unchanged 1 and denied the other 4. This model illustrates the problem; it is not a test of the LiteLLM release or GitHub permissions.

Results of the comparison
QuestionResult
Two names onlyAll 5 candidates allowed
Bound candidate recordOriginal allowed; 4 individual changes denied
Does a digest prove independent identities?No; it does not authenticate approvers

LiteLLM records its root-cause report at 21:00 UTC on October 23, 2026, or 05:00 in Beijing on October 24; the compromised 1.107.0 release occurred on October 21. [1] This is AI-assisted analysis.

What the incident revealed

The official investigation says an exposed, unrevoked Agent Platform administrative key led to an organization owner’s GitHub token. After acquiring other maintainers’ tokens, the actor used owner authority to override branch protection and change the release workflow so it could build from another repository. Different tokens then triggered and approved the release. The report notes that the owner could also have changed the approval restriction. [1]

The initial notice says the official GitHub source tag did not contain the malicious files and that the affected artifacts came from another source; its earlier attack narrative was superseded by the root-cause report. [2] Reviewing a source tag alone therefore does not establish that the shipped package was built from it. A signature endorses bytes, but does not by itself prove that the build inputs were the reviewed source.

Compare two rules on a candidate record

We used Python 3.9.1 and created a record containing repository, commit, workflow, artifact identifier and destination. The toy “two names” rule assumes both names are present and always allows; the other hashes canonical JSON with SHA-256 and compares the candidate digest with the approved digest. It implements no authentication, signature or real publication and contacts no external system.

Output from our run, verbatim.
unchanged: names-only=allow, bound=allow
source changed: names-only=allow, bound=deny
workflow changed: names-only=allow, bound=deny
artifact changed: names-only=allow, bound=deny
destination changed: names-only=allow, bound=deny

We changed one field at a time. Digest comparison prevents reuse of the old approval for a changed record, but matters only if the approved digest is trusted, the verifier cannot be freely changed by the same attacker, and the artifact identifier actually corresponds to the bytes to upload. Our artifact identifier is a string; a real pipeline should hash the built artifact and check it again immediately before upload.

Code used to hash the record in the experiment.
import hashlib, json

def digest(record):
    data = json.dumps(record, sort_keys=True, separators=(',', ':'))
    return hashlib.sha256(data.encode()).hexdigest()

Separate approval from administrative authority

GitHub documents that an environment can list up to six users or teams as required reviewers, but approval by one suffices. Preventing self-review is optional, and administrator bypass of protection rules can be disallowed. [3] Check the settings available to your repository and plan. Listing two reviewers does not automatically require two approvals.

Map the people and systems that can edit workflows, obtain tokens, approve, sign and delete audit records. Different accounts whose tokens sit in one automation system may still share a failure domain; identify administrators who can alter or bypass the rules separately. Separating everyday development, release and emergency administrative authority, with independent alerts for overrides, is an engineering recommendation rather than a measured result.

Recommendations by situation

Recommendations by situation
SituationRecommendation
Approver and initiator share a token storeSeparate credential storage and access; verify revocation.
Administrator can change release rulesLimit exceptions; independently record and review emergency overrides.
Artifact or source changesInvalidate the old approval, show the change and reapprove.
Publication outcome is unknownCheck destination and receipt before deciding whether to retry.

An approval record should also identify dependencies or the lockfile and the intended destination. Protect write access to the record and verifier; otherwise an attacker could change both the record and the check. After release, associate source, workflow revision, digest, approval and destination receipt so an audit can trace what was actually delivered.

Check your own release process

First freeze a candidate artifact and approval record in a test repository you own, without production secrets. The following acceptance test for a real release pipeline is proposed, not one we have run: change the repository, workflow, artifact digest and destination separately; confirm the old approval is denied and no external write occurs. Then check deduplication of a consumed request and receipt lookup when the outcome is unknown.

Compute SHA-256 for your artifact and compare it with the approved record.
# Replace the path with your own candidate artifact.
shasum -a 256 path/to/your-artifact
# Compare the full digest with the approved record before upload.

When a real credential is exposed, revoke and replace it and investigate usage; deleting history does not revoke authority. Teams that ran an affected LiteLLM artifact should read the official response guidance and avoid casually starting a package manager in a suspect environment. [2] Retain denial reasons, evidence of no write and the final receipt: a green build is not a substitute for those checks.

Your checklist

  • Map authority to edit workflows, approve, sign and audit.
  • Check whether tokens share a failure domain.
  • Bind approval to source, workflow, artifact digest and destination.
  • Test change denial, deduplication and receipts in a test repository.
  • Revoke exposed credentials and investigate their use.

Primary sources

All sources and reproduction status ↗