A self-spreading supply chain technique where a compromised package uses stolen access to publish more malicious packages under trusted namespaces. The threat is amplified because propagation is driven by legitimate publishing rights rather than by repeated intrusion attempts.
Expanded Definition
Worm-like package propagation describes a supply chain attack pattern in which one compromised package is used to create additional malicious packages under trusted namespaces, allowing the campaign to spread through legitimate publishing rights rather than repeated intrusion. In NHI security, this matters because the propagation path is usually a stolen token, API key, or automation credential that still has publish access. The result is an attack that looks operationally normal until downstream consumers begin pulling tainted builds or updates.
This pattern overlaps with dependency confusion, package takeover, and credential theft, but it is more specific: the malicious actor is not merely inserting one backdoored release, they are turning the package ecosystem into a self-expanding delivery channel. Guidance across vendors is still evolving, so teams should treat the term as a behavioural description rather than a formal standard. The operational control point is identity governance over publishing rights, secret lifecycle, and release integrity, as reflected in NIST SP 800-53 Rev 5 Security and Privacy Controls. The most common misapplication is treating it as a pure malware problem, which occurs when organisations focus on scanning artifacts but ignore stolen maintainer credentials and automation tokens.
Examples and Use Cases
Implementing controls against worm-like propagation rigorously often introduces release friction, requiring organisations to weigh delivery speed against stronger verification, tighter publishing rights, and faster credential revocation.
- A maintainer token is stolen from a CI workflow, then used to publish a malicious patch release under the same package namespace, creating a trusted path for later variants.
- An attacker compromises one internal package and leverages that access to publish adjacent packages that downstream teams automatically ingest from the same registry.
- A compromised automation account updates multiple libraries in sequence, turning a single foothold into a broad propagation chain across environments that trust signed or approved publishes.
- Research on the LiteLLM PyPI package breach shows how stolen credentials can convert ordinary package operations into a wider compromise path.
- The Miasma and Hades Supply Chain Worms case study illustrates how propagation can move across ecosystems when publishing trust is abused.
- Registry and release guidance from NIST SP 800-53 Rev 5 Security and Privacy Controls supports tighter access, auditability, and change control for package publishing.
Why It Matters in NHI Security
Worm-like package propagation is an NHI problem because the attack succeeds through non-human identities that retain excessive or poorly governed privilege. NHIMG research shows that 97% of NHIs carry excessive privileges, and 71% are not rotated within recommended time frames, conditions that make a stolen publishing secret especially dangerous. When a package identity can publish, promote, or sign releases without step-up checks, one compromise can become many.
The risk is not limited to one repository. It extends to dependency graphs, internal package mirrors, CI/CD automation, and any environment that trusts namespace reputation more than active verification. The right response is to reduce standing publish authority, enforce rapid offboarding for compromised secrets, and require explicit release attestation for automation accounts. This aligns with identity-centric controls described in NIST SP 800-53 Rev 5 Security and Privacy Controls. Organisations typically encounter the blast radius only after a downstream consumer installs a poisoned update, at which point worm-like package propagation becomes operationally unavoidable to address.
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 CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST SP 800-63 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 | Covers secret and credential misuse that enables malicious package publishing. |
| NIST CSF 2.0 | PR.AC | Access control governs who can publish, sign, and promote packages. |
| NIST Zero Trust (SP 800-207) | Zero Trust requires continuous verification before release actions are trusted. | |
| NIST SP 800-63 | AAL2 | Authenticator assurance informs how strongly maintainer actions should be protected. |
| CSA MAESTRO | Agentic and automated release flows need governance to stop self-propagation. |
Inventory publishing secrets, remove standing access, and rotate compromised tokens immediately.