Guides
Supply-chain security, explained
Command-level guides to spotting malicious packages, locking down install scripts and keeping dependencies safe in CI. Written for engineers, not auditors.
Start here
How to check if an npm package is malicious
npm audit tells you whether a package has a known advisory. It cannot tell you whether the version you are about to install was published yesterday with a credential stealer in its postinstall hook. This guide is the manual checklist we use, then how to automate it.
- npm audit only reports packages that already have a published advisory; it does not inspect code, so brand-new malware passes it.
- The highest-risk part of any npm package is its preinstall, install and postinstall scripts, which run automatically with your user's permissions.
- Always inspect the published tarball, not the GitHub repository, because what is on the registry can differ from the source repo.
npm supply chain attacks: types, incidents, defenses
npm supply chain attacks explained: typosquatting, dependency confusion, account takeover, protestware and worms, from event-stream to Shai-Hulud.
03npm install scripts security: postinstall risks & fixes
npm install scripts security: why postinstall hooks are a top malware vector, how to audit them, and how npm, pnpm, Yarn, Bun, pip and cargo differ.
04npm audit vs source code scanning: what each catches
npm audit vs source code scanning: how advisory databases like npm audit, Dependabot and OSV compare with behavioral analysis of code, and why you need both.
05Scan your lockfile in CI: dependency malware checks
How to scan a lockfile in CI for malicious dependencies: GitHub Actions example, npm ci, lockfile-lint, ignore-scripts, pinning and scanning only changes.
06npm malware scanners compared: Socket, Snyk, Togoder
Which tool scans npm dependencies for malware? An honest comparison of Socket, Snyk, npm audit, OSV-Scanner, GuardDog and Togoder Security, with a table.
07Socket.dev alternatives: AI source code review
Looking for a Socket.dev alternative? How Togoder Security, Aikido Safe Chain, GuardDog, Snyk and OSV-Scanner compare, and when Socket is still the right pick.
08Cheap Snyk alternative for supply chain malware detection
Snyk is built for known vulnerabilities. For malware detection alone, combine a free advisory scanner with prepaid or flat-priced AI source review.
09How to scan package-lock.json for malware
Scan every package in package-lock.json, yarn.lock, pnpm-lock.yaml or bun.lock for malicious code: free advisory checks, then an AI review of the source.
10How to detect malicious postinstall scripts in npm
Find every npm package with install scripts in your tree, spot the red flags of a malicious postinstall hook, and block scripts in npm, pnpm, Yarn and Bun.
11API to check if an npm package is safe
An HTTP API that checks whether an npm, PyPI, Cargo, Go, RubyGems or Composer package is malicious: free report lookups, scans with an API key.
12Shai-Hulud npm worm: how to protect your projects
How the Shai-Hulud npm worm spread through stolen tokens and install scripts, and the concrete steps that protect your projects and packages from the next one.
13Supply chain security tools for small teams
A practical, low-cost software supply chain security stack for small teams: free advisory scanners, install-script controls, and malware scanning.
14Prepaid dependency malware scanner, no subscription
Scan dependencies for malware with no subscription: top up from $20 by card, pay only for new code, and the balance never expires. How it works.
15AI source code review for your dependencies
Have an AI model read the source of every package in your lockfile and flag malicious code: how it works, what it catches that rules miss, and its limits.
16VS Code extension malware scanner: scan before you install
Are VS Code extensions safe? They run with the full rights of your editor. Scan an extension's code for malware before you install or update it.
How Togoder Security scans packages
What the AI reviewer looks for, how files are screened and cached, and where automated review falls short.