ThreatCrush is a security daemon that runs on your server, reading your logs and watching inbound connections for live attacks. It checks every nginx request against 96 OWASP CRS rules (paranoia level 1) + 4 ThreatCrush rules with CRS anomaly scoring, runs 31 detection rules over auth, web (including password-reset and signup abuse, and code-forge archive crawls), network and Postgres (Docker container log) events, auto-bans attackers, scans your codebase, spot-checks your URLs, and alerts you in real-time.
$ threatcrush monitor
2026-09-25 12:03:41 [INFO] Starting foreground monitor...
2026-09-25 12:03:41 [INFO] Monitoring 3 log source(s):
● ssh-guard → /var/log/auth.log
● log-watcher → /var/log/nginx/access.log
● log-watcher → /var/log/syslog
Press Ctrl+C to stop
2026-09-25 12:03:45 [CRITICAL] [log-watcher] Attack detected [SQLI]: GET /api/users?id=1%20UNION%20SELECT%20password%20FROM%20users (185.43.21.8)
2026-09-25 12:03:46 [CRITICAL] [log-watcher] Attack detected [PATH_TRAVERSAL]: GET /../../etc/passwd (185.43.21.8)
2026-09-25 12:03:47 [HIGH] [ssh-guard] Failed SSH login for root from 91.232.105.3 (91.232.105.3)
2026-09-25 12:03:48 [HIGH] [ssh-guard] Invalid SSH user attempt: admin123 from 103.77.88.99 (103.77.88.99)
2026-09-25 12:03:52 [LOW] [log-watcher] Client error 404: GET /wp-login.php (203.0.113.9)
monitor tails your logs in the foreground. The daemon (threatcrush start) adds the connection poller, DNS monitor, journald, the rule engine and auto-ban.
Install
Preferred install:
curl -fsSL https://threatcrush.com/install.sh | sh
The CLI needs Node.js 22.6 or newer. The installer detects whether the machine is a server or desktop, uses your existing package manager when available, and on a machine with no Node.js sets up Node.js LTS with mise, adding mise's shims to ~/.profile so new login shells find threatcrush. If it finds an older Node.js it stops without installing anything and tells you how to upgrade.
- Linux server → installs the CLI
- 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, the supported lifecycle commands are:
threatcrush update # upgrades the installed bundle
threatcrush remove # removes the installed bundle
Manual package-manager installs still work (Node.js 22.6+):
npm i -g @profullstack/threatcrush
pnpm add -g @profullstack/threatcrush
yarn global add @profullstack/threatcrush
bun add -g @profullstack/threatcrush
Usage
threatcrush # Get started
threatcrush monitor # Watch nginx, auth & syslog for attacks (foreground)
threatcrush tui # Interactive dashboard (htop for security)
threatcrush action-center # Fleet-wide detections, host health and queued actions (login required)
threatcrush scan ./src # Scan code for vulnerabilities & secrets
threatcrush scan . --format sarif --output out.sarif --fail-on critical,high
threatcrush scan . --verify # AI second-read of every finding; drops confident false positives
sudo threatcrush scan --host # Rootkit / host integrity scan of this machine (alias: host-scan)
sudo threatcrush respond ... # Incident response: kill sessions, ban, pull stolen keys, lock sshd (dry run unless --apply)
threatcrush pentest URL # Quick web security checks against a URL
threatcrush explore ./src # Blackboard state-space vulnerability research over code you own (docs/explore.md)
threatcrush init # Auto-detect services, generate config
threatcrush status # Show daemon status & loaded modules
threatcrush modules # Manage security modules
threatcrush store # Browse the module marketplace
threatcrush update # Upgrade the CLI using the supported path
AI-verified scan (--verify)
threatcrush scan --verify hands each rule hit, with about 20 lines of context,
to a model that must say whether it is real and quote the attacker-controlled
expression that reaches the sink. Confident false positives (test fixtures,
constant input, a match inside a regex or string, a value from your own API)
are dismissed from the report and from --fail-on; JSON output still lists
them under dismissed. A "confirmed" verdict that cites no source visible in
the code is downgraded to uncertain.
Opt-in, because code leaves the machine: by default masked excerpts go to a
c0mpute peer node (end-to-end encrypted to that worker).
High-entropy strings are masked first, so found secrets are described, never
sent. To keep everything local, point it at any OpenAI-compatible server:
threatcrush scan . --verify --ai-url http://localhost:11434/v1 --ai-model qwen2.5-coder:7b # Ollama
C0MPUTE_API_KEY=ik_live_... threatcrush scan . --verify --format json # c0mpute account key
See docs/scan-verify.md for flags, models and output.
Host integrity / rootkit scan
threatcrush scan --host (alias --localhost, or threatcrush host-scan) checks
the machine it runs on instead of a code tree. It only reads: it never installs,
deletes or fixes anything.
sudo threatcrush scan --host # every check, text report
sudo threatcrush host-scan --json > host-scan.json # machine-readable
sudo threatcrush host-scan --since 3d --deny-keys ./stolen-keys.txt
sudo threatcrush host-scan --checks ssh-keys,persistence,uid0-accounts
sudo threatcrush host-scan --skip-checks rkhunter,chkrootkit,suid-sgid # the slow ones
sudo threatcrush host-scan --checks network-exposure,secrets-on-disk # what an intruder reaches and harvests
sudo threatcrush host-scan --checks secrets-on-disk --deep --secrets-timeout 600