Get the latest tech news

Show HN: Tips to stay safe from NPM supply chain attacks


A list to stay safe from NPM supply chain attacks. Contribute to bodadotsh/npm-security-best-practices development by creating an account on GitHub.

Limiting the files in an npm package helps prevent malware by reducing the attack surface, and it avoids accidental leaking of sensitive data Many package managers provide audit functionality to scan your project's dependencies for known security vulnerabilities, show a report and recommend the best way to fix them. Another example outside the JavaScript ecosystem is the XZ Utils incident in 2024 where a malicious actor worked for over three years to attain a position of trust.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of tips

tips

Photo of npm

npm

Related news:

News photo

Cormac McCarthy's tips on how to write a science paper (2019) [pdf]

News photo

Oh no, not again a meditation on NPM supply chain attacks

News photo

Which NPM package has the largest version number?