Gnawky

One command. Every scanner. One report.

A local security scanner for Node.js projects. Gnawky checks your dependencies, secrets and code, puts everything in one report, and fixes vulnerable packages safely on a new git branch.

npm install -g gnawky

or yarn global add gnawky · try it once with npx gnawky · Node 18+

See it in action

From install to a safe fix

~/code/my-app

A terminal demo: installing Gnawky with npm, scanning a project that finds vulnerable axios and express versions shipping to production, applying the express upgrade on a new git branch, and a git push where the pre-push check warns about axios but lets the push through.

Real Gnawky output on a sample project with old axios, express and jest versions, shortened.

What it checks

Proven scanners, one list of findings

Gnawky runs the tools you'd run anyway and merges their results. A missing scanner shows as “skipped”, never silently ignored.

Vulnerable dependencies

npm audit or yarn audit, grouped by the package you upgrade, with production dependencies first.

Next.js bundled React

React Server Components advisories in the copy of React that Next.js ships, which npm audit can't see.

Leaked secrets

gitleaks searches files and git history. Secret values are never written to the reports.

Risky code

semgrep rules picked for your stack: injection, XSS, unsafe eval, Express, React, Docker and more.

Full audit with Claude

Optional: logic flaws pattern scanners miss, like access control and auth flows.

Optional

Then you decide

Finding by finding, with the reason kept for your team:

FixIgnore, with a reasonSkip

Safe fixes

Fixes you can review and throw away

  • On a new git branchOnly with a clean working tree, so one command undoes everything.
  • No install scriptsUpgrades run with --ignore-scripts, and never npm audit fix --force.
  • Breaking upgrades asked separatelySemver-major changes are labeled and need their own approval.
  • Checked afterwardsOptionally runs your tests and build, then audits again and logs what got fixed.

Guards

Stop risky packages before they land

  • Before npm install <pkg>Checks new packages for known vulnerabilities, malware and brand-new versions, pasted commands included.
  • Pre-commit checkBlocks commits that add dependencies with new high or critical advisories. Old findings never block.
  • Pre-push warningA fresh audit on every push lists critical and high advisories that ship to production. It only warns.
  • Shared with your teamWorks with husky, lefthook or plain git hooks. Teammates without Gnawky aren't affected.

Claude Code plugin

Ask in plain words

The plugin runs Gnawky for you, explains each finding in plain language, and applies fixes through Gnawky's safe branch workflow, only after you agree.

  • TriageClaude checks findings against your code: real issue, likely false positive, or needs a human.
  • Slash commands/gnawky:scan, /gnawky:prod, /gnawky:triage, /gnawky:fix, /gnawky:report

Add it to Claude Code

/plugin marketplace add andreiciungan/gnawky
/plugin install gnawky@gnawky-marketplace

Run both in Claude Code. The plugin brings its own copy of Gnawky; install npm install -g gnawky too for the terminal app and the git hooks.

Quick start

Running in a minute

  1. Install

    npm install -g gnawky

  2. Open your project

    cd ~/code/my-app then gnawky

  3. Short setup

    Detects your stack, picks online or offline, and offers the scanners and guards that fit.

  4. Review and fix

    Critical and high findings that ship to production come first.

Private by default: your source code never leaves your machine. Only the dependency list goes to the npm registry, and offline mode keeps everything local.

New to Gnawky?

The presentation walks through what it does, how to use it and why, in a few minutes.

View the presentation