@profullstack/threatcrush 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -102,6 +102,7 @@ threatcrush tui # Interactive dashboard (htop for security)
102
102
  threatcrush action-center # Fleet-wide detections, host health and queued actions (login required)
103
103
  threatcrush scan ./src # Scan code for vulnerabilities & secrets
104
104
  threatcrush scan . --format sarif --output out.sarif --fail-on critical,high
105
+ threatcrush scan . --verify # AI second-read of every finding; drops confident false positives
105
106
  sudo threatcrush scan --host # Rootkit / host integrity scan of this machine (alias: host-scan)
106
107
  sudo threatcrush respond ... # Incident response: kill sessions, ban, pull stolen keys, lock sshd (dry run unless --apply)
107
108
  threatcrush pentest URL # Quick web security checks against a URL
@@ -112,6 +113,28 @@ threatcrush store # Browse the module marketplace
112
113
  threatcrush update # Upgrade the CLI using the supported path
113
114
  ```
114
115
 
116
+ ### AI-verified scan (`--verify`)
117
+
118
+ `threatcrush scan --verify` hands each rule hit, with about 20 lines of context,
119
+ to a model that must say whether it is real and quote the attacker-controlled
120
+ expression that reaches the sink. Confident false positives (test fixtures,
121
+ constant input, a match inside a regex or string, a value from your own API)
122
+ are dismissed from the report and from `--fail-on`; JSON output still lists
123
+ them under `dismissed`. A "confirmed" verdict that cites no source visible in
124
+ the code is downgraded to uncertain.
125
+
126
+ Opt-in, because code leaves the machine: by default masked excerpts go to a
127
+ [c0mpute](https://c0mpute.com) peer node (end-to-end encrypted to that worker).
128
+ High-entropy strings are masked first, so found secrets are described, never
129
+ sent. To keep everything local, point it at any OpenAI-compatible server:
130
+
131
+ ```bash
132
+ threatcrush scan . --verify --ai-url http://localhost:11434/v1 --ai-model qwen2.5-coder:7b # Ollama
133
+ C0MPUTE_API_KEY=ik_live_... threatcrush scan . --verify --format json # c0mpute account key
134
+ ```
135
+
136
+ See [docs/scan-verify.md](docs/scan-verify.md) for flags, models and output.
137
+
115
138
  ### Host integrity / rootkit scan
116
139
 
117
140
  `threatcrush scan --host` (alias `--localhost`, or `threatcrush host-scan`) checks
@@ -687,7 +710,10 @@ box's listening ports raises a high `threat-feed-inbound` event that carries
687
710
  the source address, so auto-defence can ban it.
688
711
 
689
712
  It needs root, `bpftrace` (`apt install bpftrace`) and kernel BTF
690
- (`/sys/kernel/btf/vmlinux`). `source = "auto"` picks eBPF when all three are
713
+ (`/sys/kernel/btf/vmlinux`). Under systemd the unit must also grant `CAP_BPF`
714
+ and `CAP_PERFMON`: enable `[edr]` first, then run `threatcrush install-service`
715
+ again, which adds them when the eBPF source is configured. A unit installed
716
+ before that makes bpftrace exit with "Missing CAP_BPF capability". `source = "auto"` picks eBPF when all three are
691
717
  present and auditd otherwise; `source = "ebpf"` logs why and uses auditd when
692
718
  they are not. If bpftrace exits it is restarted with exponential backoff (1s
693
719
  up to 60s); if it fails to start three times in a row, the daemon falls back