Togoder security

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.

Detection7 min read
  • 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.
02

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.

Threats6 min read
03

npm 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.

Hardening6 min read
04

npm 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.

Tooling6 min read
05

Scan 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.

CI/CD6 min read
06

npm 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.

Comparison4 min read
07

Socket.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.

Comparison2 min read
08

Cheap 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.

Comparison2 min read
09

How 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.

How-to2 min read
10

How 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.

Detection2 min read
11

API 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.

API2 min read
12

Shai-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.

Threats2 min read
13

Supply 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.

Tooling1 min read
14

Prepaid 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.

Pricing2 min read
15

AI 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.

Detection2 min read
16

VS 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.

Guide4 min read

How Togoder Security scans packages

What the AI reviewer looks for, how files are screened and cached, and where automated review falls short.