Join our Newsletter — 33% off our NHI Course
Home› FAQ› Threats, Abuse & Incident Response› Why do trusted packages and actions create such…
Threats, Abuse & Incident Response

Why do trusted packages and actions create such a large supply chain risk?

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

Because attackers do not need to invent trust, they hijack existing trust. A maintainer account, mutable tag, or installed package already sits inside a privileged workflow, so malicious code inherits execution and secret access immediately. Once the attacker captures those credentials, the next compromise can be staged from inside the same ecosystem.

Why trusted packages and actions become high-impact trust targets

Trusted packages and actions are dangerous because the attacker does not need to build a new trust relationship. They only need to compromise the one that already exists. Once a maintainer identity, publishing token, installed package, or workflow hook is trusted by default, malicious code can inherit execution context, update rights, and secret access with very little resistance.

The core problem is that supply chain trust is often transitive. If a package is allowed to run during install, or an action is allowed to run inside a CI pipeline, the code is no longer “external” in a practical sense, it is part of the privileged path. That is why compromised packages can exfiltrate tokens, alter builds, or stage follow-on access without needing a separate privilege escalation step.

This pattern is visible in real incidents such as eslint-scope npm compromise 2018 and reviewdog Action compromise 2025, where the attacker’s leverage came from existing trust and token exposure rather than novel malware tricks.

What makes the blast radius so large

The blast radius grows because one trusted component is often reused across many downstream systems, users, or repositories. A package may be embedded in applications, build pipelines, developer machines, and automation jobs at the same time. An action may execute across many repositories with the same inherited permissions, which means one compromise can propagate far beyond the original repository or maintainer account.

Trusted components also tend to sit near sensitive material. Build jobs, install scripts, and CI workflows frequently touch signing keys, publishing tokens, cloud credentials, deployment secrets, or source code that has not yet been hardened. Once those secrets are read, the attacker can pivot into publishing, deployment, data theft, or lateral compromise. Ultralytics PyPI compromise 2024 and Lottie Player npm compromise 2024 show how a single token or workflow weakness can turn into repeated malicious releases or downstream theft.

At ecosystem scale, the trust boundary is widened by mutable tags, long-lived credentials, and automatic updates. Those design choices make delivery easy for defenders, but they also create a direct path for attackers who can hijack the publishing identity, tamper with the artifact, or poison the update channel. In other words, the package is not merely software, it is an access mechanism.

Why defenders should treat trust as an access problem

The right mental model is not “was the package reputable?” but “what authority did this artifact inherit?” If the answer includes execution rights, signing rights, deployment rights, or secret access, then the package or action is acting like a privileged identity. That is why dependency hygiene, token hygiene, and workflow hardening belong together rather than being managed as separate issues.

For an example of the same pattern across ecosystems, Solana web3.js npm compromise 2024, Ledger Connect Kit npm compromise 2023, and PyTorch torchtriton supply chain attack 2022 each show a different path into the same outcome, trusted execution turning into credential theft or malicious code delivery.

Defenders should also distinguish between a trusted publisher and a trusted artifact. A legitimate maintainer can be phished, a build pipeline can be poisoned, and a package name can be hijacked even when the project itself has a good reputation. That is why trust must be continuously verified at publish time, install time, and runtime, not assumed once at onboarding.

Risk and Threat Considerations

Trusted packages and actions are attractive because they compress the attacker’s work. Instead of breaking in through the front door, the attacker abuses the fact that the front door already opens for the code path. The result is high-impact compromise with low friction, especially where credentials, build permissions, or deployment hooks are automatically inherited.

Failure mechanism: A maintainer account, token, mutable release channel, or CI action is compromised and the attacker publishes code that is treated as legitimate by downstream systems. Because the code already sits inside a trusted workflow, it can read secrets, alter outputs, or establish persistence before defenders detect the change.

Impact: One poisoned package or action can trigger multi-repository compromise, secret theft, malicious releases, data exfiltration, or follow-on infrastructure access. The business impact is amplified when the same identity or token is reused across environments, because one failure becomes many.

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 addresses the attack and risk surface, while SLSA and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
SLSASupply-chain Levels for Software ArtifactsBuild provenance and artifact integrity are central to trusted package risk.
Recommendation — Require provenance checks before promoting packages into trusted pipelines.
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageCompromised packages and actions commonly expose tokens and keys.
NHI-05 — Overprivileged NHITrusted automation often inherits more access than it needs.
Recommendation — Scan trusted workflows for secret exposure and rotate leaked credentials immediately. Reduce package and action privilege to the minimum needed for each workflow.
NIST SP 800-53 Rev 5SA-11 — Developer Testing and EvaluationTrusted code paths need verification before release and deployment.
IA-5 — Authenticator ManagementMaintainer tokens and publishing secrets are the attack path in many compromises.
Recommendation — Test supplied components and releases before allowing them into production. Enforce expiry, rotation, and revocation for all publishing credentials.

Practitioner Guidance

What to verify: Verify which identities, tokens, and signing paths can publish, update, or execute in your supply chain. If a package or action can reach production secrets, treat it as a privileged path and require rotation, expiry, and review evidence before trusting it.

Common mistake: Treating “popular” or “well maintained” as equivalent to “safe to auto trust.” Popularity does not reduce blast radius, and it often increases it because more downstream systems inherit the same dependency or action.

Decision rule: If the component can run with inherited credentials or write access, bound its privilege first, then decide whether the convenience of automatic execution is worth the exposure. If not, move it behind pinning, approval, or stronger provenance checks.

Practitioner takeaway: Supply chain risk becomes large when trust is also authority. The safest controls are the ones that reduce inherited privilege, shorten credential lifetime, and make every trusted execution path observable.

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.

NHIMG Editorial Note
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