Because a stolen token is usually more powerful than a single compromised session. If it can publish packages, access cloud systems, or read CI secrets, the attacker can reuse legitimate identity paths to infect more dependencies without needing a new exploit. The propagation speed comes from trusted authority, not from technical complexity.
Why stolen tokens accelerate worm-style supply chain spread
The speed-up comes from trust reuse. A stolen NHI token often inherits enough authority to publish packages, push build artifacts, call cloud APIs, or read CI secrets, so the attacker can move through legitimate delivery paths instead of burning time on fresh exploitation. That makes propagation look like normal automation, only with malicious intent.
When a worm can sign in with an already-accepted token, every downstream system that trusts that identity becomes a potential relay point. In software supply chains, that means one compromised publishing path can fan out into many consumers before the abuse is obvious.
Two properties make this especially dangerous: tokens are often broadly scoped, and their validity is accepted instantly by services that are designed to trust them. If the token reaches package registries, CI/CD systems, artifact stores, or cloud control planes, the worm can reuse those rights to spread without needing new code execution on each hop.
How legitimate authority replaces technical complexity
Traditional malware often has to break into each target separately. A stolen token changes the economics by turning access into a reusable capability. The attacker does not need to defeat a new password prompt or exploit every dependency, because the trusted credential already answers the access check.
This is why supply chain worms can propagate through signing, publishing, and automation workflows so quickly. A compromised token may be enough to publish a poisoned package, update a dependency, trigger a pipeline, or retrieve the next secret needed for the next stage. The malware spreads by borrowing the organisation’s own workflows.
NHIMG’s Miasma and Hades supply chain worms illustrate the pattern well: once credential stores and package ecosystems are in reach, the attacker can use trusted access to extend the blast radius rather than inventing a new exploit chain for every environment.
What makes token theft especially effective in supply chains
Supply chains concentrate authority. One token can sit at a point where it can affect many packages, projects, or environments, so compromise of that token creates disproportionate reach. If that token is long-lived, reusable, or not tightly audience-bound, the worm gets time and breadth at the same time.
That is also why NHI token theft is often more useful to an attacker than stealing a single user session. A user session may unlock one console or one inbox, but a token tied to publishing, deployment, or service-to-service access can automate spread at machine speed. The attack becomes scalable because the token is already wired into trusted delivery channels.
For a broader NHI perspective, NHIMG’s key NHI security challenges cover the underlying conditions that let these tokens become propagation tools, especially overprivilege, unmanaged credentials, and visibility gaps.
Risk and Threat Considerations
Stolen tokens are dangerous in worms because they collapse the defender’s normal trust boundary. The threat is not just compromise, it is rapid reuse of valid authority across package registries, CI/CD systems, cloud services, and secrets stores before rotation or revocation can catch up.
Failure mechanism: The worm inherits a credential that already passes authentication and authorization checks, then chains that access into publication, dependency updates, or secret retrieval to spread further without needing repeated exploits.
Impact: Blast radius expands quickly, poisoned artifacts reach more downstream consumers, and incident response becomes harder because the activity looks like legitimate automation until the token is revoked.
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 OWASP API Security Top 10 address the attack and risk surface, while SLSA sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | Stolen tokens are leaked identity material that can be reused to spread worms. |
| NHI-05 — Overprivileged NHI | A token with publishing or cloud rights turns one theft into broad propagation. | |
| NHI-07 — Long-Lived Secrets | Long-lived tokens give worms more time to reuse trusted access across the chain. | |
| Recommendation — Reduce token leakage paths and rotate any exposed NHI credentials immediately. Scope NHI credentials to the minimum rights needed for each workflow. Replace durable tokens with short-lived credentials and enforce expiry. | ||
| SLSA | Supply chain provenance and integrity | The question is about supply chain propagation through trusted build and publish paths. |
| Recommendation — Add provenance checks so unsigned or untrusted artifacts cannot spread downstream. | ||
| OWASP API Security Top 10 | API2 — Broken Authentication | Token replay and stolen bearer authority undermine API access in supply chain flows. |
| Recommendation — Bind tokens to the intended client and reject replayable bearer-only access where possible. | ||
Practitioner Guidance
What to prioritise: Treat any token with publish, deploy, or secrets-read capability as propagation-enabling, not just as an access credential. Revoke first, then assess where that token could authenticate next and which workflows it could trigger.
What to verify: Check token scope, audience restriction, lifetime, and whether it can reach build systems, package registries, and cloud control planes. A token is materially higher risk if it can cross more than one trust boundary without additional checks.
Common mistake: Teams often focus on whether the token was “used maliciously” before rotation. For supply chain worms, the better question is whether the token could have been reused to spread, because propagation may begin before obvious damage appears.
Practitioner takeaway: The decisive control is blast-radius reduction, narrow scopes, short lifetimes, audience restriction, and rapid revocation matter more than whether a token is technically valid at the moment of theft.
Related resources from NHI Mgmt Group
- Why do stolen developer and CI credentials make supply chain worms spread faster?
- How do attackers turn a supply-chain incident into wider NHI compromise?
- Why do long-lived npm and GitHub tokens make supply chain worms harder to contain?
- Why do stolen developer tokens and standing access make software supply-chain attacks so hard to contain?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 12, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org