TL;DR: A compromised CI/CD token used to publish backdoored LiteLLM packages showed how supply chain trust can cascade across AI infrastructure, according to Nightfall. The incident underscores that AI gateways, scanners, and package pipelines now function as credential-rich identity surfaces that require continuous control, not passive trust.
NHIMG editorial — based on content published by Nightfall: LiteLLM Was Compromised. Your AI Stack Could Be Next
Questions worth separating out
Q: What breaks when a trusted CI/CD token is compromised in AI supply chains?
A: A compromised CI/CD token can turn a routine build path into an access bridge for package publishing, secret exposure, and downstream compromise.
Q: Why do AI gateways increase secrets and privilege risk?
A: AI gateways often centralise provider API keys, making them efficient for developers but highly valuable to attackers.
Q: How do security teams know whether build-tool trust is too broad?
A: Look for tools that can publish artefacts, read secrets, and move into cloud or Kubernetes environments without separate approval.
Practitioner guidance
- Map CI/CD and packaging tokens as NHI assets Treat pipeline credentials, publishing tokens, and automation keys as managed non-human identities with owners, scope, expiry, and revocation paths.
- Separate publish rights from build access Remove the ability for routine build jobs to publish packages or modify release artefacts.
- Harden AI gateway secrets handling Store upstream model-provider keys outside the runtime path where possible, rotate them independently, and monitor every request path that can reach them.
What's in the full article
Nightfall's full blog post covers the operational detail this post intentionally leaves for the source:
- Step-by-step breakdown of the supply chain path from Trivy to KICS to LiteLLM
- Details on the three-stage payload and how it harvested credentials across environments
- Incident-specific examples of data that was exposed, encrypted, and exfiltrated
- Operational guidance on detection and response for AI gateways, build pipelines, and package registries
👉 Read Nightfall's analysis of the LiteLLM supply chain compromise and AI stack exposure →
LiteLLM compromise and AI stack trust: what changed for teams?
Explore further
AI infrastructure is becoming an NHI problem before it is a model problem. The article shows that gateways, scanners, and build tools now hold credentials that behave like non-human identities, which means they need lifecycle, scope, and revocation controls. In practice, the boundary between application security and NHI governance is dissolving, and teams that keep treating these tools as background infrastructure will miss the control point.
A few things that frame the scale:
- The average estimated time to remediate a leaked secret is 27 days, despite 75% of organisations expressing strong confidence in their secrets management capabilities, according to The State of Secrets in AppSec.
- Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap.
A question worth separating out:
Q: How should teams respond after a poisoned package is detected in their pipelines?
A: Contain the build environment first, then rotate any secrets that may have been present in memory, files, or tokens during install. After that, review repository branches, workflow files, and any unexpected package publication activity. The goal is to stop credential reuse and persistence before the compromise spreads into adjacent systems.
👉 Read our full editorial: LiteLLM supply chain compromise shows AI stack trust is fragile