Skip to content
65

Npm Security Best Practices

Collection of npm package manager Security Best Practices

1.3k stars43 forks5 entriesLast push May 24, 2026 (4 months ago)License Apache-2.0

This page lists names, links and short descriptions. The original list on GitHub is the source and belongs to its authors.

1. Disable Post-Install Scripts >1.2. Bun disable post-install scripts

Bun disables postinstall scripts by default

and maintains its own internal allow-list of packages that are allowed to run postinstall scripts. Bun allows an "escape hatch" to allow postinstall scripts for specific trusted packages via a trustedDependencies field in package.json.

1. Disable Post-Install Scripts >1.3 Run the scripts you need

Use

to create an allowlist of specific positions in your dependency graph where scripts are allowed.

In 2 lists

3. Install with Cooldown >3.2. Snyk automated dependency upgrades with cooldown

Snyk automatically includes a built-in cooldown period

for dependency upgrade Pull Requests. Snyk does not recommend upgrades to versions that are less than 21 days old to avoid:

10. Work in Dev Containers

Development containers

(dev containers) provide an isolated, sandboxed environment that limits the blast radius of supply chain attacks. When malicious npm packages execute during installation or runtime, they are confined to the container environment rather than having access to your entire host system where you may…

15. Consult the Snyk Security Database for package health

Visit the Snyk Security Database and search for the npm package you are evaluating. For example, here is the health…

See category
94

Awesome-Selfhosted

awesome-selfhosted/awesome-selfhosted

A list of Free Software network services and web applications which can be hosted on your own servers

Fresh★ 323k1312 entriesPushed today
91

Awesome Privacy

lissy93/awesome-privacy

🦄 A curated list of privacy & security-focused software and services

Fresh★ 9.9k459 entriesPushed today
89

Awesome Bug Bounty Tools

vavkamil/awesome-bugbounty-tools

A curated list of various bug bounty tools

Fresh★ 6.3k400 entriesPushed yesterday
88

android-security-awesome

ashishb/android-security-awesome

A collection of android security related resources

Fresh★ 9.7k233 entriesPushed 2 days ago
88

Awesome Hacker Search Engines

edoardottt/awesome-hacker-search-engines

A curated list of awesome search engines useful during Penetration testing, Vulnerability assessments, Red/Blue Team operations, Bug Bounty and more

Fresh★ 11k563 entriesPushed 27 days ago
87

Awesome Web Security

qazbnm456/awesome-web-security

🐶 A curated list of Web Security materials and resources.

Fresh★ 14k368 entriesPushed 15 days ago