Join our Newsletter — 33% off our NHI Course
Home FAQ Threats, Abuse & Incident Response Why do stolen CI tokens and publishing tokens…
Threats, Abuse & Incident Response

Why do stolen CI tokens and publishing tokens create such a large blast radius?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated August 19, 2026 Domain: Threats, Abuse & Incident Response

Because they are non-human identities with operational authority, not just authentication artifacts. A single token can publish malicious versions, create branches, trigger workflows, or read repository state. When scope is broad or lifecycle is weak, compromise spreads faster than manual review can contain it. Narrow scope and rapid revocation are essential.

Why CI and publishing tokens create outsized blast radius

CI tokens and publishing tokens are dangerous because they are not passive login artifacts. They are NHI credentials with operational authority inside build, release, and distribution pipelines. If stolen, they can publish tampered packages, modify pipeline state, access artifacts, or trigger downstream automation. That is why the blast radius is often broader than the original repository or registry.

The real risk comes from what these tokens are allowed to do once trusted. A single compromised token can cross trust boundaries that human reviewers rarely watch in real time, especially when tokens are reused across jobs, environments, or organisations. NHI Management Group research on The State of Secrets Sprawl 2026 shows why this matters: 64% of valid secrets leaked in 2022 are still valid and exploitable today, which means detection without revocation leaves the attack path open.

In practice, many security teams only discover the blast radius after a malicious package, poisoned artifact, or workflow abuse has already propagated through dependent systems.

How the compromise spreads through pipelines and releases

CI and publishing tokens create a large blast radius because they sit at the junction of code, build systems, registries, and deployment automation. Once an attacker has the token, the issue is no longer just repository access. The token may let them impersonate a trusted workload, sign or upload artifacts, read private source, or modify the build output that other systems treat as legitimate.

This is why static, broad-scoped access fails for autonomous pipeline workloads. The safer pattern is to treat pipeline access as a workload identity problem, not a human access problem. Current guidance suggests using short-lived credentials, strict scope, and runtime policy checks rather than long-lived publishing secrets embedded in runners or shared configs. For implementation patterns, see SPIFFE for workload identity and NIST SP 800-207 for Zero Trust principles.

  • Issue credentials per job, not per environment, and revoke them immediately after task completion.
  • Separate read, build, sign, and publish privileges so compromise of one token does not expose the whole pipeline.
  • Bind publishing authority to attested workload identity, not to a reusable shared secret.
  • Evaluate access at request time with policy-as-code so a token cannot do more than the current task requires.

NHIMG analysis of the Salesloft OAuth token breach shows how stolen token authority can move far beyond its original purpose when scope and lifecycle controls are weak. These controls tend to break down in monorepos, shared runners, and multi-tenant release systems because one compromised token can inherit too many downstream permissions.

Common failure modes and where the model breaks down

Tighter token scope often increases operational friction, so organisations have to balance release velocity against blast-radius reduction. Best practice is evolving, but there is no universal standard for this yet: the right control mix depends on whether the token is used for package publishing, artifact signing, or deployment orchestration.

One common failure mode is secret duplication. If the same token appears in multiple runners, vaults, tickets, or environment variables, revocation becomes incomplete and attackers can keep using stale copies. Another is overuse, where one token serves multiple apps or pipelines and creates a hidden single point of failure. NHIMG’s 52 NHI Breaches Analysis repeatedly shows that token misuse is rarely isolated to one control plane once it escapes.

This risk is especially high in AI-assisted development and autonomous release workflows. External reporting on an AI-orchestrated cyber espionage campaign from Anthropic reinforces the point: when software can chain actions quickly, even a small token exposure can become a fast-moving compromise path. The model breaks down most sharply in environments with shared credentials, long token TTLs, and weak artifact provenance because the attacker can reuse one trust anchor across many systems.

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, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Covers secret lifecycle weakness that amplifies token blast radius.
OWASP Agentic AI Top 10A-03Agentic release flows need runtime authorization, not static trust.
CSA MAESTROM4Maps to workload identity and scoped permissions for autonomous tooling.
NIST AI RMFRisk governance is needed when automation can amplify a stolen token.
NIST Zero Trust (SP 800-207)AC-3Zero Trust requires per-request authorization for build and publish actions.

Replace long-lived CI and publishing tokens with short-lived, automatically revoked credentials.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on August 19, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org