Local-first defensive scanner for vulnerable dependencies, leaked secrets, and risky agent configs
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A local-first security scanner for developers. One binary, no account.
Install Β· Quickstart Β· Usage Β· Commands Β· How it works
husk scans your machine for compromised packages, leaked secrets, risky install
scripts, and unsafe AI/MCP configuration, then shows you what to fix. It runs
locally: no login, no account, no file ever leaves your machine. An online scan
sends only package names, versions, and CVE ids to public advisory databases
(OSV.dev, npm, PyPI, GitHub, CISA KEV / FIRST EPSS); --offline makes zero
network calls.
Pre-1.0 software without an independent audit. Interfaces can change between releases. Bug reports and questions are welcome in Issues.
husk runs on Linux and macOS. On Windows, run it inside WSL, where it installs and behaves exactly as it does on Linux. There is no native Windows build.
Download the latest signed release, verify its checksum, and install it:
It installs to ~/.local/bin, overridable with HUSK_INSTALL_DIR or
--install-dir. If that directory is not already on your PATH, it asks before
adding it to your shell's startup file and names the exact file it would change.
Decline, or run it without a terminal, and it prints the one command that adds
it instead. --no-modify-path never writes to a startup file at all.
Prefer not to pipe into a shell? Download install.sh, read it, then run
it. Every release is cosign-signed and SLSA-attested; the installer verifies the
SHA-256 checksum (and the signature too, when cosign is on your PATH). See
verifying a release.
Source Command cargo cargo install husk-seccargo-binstall cargo binstall husk-secnpm npm install -g husk-sec
Run it without installing anything:
The flake exposes two packages:
husk(the default, with the localhost web UI) andhusk-tui(the same binary without it, so it needs no Node toolchain).For persistent use, add the flake as an input and put the package in your configuration. NixOS:
Home Manager, with the same input:
If you would rather put it on
PATHimperatively than declare it,nix profile install github:husk-security/huskalso works.
husk with no subcommand prints help and exits, like git or cargo. The entry
points are husk scan (scan and print the report), husk web (the local web
UI, opened in your browser), and husk tui (the terminal UI).
A few of the commands you'll actually run day to day. The full list (every subcommand and flag) is in the command reference.
Scan a directory and print the findings report:
Vet one package before you install it (a live OSV.dev lookup):
The version can be an @version suffix (split on the last @, so
@scope/pkg@1.2.3 works) or separate arguments: husk check npm lodash 4.17.20.
A bare name (husk check lodash) assumes npm and checks malware advisories only.
Protect normal and lockfile installs with the tracked Safe Chain task in the Guide. Husk recommends the free, MIT-licensed third-party tool instead of shipping a weaker package-manager wrapper:
Commit a project policy (block/allow packages, suppress triaged findings,
set the CI threshold); the .husk/ directory is meant to be committed:
Plan safe fixes (dry-run by default; --apply writes them, with backups):
Gate a build in CI, JSON on stdout, non-zero exit at or above the threshold:
husk reads a few environment variables:
| Variable | Effect |
|---|---|
HUSK_HOME | State directory (ledger, daemon state, credentials); default ~/.husk. |
HUSK_CACHE_DIR | Cache directory (reports, scan index); default ~/.cache/husk. |
HUSK_PAGER, PAGER | Pager for long reports (default less); an empty value or cat disables paging. |
NO_COLOR | Disable ANSI colors in CLI output. |
HUSK_TOKEN | Bearer-token override for cloud commands (CI or one-off use). |
One binary, many subcommands. Run husk <command> --help for the full flags
of any of them.
husk scan: Scan now and print the findings reporthusk status: Print the last scan's report without rescanninghusk tui: Open the interactive terminal UI on the latest scanhusk web: Serve the local web UI on the latest scanhusk check: Look up one package's malware/vulnerability verdicthusk ci: Scan and gate a build; exit 1 at/above the thresholdhusk fix: Plan fixes from the latest scan; write them with --applyhusk init: Create a committed .husk/policy.toml project policyhusk approve: Record an allow/block/suppress decision in the policyhusk policy: Show the active project policy and its countshusk ledger: Show or verify the personal trust ledgerhusk daemon: Scan on an interval; report findings new since last runhusk login: Sign in to a husk account (coming soon)husk logout: Delete the credentials stored on this machinehusk account: Show the signed-in account and machine linkhusk sync: Upload the last scan's inventory for retroactive alertshusk alerts: List this account's retroactive alertshusk telemetry: Manage opt-in anonymous telemetry (off by default)husk feedback: Send feedback to the husk developershusk mcp: Run the MCP server, or register it with an AI agentSeveral commands emit the full scan report as JSON: husk scan --json,
husk status --json, husk tui --json, and husk ci (always JSON). The shape
is identical everywhere; it is the report the local cache stores and every UI
renders. It is plain JSON on stdout: never paged, never colored, safe to pipe
straight into jq.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/husk)<a href="https://allmcps.com/mcp/husk"><img src="https://allmcps.com/api/badge/husk?style=directory" alt="Husk on AllMCPs" /></a>