Join our Newsletter — 33% off our NHI Course

npm supply-chain attacks and runtime secret injection for IAM teams

 

(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 21735
Topic starter  

TL;DR: npm supply-chain attacks exploit install-time trust to steal credentials from CI, developer, and Kubernetes environments, with malicious packages scanning for secrets in env vars, .npmrc files, kubeconfigs, and cached SDK tokens before exfiltrating them, according to Riptides. Persistent secrets, not the poisoned package itself, are what turn a supply-chain compromise into a full cloud breach.

Editorial analysis by NHI Mgmt Group, based on content published by Riptides: “Growing Threat of npm Supply Chain Attacks and the Runtime Fix That Stops It”.

Key questions

Q: How should security teams handle npm packages that run code during install?

A: Security teams should treat install-time scripts as executable code and restrict them by policy.

Q: Why do persistent secrets make a poisoned package far more dangerous than the package itself?

A: Because the package is usually just the entry point.

Q: What are the signs that runtime secret controls are failing in CI and Kubernetes?

A: Look for secrets stored in environment variables, .npmrc files, kubeconfigs, cached SDK credentials, or pods that keep working only because long-lived credentials were injected at deploy time.

Practitioner guidance

  • Remove persistent secrets from build and pod environments Stop placing API keys, registry tokens, and database credentials in environment variables, image layers, or mounted files where install-time payloads can scrape them.
  • Bind high-value credentials to workload identity Deliver secrets only to the specific process that needs them so a compromised sidecar, reverse shell, or hostile dependency does not inherit the same access.
  • Treat dependency scanning as a front-end control, not the control plane Keep SCA and package vetting in place, but assume they cannot stop runtime exfiltration after code execution begins.

Bottom line: npm supply-chain attacks become severe when they can reach long-lived credentials in CI, developer, or Kubernetes environments.

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: 5 months ago
Posts: 21568
 

Runtime secret exposure, not package compromise, is the real breach amplifier: A poisoned dependency only becomes material when it can reach durable credentials inside CI, developer, or Kubernetes environments. That is the control boundary modern teams keep underestimating. The practical conclusion is that supply-chain security and identity governance now meet at the moment secrets are present in runtime.

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: Should teams prioritize just-in-time secret injection over more dependency scanning?

A: They should treat them as different layers, not substitutes. Dependency scanning reduces the chance of a bad package entering the pipeline, but just-in-time injection reduces what that package can steal after execution. If you must choose which control changes the breach outcome, runtime secret injection usually matters more.

👉 Read our full editorial: npm supply-chain attacks expose why runtime secret injection matters


This post was modified 2 days ago by NHI Mgmt Group

   
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.