// DOCS
ThreatCrush Docs
How to install ThreatCrush, run the daemon, and use every CLI command. Run threatcrush help <command> for the full options of any command.
Install
Preferred install: curl -fsSL https://threatcrush.com/install.sh | sh
- Linux server → installs the CLI, which includes the daemon.
- Desktop (Linux, macOS, Windows) → installs the CLI and points you to the desktop app, a separate download from GitHub Releases. The desktop app talks to a ThreatCrush daemon on the same machine; log monitoring and firewall bans need Linux.
After install, lifecycle commands are threatcrush update and threatcrush remove.
// QUICK START
Protect a Linux server
threatcrush init— optionally sign in, and write a config for the services on this host.sudo threatcrush install-service— run the daemon under systemd. It detects attacks and bans their source IPs on its own; no account is needed for that.threatcrush servers link— optional: send this server's detections, findings and bans to your organization's dashboard.
// COMMANDS
Command reference
Everything below ships in the CLI on npm, except commands marked New, which arrive in the next release.
Set up
threatcrush initOffers to sign you in, detects SSH, nginx, Apache, PostgreSQL, MySQL, Redis and BIND on this host, and writes a config for them.
threatcrush login [-e <email>]Sign in to your threatcrush.com account.
threatcrush logoutClear the stored threatcrush.com credentials.
threatcrush whoamiShow the account you are signed in as.
Detect and run the daemon
threatcrush monitor [-m <modules>] [--tui]Watch nginx, auth, syslog and journald for attacks in the foreground. -m limits it to some modules (e.g. ssh-guard,log-watcher).
threatcrush tui [--demo]Interactive dashboard connected to the daemon (alias: dashboard). --demo runs on canned events.
sudo threatcrush install-serviceInstall the threatcrushd systemd unit so the daemon starts on boot. uninstall-service removes it.
threatcrush start | stop | restartStart the daemon in the background, stop it, or restart it.
threatcrush daemonRun threatcrushd in the foreground — the ExecStart for systemd or Docker.
threatcrush statusShow daemon status and loaded modules.
threatcrush logsTail the daemon logs.
threatcrush rules [list | show <id>]List the detection rules, or show one. Add your own JSON rules in /etc/threatcrush/rules.d.
Respond
threatcrush block <ip> [--ttl <duration>]Ban an IP at the firewall (nftables, iptables or fail2ban), optionally for a time such as 30m, 1h or 1d.
threatcrush unblock <ip>Lift a ban.
threatcrush blocklistShow active bans.
threatcrush allowlist [list | add <ip/cidr> | remove <ip/cidr>]Manage the addresses the daemon will never ban.
threatcrush harden [--json]Check SSH password and root login, sshd weaknesses, automatic security updates, an active firewall, risky exposed ports and fail2ban.
Scan
threatcrush scan [path]Scan a codebase for secrets and risky code patterns. Options: -f text|json|sarif, -o <file>, --fail-on <severities>, --deps (check lockfile versions against OSV.dev), --exclude <glob>, --missing-controls, --path-prefix <prefix>.
threatcrush pentest <url>Check a URL's security headers, CSP, CORS, cookie flags, banners, directory listings and error leaks, then probe for SQL errors, path traversal and unsafe HTTP methods.
Organizations and the cloud dashboard
threatcrush orgs [list | create <name> | use <slug>]List your organizations, create one, or switch the current one (alias: org).
threatcrush servers listList the servers in the current organization (alias: server).
threatcrush servers link [--org <id|slug>] [--name <name>]Link this machine to a server in your organization, reusing one with the same hostname or creating it. While signed in and linked, the daemon sends detections, hardening findings, bans and heartbeats to the dashboard, and carries out bans you queue there.
threatcrush servers unlinkStop sending this machine's data to the dashboard. threatcrush status shows whether a machine is linked.
threatcrush properties [list | add | remove | run | runs | import]Manage the targets (URLs, APIs, domains, IPs, repos) in the current organization, run scans and pentest checks against them, see run history, and bulk-import from .json, .csv or .tsv (alias: props).
threatcrush connect [target]Open an SSH session to a server in your organization (--org, -u, -p, -i).
Modules
threatcrush modules [list | install | remove | available] [name]Manage security modules.
threatcrush storeBrowse the module marketplace.
threatcrush store search <query>Search the marketplace.
threatcrush store publish <url>Submit a module from a git or web URL. Publishing is free; listings go live after review.
Install lifecycle
threatcrush update [--cli | --modules | --desktop]Update the CLI and the installed bundle.
threatcrush removeUninstall ThreatCrush and the installed bundle (alias: uninstall).
// NOT YET
Not available yet
- Code-signed macOS and Windows desktop builds — today they trigger Gatekeeper and SmartScreen warnings
- The mobile app in the App Store and Google Play
- The browser extension in the Chrome, Firefox and Edge stores — sideload it from source for now
- The @threatcrush/sdk package on npm
// MODULE AUTHORS
Building and publishing modules
If you want to contribute to the marketplace, start with the module author docs. They explain how the store works today, what metadata we fetch, and how to publish through the web UI or CLI.