By NHI Mgmt Group Editorial TeamDomain: Breaches & IncidentsSource: NightfallPublished April 20, 2026

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.


At a glance

What this is: This is Nightfall’s analysis of the LiteLLM compromise and the broader AI supply chain attack pattern it exposed.

Why it matters: It matters because AI gateways, build pipelines, and developer tools now concentrate sensitive secrets and privileged access that IAM, PAM, and NHI governance must treat as a single control plane.

👉 Read Nightfall's analysis of the LiteLLM supply chain compromise and AI stack exposure


Context

AI infrastructure now behaves like an identity and secrets system, even when teams describe it as a developer convenience layer. When a package manager, security scanner, or AI gateway holds broad access, compromise of one trusted tool can expose credentials, code, and internal data across the rest of the stack. For IAM and NHI teams, the issue is not just code integrity. It is the lifecycle and blast radius of the credentials embedded in tools that automate software delivery.

The LiteLLM case is a supply chain compromise with a clear identity angle because the attacker’s path relied on stolen tokens, trusted CI/CD access, and lateral movement through systems that were assumed to be legitimate. That makes it relevant to NHI governance, secrets management, and privileged workflow design. The starting position in this incident, where a single trusted tool became an access bridge to many others, is increasingly typical in AI-enabled delivery environments.


Key questions

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. The failure is usually not a single weak control but excessive trust in automation that can reach repositories, registries, and cloud systems. Once that trust is abused, attackers inherit legitimate permissions and move faster than manual review can respond.

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. If the gateway or its delivery pipeline is compromised, one identity surface can expose multiple downstream services. That is why gateway credentials should be governed like privileged non-human identities, with scoped access, independent rotation, and tight publishing separation.

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. If one automation path can reach multiple systems, the trust boundary is too wide. Teams should test for credential reuse, hidden publishing rights, and unattended tokens that survive beyond the task they were created for.

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.


Technical breakdown

How a trusted build pipeline becomes an identity bridge

Modern CI/CD systems and developer utilities often run with broad access to source repositories, package registries, cloud APIs, and internal secrets stores. That makes them non-human identities in practice, even if they are not managed that way. Once attackers obtain a token from one trusted tool, they inherit every permission that tool can reach. The key failure is implicit trust between tools, not a single weak password. In supply chain incidents, the attacker does not need to break every control. They only need one credential path that was never scoped tightly enough.

Practical implication: inventory CI/CD and build-tool credentials as NHI assets and scope each token to the minimum tool path it actually needs.

Why AI gateways concentrate secrets and expand blast radius

An AI gateway such as LiteLLM routes requests across multiple model providers and therefore aggregates the API keys needed to do that work. This design simplifies application development, but it also concentrates the secrets required to operate many downstream services. If the gateway, its build pipeline, or its update process is compromised, the attacker gains a single point of leverage over multiple AI and cloud integrations. That is why secrets management for AI infrastructure cannot be treated as a separate concern from application security, runtime access, and workload identity.

Practical implication: separate gateway runtime access from build-time publishing rights and rotate provider keys on a policy that matches actual gateway exposure.

How lateral movement turns one stolen token into multi-ecosystem compromise

The attack described in the article used valid access to move from one trusted tool to the next, which is a classic supply chain pattern. Once inside, the payload harvested SSH keys, cloud credentials, Kubernetes secrets, and environment variables, then used those materials to pivot further. This is not noisy malware behaviour. It is credential-led expansion through systems that are already authorised to talk to each other. In practical terms, the attacker is not chasing one host. They are following the trust relationships that the environment already permits.

Practical implication: treat cross-tool trust as a privileged pathway and monitor for credential reuse, token escalation, and unexpected publishing activity.


Threat narrative

Attacker objective: The attacker sought to turn trusted software distribution into broad credential access, persistence, and data theft across AI and cloud environments.

  1. Entry occurred through compromise of trusted developer tooling in the software supply chain, allowing attackers to steal a privileged CI/CD token from a build pipeline.
  2. Escalation happened when that token was used to publish backdoored LiteLLM packages, giving the malicious code legitimate distribution into downstream environments.
  3. Impact followed when the payload harvested SSH keys, cloud credentials, Kubernetes secrets, and environment variables, then encrypted and exfiltrated data across affected organisations.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

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.

Standing trust in developer tooling is the governance assumption this incident breaks. The breach worked because a trusted pipeline could publish, sign, or distribute artefacts without a compensating check on whether the credential holder was still legitimate. That is a control gap, not a tooling failure, and it maps directly to secrets governance and privileged workflow design.

Credential-rich AI gateways create a new blast-radius category: delegated exposure. When one gateway carries multiple provider keys, every compromise of that gateway becomes a multi-service identity event. That should push practitioners to treat AI routing layers as high-value access brokers, not mere application components.

Supply chain compromise in AI environments is increasingly an identity-graph attack. Attackers no longer need to target only the model or the application. They can move through CI/CD, package registries, service accounts, and cloud access until they find the most permissive trust edge. The practical conclusion is that identity governance must extend into software delivery and AI operation layers.

Named concept, credential bridge sprawl: the accumulation of trusted tools that each carry enough access to become the next pivot point. This is the mechanism that lets one stolen token cascade across ecosystems, and it is now a material governance problem for IAM, PAM, and NHI teams.

From our research:

  • 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.
  • Forward-looking: Explore 52 NHI Breaches Analysis for the repeat failure patterns that turn one exposed secret into broader identity compromise.

What this signals

Credential bridge sprawl: security teams should expect more incidents where one trusted automation path opens several others, especially in AI-enabled delivery pipelines. That makes token ownership, publish rights, and runtime scope more important than perimeter assumptions, and it should be reviewed alongside the OWASP Agentic AI Top 10 where tool misuse and delegated access are already recognised risk themes.

The practical programme shift is toward continuous visibility over secrets, tokens, and automation identities, not occasional audits. When credential exposure persists for weeks, response maturity is measured by how quickly teams can revoke, rotate, and prove containment across build, cloud, and AI layers.

For identity teams, this is a reminder that software delivery has become part of the identity attack surface. The organisations that adapt fastest will connect NHI governance, secrets management, and AI workflow oversight instead of treating them as separate controls.


For practitioners

  • 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. Build an inventory that includes build tools, scanners, and package registries, not just cloud service accounts.
  • Separate publish rights from build access Remove the ability for routine build jobs to publish packages or modify release artefacts. Require a distinct, tightly controlled credential for package distribution and keep it out of normal runner environments.
  • 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. AI gateways should be reviewed like privileged integration brokers, not ordinary middleware.
  • Detect cross-tool credential pivoting Alert on unusual token use, unexpected package publication, and credentials appearing in new execution contexts. The signal that matters is not only malware execution but the movement from one trusted tool to another.
  • Review supply chain trust edges quarterly Test whether any single developer tool can expose more than one ecosystem if compromised. Prioritise tools that touch secrets, cloud credentials, or deployment permissions, because those are the highest-leverage pivot points.

Key takeaways

  • The LiteLLM compromise shows that trusted developer tooling can become a credential bridge across AI, cloud, and package ecosystems.
  • The incident reinforces that secrets in build and delivery pipelines behave like non-human identities and must be governed that way.
  • Teams need revocation speed, publishing separation, and cross-tool visibility before one stolen token becomes a multi-ecosystem breach.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03The article centres on exposed pipeline tokens and secrets abuse in AI infrastructure.
MITRE ATT&CKTA0006 , Credential Access; TA0008 , Lateral Movement; TA0003 , PersistenceThe attack used stolen credentials to move across trusted tools and maintain access.
NIST CSF 2.0PR.AC-4The case shows why access permissions must be scoped and monitored across automation paths.
NIST SP 800-53 Rev 5IA-5Authenticator lifecycle control is directly relevant to stolen tokens and secret rotation.
CIS Controls v8CIS-5 , Account ManagementAccount and token governance is central when automation identities are abused.

Map build and publishing credentials to NHI-03 and rotate or revoke any token with unnecessary reach.


Key terms

  • Credential Bridge Sprawl: The accumulation of trusted tools, tokens, and automation identities that each carry enough access to become the next pivot point. It describes how a single compromise can move across systems because each tool is trusted by the next one in the chain.
  • AI Gateway: A control point that sits between AI applications and the models, tools, or data they call. In practice, it can authenticate requests, enforce policy, inspect runtime behaviour, and stop unsafe actions before they spread into connected systems.
  • Legacy publishing token: A long-lived authentication credential used to publish or manage packages in a repository. In NHI governance, the risk is not only theft but persistence, because an unrevised token can remain valid after newer controls are added and can bypass the intended identity path.
  • Supply Chain Lateral Movement: The use of legitimate access obtained from one trusted tool to reach another system in the delivery chain. Instead of exploiting one host directly, the attacker follows authorised relationships between build, security, and deployment tools until broader compromise is achieved.

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

👉 Nightfall's full post covers the attack chain, exposed data types, and defensive implications for AI infrastructure

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management in operational terms. It is suited to practitioners who need to connect identity controls to AI, cloud, and software delivery risk.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org