Safeguard
Tag

npm-security

Safeguard articles tagged "npm-security" — guides, analysis, and best practices for software supply chain and application security.

172 articles

Open Source

npm classnames: Security Review and Safe Usage

The npm classnames package is a tiny, widely used utility for conditionally joining CSS class names. Here is its security profile and how to use it safely in React.

May 18, 20266 min read
Software Supply Chain Security

Malicious Package Detection: Behavioral vs Signature-Base...

A side-by-side look at signature-based malicious package detection (like Endor Labs) versus behavioral analysis, using real npm attack timelines from Shai-Hulud to chalk/debug.

May 17, 20267 min read
Software Supply Chain Security

Trusted Publishing for npm: Why Only 14% of Compromised P...

Only 14% of packages compromised since npm launched Trusted Publishing use it. Here's how OIDC-based publishing works, why adoption lags, and what still gets missed.

May 17, 20268 min read
Software Supply Chain Security

Package Firewall: Blocking Malicious Dependencies at Inst...

Malicious npm and PyPI packages are published daily. See why a package firewall that blocks at install time stops attacks that post-hoc scanners catch too late.

May 17, 20268 min read
Software Supply Chain Security

Dependency Cooldown Periods as a Malware Defense

Malicious npm packages are often caught within days. Cooldown periods exploit that lag — here's how they work, and how Endor Labs and Safeguard compare.

May 17, 20268 min read
Open Source

shortid Is Deprecated: Why It Is Unsafe for IDs and What to Use Instead

The shortid npm package is deprecated by its own maintainers because the architecture is unsafe. Here is what is actually wrong with it and how to migrate to nanoid without breaking existing IDs.

May 16, 20266 min read
Engineering

Monitoring Package Maintainer Changes as a Threat Signal

Most package hijacks start with a maintainer change nobody was watching. Registry metadata makes these events observable — if you bother to look.

May 10, 20266 min read
Open Source

webpack-merge: What It Does and How to Use It Securely

webpack-merge cleanly combines webpack configs, but its low release cadence and function-executing merge behavior deserve a security-minded look.

May 10, 20266 min read
Industry Analysis

Malicious postinstall scripts in npm packages

From eslint-scope in 2018 to the 2025 Shai-Hulud worm, npm postinstall scripts keep delivering malware before any scan or review runs. Here's how it works and what stops it.

May 10, 20267 min read
Open Source

Rimraf npm: Is It Still Worth Installing in 2025?

A security-minded look at the rimraf npm package — what it does, why old versions throw deprecation warnings, and when Node's built-in fs.rm makes it optional.

May 9, 20266 min read
Threat Intelligence

Typosquatting across package registries (npm, Go, PyPI)

Typosquatting has infected npm, PyPI, and now Go modules. We break down real attacks like crossenv and colourama, how Socket.dev detects them, and where the gaps remain.

May 9, 20267 min read
Product

npm/package health and quality scoring methodology

How npm package health scores are calculated, why Socket.dev's model misses live supply chain attacks, and what Safeguard checks instead.

May 8, 20267 min read

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.

npm-security (Page 10) — Safeguard Blog