Join our Newsletter — 33% off our NHI Course

What would it take for trusted publishing to stop supply chain worms?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20217
Topic starter  

TL;DR: Compromised maintainer credentials, CI/CD trust, and automated package consumption let supply chain worms spread before revocation can catch up, Semgrep found. Publishing rights and workflow trust still need tighter boundaries if one compromised identity is not to cascade through an ecosystem.

Editorial analysis by NHI Mgmt Group, based on content published by Semgrep: “Why Do Worms Work”.

By the numbers:

  • 59% of compromised machines in a major 2025 supply chain attack were CI/CD runners rather than personal workstations, according to the State of Secrets Sprawl 2026.

Key questions

Q: Why do phishing-resistant MFA and token rotation only partially reduce supply chain worm risk?

A: They reduce the chance that a stolen credential keeps working, but they do not remove the ecosystem conditions that let a worm spread.

Q: What are the signs that a CI/CD supply chain compromise is already underway?

A: Common warning signs include new outbound connections from runners, secrets appearing in logs, unexpected use of trusted domains, and workflow behavior that no longer matches the established baseline.

Q: What breaks when a package maintainer account is compromised?

A: When a maintainer account is compromised, the attacker inherits trusted publishing rights and can turn legitimate release channels into malware distribution paths.

Practitioner guidance

  • Tighten workflow trust boundaries Remove broad secrets access from fork-triggered workflows, especially those using pull_request_target, and separate build-only execution from publish-capable paths.
  • Constrain package publish identities Use short-lived, OIDC-bound publishing credentials and limit each identity to the smallest possible package set so one stolen token cannot spread laterally across a maintainer portfolio.
  • Treat caches and artifacts as privileged inputs Assume shared caches, build artifacts, and dependency downloads can be poisoned, then require provenance checks before trusted workflows consume them.

Bottom line: Supply chain worms keep succeeding because trust in maintainers, workflows, and registries still outlasts the compromise of the identity that controls them.

Glossary terms: Supply Chain Worm, Trust Inheritance, Pull_request_target workflow, Trusted Publishing

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 2 days ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20707
 

Supply chain worms expose a standing-trust problem, not just a malware problem. The recurring failure is that publishing rights, workflow permissions, and registry trust remain valid long enough for an attacker to use them multiple times before revocation catches up. In an NHI lens, those credentials behave like unmanaged service identities with broad blast radius. Practitioners should stop describing this only as a faster detection problem and start treating it as a lifecycle control failure.

A few things that frame the scale:

  • Breaches involving third parties rose to 48% of all breaches, a 60% increase on the previous year, according to Verizon's 2026 Data Breach Investigations Report.

A question worth separating out:

Q: How should teams respond when a supply chain worm spreads through trusted packages?

A: Contain the publishing surface first. Revoke exposed tokens, rotate credentials, review repository creation and workflow changes, and roll back to known-clean package versions. Then scope the blast radius across developer environments, CI/CD systems, and any cloud accounts that shared the same secrets.

👉 Read our full editorial: Supply chain worms are exposing a structural NHI governance gap



   
ReplyQuote
Share:

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.