Join our Newsletter — 33% off our NHI Course

Dependency confusion in CI/CD pipelines: what IAM teams are missing

 

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

TL;DR: A 38-package NPM campaign shows how dependency confusion, postinstall execution, and rotating publisher accounts can turn ordinary npm install activity into credential theft and exfiltration across CI/CD environments, targeting Apple, Google/GCP, and Alibaba/Aliyun, according to Panther. The pattern shows why build-time trust, not just package integrity, now needs explicit identity and secrets governance.

Editorial analysis by NHI Mgmt Group, based on content published by Panther: “Frankly Malicious: Inside a 38-Package NPM Supply Chain Campaign Targeting Tech Giants”.

By the numbers:

  • A 38-package NPM campaign was identified as part of the supply chain attack, according to Panther.
  • Panther found 38 malicious packages published between 2026-04-24 and 2026-04-30.

Key questions

Q: What breaks when dependency confusion is allowed in CI/CD pipelines?

A: Build systems can install malicious public packages instead of trusted internal dependencies, which turns normal package installation into an execution path for secret theft.

Q: Why do malicious packages that steal secrets create identity risk beyond the developer workstation?

A: Because secrets are often the keys to downstream systems, not just local tools.

Q: What signals show that package trust controls are failing?

A: Repeated version bursts, lookalike names, inflated release numbers, and internal namespace collisions are all signs that the build pipeline is still treating naming as proof of trust.

Practitioner guidance

  • Lock internal package resolution to approved registries Prevent dependency confusion by ensuring internal package names can only resolve from trusted private sources, and reject public lookups for reserved namespaces.
  • Disable automatic install-time execution where secrets are present Review postinstall and similar hooks in build jobs, especially where environment variables, cloud credentials, or publish tokens are injected.
  • Reduce secret exposure inside build environments Move high-value credentials out of routine dependency-install contexts so a malicious package cannot read publish tokens, cloud keys, or database secrets during normal installation.

Bottom line: Dependency confusion in build systems is now an identity and secrets issue, because package resolution can become an execution and credential-access path.

Explore further

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



   
Quote
(@mr-nhi)
Member Moderator
Joined: 5 months ago
Posts: 17054
 

Build pipelines are now identity enforcement points, not passive delivery systems. When dependency resolution can execute code and expose secrets, the package manager is effectively acting as an access broker. That means IAM and NHI governance have to extend into build trust, registry provenance, and publisher lifecycle control. Practitioners should stop treating CI/CD as outside the identity plane.

A few things that frame the scale:

  • 92% of organisations expose NHIs to third parties, raising concerns about supply chain security, according to the Ultimate Guide to NHIs.
  • 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 package publisher account is rotated or replaced?

A: Treat it as an identity event, not just a registry event. Revalidate package ownership, inspect lineage across related accounts, revoke any credentials that were exposed to the old publisher path, and review whether the package namespace should remain allowed in the build process.

👉 Read our full editorial: Dependency confusion in NPM supply chains is now an identity problem



   
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.