Supply chain persistence is the ability of an attacker to remain active by abusing trusted software distribution paths rather than staying on one host. It often relies on repeated publication, compromised maintainer access, or reusable automation secrets that let the attacker keep reintroducing malicious artifacts.
Expanded Definition
Supply chain persistence describes an attacker’s ability to stay embedded by abusing trusted distribution channels, such as package registries, build pipelines, maintainer accounts, and automation secrets, rather than maintaining durable access to a single endpoint. In NHI security, this matters because the attacker’s control point is often an identity, token, or signing path, not the host itself.
The concept overlaps with software supply chain compromise, but it is narrower in one important way: persistence comes from repeated re-entry through trusted release mechanics. That can include compromised maintainer access, stolen publishing tokens, poisoned CI/CD jobs, or reusable credentials that survive cleanup. Guidance varies across vendors on whether this is treated as a persistence technique, a delivery mechanism, or a post-compromise objective, so practitioners should evaluate the behavior, not just the label. The OWASP Non-Human Identity Top 10 is especially relevant because it frames how machine identities and secrets become durable abuse paths.
The most common misapplication is treating a one-time malicious package upload as a contained incident when the real condition is that the attacker still holds a valid publishing identity or reusable secret.
Examples and Use Cases
Implementing supply chain persistence defenses rigorously often introduces release friction, requiring organisations to weigh trusted automation speed against tighter verification and revocation controls.
- A maintainer token is stolen from a developer workstation, then used to republish altered versions whenever the package is cleaned from one registry namespace.
- A compromised CI runner keeps signing and pushing malicious artifacts because the pipeline secret was never rotated after the first detection.
- An attacker abuses a GitHub Action dependency to reinsert a backdoored build step each time a version tag is updated, as seen in cases like the Reviewdog GitHub Action supply chain attack.
- A malicious npm package continues to reach downstream users through repeated dependency updates and trust in maintainer continuity, similar to the Shai Hulud npm malware campaign.
- Security teams apply dependency pinning and provenance checks aligned with the NIST SP 800-53 Rev 5 Security and Privacy Controls, but still miss abused publishing credentials in internal build tooling.
NHIMG research shows why this pattern is so difficult to eradicate: 64% of valid secrets leaked in 2022 are still valid and exploitable today, which means one stolen credential can keep a supply chain foothold alive long after the original alert. The same risk appears in incidents such as the Mastra npm Supply Chain Attack.
Why It Matters in NHI Security
Supply chain persistence is especially dangerous in NHI environments because service accounts, automation secrets, and signing identities are designed to be reusable. Once an attacker controls one of these identities, they can reappear through package updates, workflow runs, artifact promotion, or mirrored repos even after a host is rebuilt. That turns a single compromise into an ongoing trust violation.
This is also where detection can fail operationally. A team may remove malware from one artifact, yet leave the publishing token, CI credential, or maintainer access intact. NHIMG research on the State of Secrets in AppSec shows that the average time to remediate a leaked secret is 27 days, while the State of Secrets Sprawl 2026 reports 59% of compromised machines in a major 2025 supply chain attack were CI/CD runners rather than personal workstations. Those conditions make persistence through trusted automation practical, not theoretical. The same control problem is addressed in the OWASP Non-Human Identity Top 10, where secret lifecycle, token scoping, and machine identity governance are central.
Organisations typically encounter repeated reinfection only after a package is reissued, a pipeline is triggered again, or a downstream consumer reports the second compromise, at which point supply chain persistence 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 OWASP Agentic AI Top 10 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 misuse and persistence through abused non-human identities. |
| OWASP Agentic AI Top 10 | AGENT-05 | Agentic workflows can become persistence paths when tool access is reused. |
| NIST CSF 2.0 | PR.AC-1 | Persistent supply chain access depends on compromised credentials and authorization. |
| NIST Zero Trust (SP 800-207) | SC-4 | Zero trust limits implicit trust in pipelines, registries, and automation identities. |
| NIST SP 800-63 | AAL2 | Assurance level guidance informs the strength of credentials used by maintainers and automation. |
Inventory, rotate, and revoke publishing secrets and service identities tied to package release paths.