Join our Newsletter — 33% off our NHI Course

Does package ingestion now define the real dependency attack risk?

 

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

TL;DR: Dependency attacks start before scanners run, according to Cloudsmith, because transitive packages can execute during installation. Package governance has to move to ingestion time if organisations want to stop malicious code before it reaches builds or endpoints.

Editorial analysis by NHI Mgmt Group, based on content published by Cloudsmith: “Dependency attacks start before your scanner runs”.

Key questions

Q: What should teams do first when a package dependency is compromised?

A: Freeze builds, revoke trust in the compromised package, and pin or replace the dependency with a known-good version or internal mirror.

Q: How does registry-level policy differ from downstream scanning?

A: Registry-level policy blocks or flags a package before it enters consumption, while downstream scanning inspects code, manifests, and lockfiles after retrieval.

Q: Why do transitive dependencies create more software supply chain risk than direct packages alone?

A: Transitive dependencies hide exposure inside nested libraries that are often missed by top-level package reviews.

Practitioner guidance

  • Implement package admission controls at the registry boundary Reject or quarantine packages before they are available to build systems, developer workstations or deployment jobs.
  • Block install-time execution for untrusted dependencies Disable or tightly govern postinstall and similar hooks for packages that have not been explicitly approved.
  • Govern publishing credentials as privileged identities Restrict npm publish keys, maintainer tokens and CI credentials to the smallest possible set of trusted workflows.

Bottom line: Dependency attacks exploit a timing gap, because code can execute before downstream security tools inspect the package.

Glossary terms: Transitive Dependency, Package Postinstall Script, Publish Key, Artifact Registry

Explore further

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



   
Quote
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.