Every npm package Togoder Security has scanned has a free report below. To check your own project, upload its package-lock.json.
To check npm dependencies for malicious code before installing them, upload your package-lock.json, yarn.lock, pnpm-lock.yaml or bun.lock. Togoder Security downloads every package in the tree from the npm registry, never runs it, and has an AI model read each source file for install-time payloads, credential theft, exfiltration and backdoors. Packages that were scanned before have a free public report below.
How to scan npm dependencies
Find your dependency file. Use package-lock.json, npm-shrinkwrap.json, yarn.lock, pnpm-lock.yaml, bun.lock, package.json. Lockfiles pin every transitive dependency, so the whole tree is scanned.
Upload it for a free quote. Upload the file at https://security.togoder.click/scan, or POST it to https://security.togoder.click/api/quotes. The price covers only files nobody has scanned before.
Scan with a prepaid balance or monthly plan. Scan new code from a prepaid balance or with monthly access, in the browser or with an API key. Packages are downloaded and read, never executed.
Review findings before you install. Read each finding's severity, file and line, then run npm install only once you are satisfied. Every result is also published as a public report.
curl -X POST https://security.togoder.click/api/paid-scan -H "Authorization: Bearer $API_KEY" -F "file=@package-lock.json"
Lifecycle scripts: preinstall, install and postinstall run automatically for every package in the tree, transitive ones included. Most npm malware lives here. See how to detect malicious postinstall scripts.
Code that runs on require or import: top-level statements in the entry point run even with --ignore-scripts.
Browser payloads: code bundled into front-end apps that hooks fetch, XHR or wallet APIs to swap addresses or steal tokens.
Worms and account takeovers: stolen npm tokens used to publish infected versions of trusted packages, as in the Shai-Hulud worm.
Supported files
package-lock.json, npm-shrinkwrap.json, yarn.lock, pnpm-lock.yaml, bun.lock, package.json. Manifests are resolved to the newest matching versions; lockfiles are scanned exactly as pinned. You can also scan one package and its dependencies by name.
Free tools to run alongside
npm audit (GitHub Advisory Database), npm audit signatures (registry signatures and provenance), OSV-Scanner and Dependabot alerts. They match versions against already-reported advisories and are worth running in every project; they do not read the code. See npm audit vs source code scanning.
Frequently asked questions
How do I scan my package-lock.json for malicious packages?
Upload it at /scan, or POST it to /api/paid-scan with an API key. Every resolved version is downloaded from the npm registry and each file is read by an AI model. You see the price before paying, and files reviewed before cost nothing.
Does npm audit catch malware?
Only after someone has reported it and an advisory exists. A malicious version published today passes npm audit until then. Source review reads the code itself, so it does not depend on a report.
Is scanning npm packages free?
Reading existing reports, parsing your file and getting a price quote are free, and so is a scan in which every file was already reviewed by someone. Scanning code nobody has reviewed yet is paid, from a prepaid balance or with monthly access. Free advisory tools are listed on this page.