Buyer's guide · npm dependency security · Updated

npm package security scanners compared: known CVEs, malware and AI-invented packages

Start with free checks: npm audit, built into npm, reports known vulnerabilities, and GitHub Dependabot alerts cover known CVEs and malware on every GitHub plan. Neither can flag a brand-new malicious package or a package name an AI tool made up, so add an install-time check such as npq, Aikido Safe Chain or Socket's free plan.

Disclosure: ChikuOS sells some of the options below, and they're labelled "ChikuOS". No vendor paid to be listed or placed, and we earn no commission or affiliate fee from any link on this page. Prices and features of other products are as listed on their own sites on 7 November 2026; follow the links to check current terms.

npm package security scanners compared (prices as listed by each vendor)

How we chose and ordered these: Free tools that check known vulnerabilities come first, then free tools that check packages before or during install, then platforms with paid plans (lowest listed price first), then our human review. What each tool checks is as its docs describe it; we haven't benchmarked them against each other. How we compare.

ToolLabelHow it worksPriceWhat it catchesKeep in mind
npm auditFreeBuilt into the npm CLIFreeKnown vulnerabilities reported for your dependency tree, with suggested fixesOnly published advisories. A new malicious package usually has none yet
GitHub Dependabot alertsFreeGitHub repository featureFree on all GitHub plansKnown vulnerabilities, malware alerts for malicious dependencies (on GitHub.com), optional update pull requestsYour code needs to be on GitHub
OSV-ScannerOpen sourceOpen-source CLI from Google using the OSV databaseFreeKnown vulnerabilities across many languages and lockfilesKnown advisories only, like npm audit
npqOpen sourceOpen-source CLI (Apache-2.0) you run instead of npm installFreeBefore install: known vulnerabilities, package age, download count, missing README or LICENSE, install scriptsBy default it carries on after 15 seconds if there are only warnings; its own docs say it can't guarantee safety
Aikido Safe ChainOpen sourceFree wrapper for npm, npx, yarn, pnpm, bun and pipFree, no tokenBlocks known malware at install time, and blocks packages newer than 48 hoursInstall-time protection, not a report on what's already installed
InstallSafeFree tierDrop-in npm registry proxy: filters package metadata against OSV.dev and the OpenSSF malicious-packages feed before the tarball downloadsFree plan $0 forever, no card (Critical/High + malware, one registry token, 7-day log); Pro $19/month after a 7-day trial; Team $25 per seat / month (as listed on 7 Nov 2026)Known-advisory and confirmed-malware versions blocked at the registry boundary for developers, CI and AI coding agentsDoes not claim zero-hour behavioural detection; relies on published advisories
SocketFree tierGitHub app, CLI and web reportsFree plan; Team $25 per developer a month70+ risk types, including malicious dependencies it can block automaticallyThe free plan has monthly usage limits
SnykFree tierDependency, code, IaC and container scanningFree plan; Team from $25 a monthKnown vulnerabilities in dependencies, with IDE, CLI and Git integrationsFree plan has test limits per product
Aikido platformFree tierRepo scanning: dependencies, code, secretsDeveloper plan free (2 users, 10 repos)Dependency scanning with reachability, plus code and secrets scanningBroader than npm; paid plans add more repos and features
ChikuOS npm Dependency & Slopsquatting ScanPaid (ChikuOS)Human review of your package.json and lockfile$49, 24 hoursnpm audit and Semgrep supply-chain results reviewed by hand, very new, low-download, typo-similar or recently transferred packages, install scripts, abandoned dependencies; ranked list with exact commandsRead-only and one-off. It reduces risk but can't prove a package is safe

Label key: Free = no paid plan needed for what's described; Free tier = a free plan or free scan with limits, and paid plans above it; Open source = code published under an open-source licence that you run yourself; Free trial = free for a limited time, then paid; Paid = no free option (ChikuOS offers are marked "Paid (ChikuOS)"). The limits in the price column are as stated on each tool's own pricing page or repository, re-checked on . "Limit not verified" means we couldn't load that page, so we removed the number rather than guess.

Which one should you pick?

Why AI-written code needs an extra check

Code-writing AI tools sometimes suggest packages that don't exist. A 2024 study, We Have a Package for You!, generated 576,000 code samples with 16 models and found that on average at least 5.2% of suggested packages from commercial models, and 21.7% from open-source models, were hallucinated. If someone registers one of those names, the next person who runs the AI's install command gets their package. This is often called slopsquatting. Tools that only check known vulnerabilities won't flag it, because a new package has no advisory yet. Checks on package age, downloads and install scripts, or a block on very new packages, are what catch it.

How we checked a package before installing it (27 October 2026)

These are some of the checks npq automates, run by hand by the ChikuOS team on 27 October 2026 at 06:11 IST with npm 11.21.1. Output is pasted as it came back; the one line in brackets is our note.

Before-install checklist
SignalCommandWhat to worry about
Does the package exist?npm view <name>A 404 means an AI tool may have invented the name. Don't publish or install a look-alike
How old is it?npm view <name> time.createdCreated in the last few days, with few downloads
Install scriptsnpm view <name> scripts.install scripts.postinstallAny script that runs on install and that you can't explain
Licence and repositorynpm view <name> license repository.urlNo licence, or no source repository to read
Known vulnerabilitiesnpm auditHigh or critical advisories in packages you ship
$ npm view npq name version time.created license
name = 'npq'
version = '3.27.2'
time.created = '2017-11-28T19:15:13.497Z'
license = 'Apache-2.0'

$ npm view npq scripts.postinstall scripts.install
[no output: the package has no install scripts]

$ npm view chikuos-made-up-pkg-zz9
npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/chikuos-made-up-pkg-zz9 - Not found

The last name was made up on purpose to show what a hallucinated package looks like: the registry has nothing under it. That's exactly the gap slopsquatting exploits, because anyone can register the name later. For the wider launch checklist, see the vibe-coded app security checklist.

What no scanner proves on its own

FAQ

What is the best free npm security scanner?

Start with npm audit, which is built into npm, and GitHub's Dependabot alerts if your code is on GitHub. For malicious or AI-invented packages, add an install-time check such as npq or Aikido Safe Chain, or Socket's free plan.

Does npm audit detect malware?

npm audit reports known vulnerabilities from published advisories. A brand-new malicious package usually has no advisory yet, so pair it with a tool that checks packages before or during install.

What is slopsquatting?

Registering a package under a name that AI coding tools tend to invent, so people who copy the AI's install command get the attacker's package. A 2024 study of 576,000 AI-generated code samples found hallucinated package names were common, especially from open-source models.

How do I check an npm package before installing it?

Look at its age, weekly downloads, maintainers, repository link and install scripts on npmjs.com, or run it through npq, which checks these for you. Be wary of packages published in the last few days with very few downloads.

How much does an npm dependency scan cost?

Free for npm audit, Dependabot, OSV-Scanner, npq, Aikido Safe Chain and InstallSafe's Free plan; Socket's Team plan is $25 per developer a month, Snyk's Team plan starts at $25 a month and InstallSafe Pro is $19 a month after a 7-day trial; our one-off human review is $49, as listed on each vendor's site on 7 November 2026.

How this guide was made: researched and drafted with AI assistance, then every price and claim was checked against the linked source on 7 November 2026. Editorial responsibility: ChikuOS. Spotted something out of date? Email hello@chikuos.com and we'll correct it.

Chat