Skip to content
67

Npm Security Best Practices

Collection of npm package manager Security Best Practices

1.3k stars42 forks5 entriesLast push May 24, 2026 (6 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
99

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★ 341k1321 entriesPushed yesterday
98

Awesome Privacy

pluja/awesome-privacy

Awesome Privacy - A curated list of services and alternatives that respect your privacy because PRIVACY MATTERS.

Fresh★ 20k534 entriesPushed 2 days ago
95

Awesome Bug Bounty Tools

vavkamil/awesome-bugbounty-tools

A curated list of various bug bounty tools

Fresh★ 6.5k399 entriesPushed today
93

Awesome Incident Response

meirwah/awesome-incident-response

A curated list of tools for incident response

Fresh★ 9.6k220 entriesPushed yesterday
93

Awesome Claude Video Skills

zhuyansen/awesome-claude-video-skills

Open-source skills and toolkits that let Claude Code, Codex and other coding agents make video. 180 repos by type, each security-graded. English / 中文.

Fresh★ 2.9k563 entriesPushed today
93

Awesome Privacy

lissy93/awesome-privacy

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

Fresh★ 10k472 entriesPushed 13 days ago