@profullstack/threatcrush 0.13.66 → 0.13.68

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
@@ -99,6 +99,7 @@ bun add -g @profullstack/threatcrush
99
99
  threatcrush # Get started
100
100
  threatcrush monitor # Watch nginx, auth & syslog for attacks (foreground)
101
101
  threatcrush tui # Interactive dashboard (htop for security)
102
+ threatcrush action-center # Fleet-wide detections, host health and queued actions (login required)
102
103
  threatcrush scan ./src # Scan code for vulnerabilities & secrets
103
104
  threatcrush scan . --format sarif --output out.sarif --fail-on critical,high
104
105
  threatcrush pentest URL # Quick web security checks against a URL
@@ -109,6 +110,23 @@ threatcrush store # Browse the module marketplace
109
110
  threatcrush update # Upgrade the CLI using the supported path
110
111
  ```
111
112
 
113
+ ### CIS evidence report export
114
+
115
+ Export the current `harden` findings as Markdown, JSON, or PDF:
116
+
117
+ ```bash
118
+ threatcrush harden --report cis --format md --no-upload
119
+ threatcrush harden --report cis --format json --no-upload
120
+ threatcrush harden --report cis --format pdf --output ./cis-evidence.pdf --no-upload
121
+ ```
122
+
123
+ The report identifies the host's current CIS benchmark edition when known and
124
+ includes the `harden` evidence and timestamp. The one verified SSH root-login
125
+ crosswalk is against the CIS Ubuntu 24.04 LTS v1.0.0 implementation; the current
126
+ catalog lists v2.0.0, so the report names the v1.0.0 mapping reference and does
127
+ not claim that mapping applies to v2.0.0. Other checks remain unverified. The
128
+ report does not claim a CIS assessment or certification.
129
+
112
130
  ## Features
113
131
 
114
132
  | Feature | Description |
@@ -178,6 +196,80 @@ The system daemon checks Bash, Zsh, Fish, and Ksh history files every minute, ke
178
196
 
179
197
  Snapshots contain only commands the shell has flushed to its history file. Bash commonly writes its in-memory history when the shell exits, so these backups are an audit trail, not a real-time activity clock or proof of hours worked. Use OS command auditing when you need complete per-command records.
180
198
 
199
+ ### File integrity monitoring
200
+
201
+ Hash selected system or application paths locally and alert when a file is added,
202
+ removed, or changes. It is opt-in because walking large directories reads every
203
+ regular file. Symlinks are skipped, each file is opened without following a
204
+ symlink, and file contents are never stored or uploaded. SHA-256 hashes remain
205
+ in the local root-owned state directory; events include changed paths but not
206
+ hashes. Linux inotify events trigger prompt scans for watched directories; the
207
+ periodic rehash remains a fallback (up to 2,048 directories are watched). A
208
+ first complete scan records the baseline without generating alerts; an
209
+ incomplete scan never replaces it. To keep daemon work bounded, scans stop
210
+ at 50,000 visited paths, 64 MiB per file, or 512 MiB total; choose narrower
211
+ paths if a scan reaches one of those limits.
212
+
213
+ ```toml
214
+ [file_integrity]
215
+ enabled = true
216
+ paths = ["/etc", "/usr/local/bin", "/var/www"]
217
+ canaries = ["/var/www/.customer-export-decoy"] # existing decoy file; any change/removal is critical
218
+ canary_directories = ["/srv/customer-data"] # place a hidden canary without overwriting existing files
219
+ poll_interval_seconds = 900
220
+ ```
221
+
222
+ Use `threatcrush integrity` to inspect the local baseline and
223
+ `sudo threatcrush integrity rebaseline` after reviewing expected system or
224
+ application changes. A single changed file is high severity; a burst of 25 or
225
+ more changes in one scan is grouped into one critical alert. A burst of at
226
+ least 10 changed files with a 0.5-bit average entropy increase is also critical.
227
+ Each configured
228
+ `canary_directories` entry gets a hidden, writable `.threatcrush-canary` file
229
+ on its first baseline; existing files are never replaced, and the canary is
230
+ not recreated after a baseline exists if it is deleted. Process killing
231
+ remains unavailable; the entropy signal is a mass-change heuristic, not a
232
+ content classifier.
233
+
234
+ ### Auditd process detections
235
+
236
+ The first EDR phase reads selected execution records from Linux auditd. It
237
+ detects shells or downloaders started by configured web-service accounts,
238
+ execution from configured temporary or world-writable paths, and known miner
239
+ process names. It is disabled until you install the generated rules and opt in:
240
+
241
+ ```toml
242
+ [edr]
243
+ enabled = true
244
+ audit_log_path = "/var/log/audit/audit.log"
245
+ web_service_users = ["www-data", "nginx", "caddy"]
246
+ temp_exec_paths = ["/tmp", "/var/tmp", "/dev/shm"]
247
+ watch_network_syscalls = false # opt in; successful connect/listen rules can produce high audit volume
248
+ network_baseline_seconds = 60 # learn outbound executables before alerting on new ones
249
+ watch_unknown_temp_cpu = true # alert after 80% CPU sustained for 60 seconds
250
+ ```
251
+
252
+ Review the host-specific rules before loading them:
253
+
254
+ ```bash
255
+ sudo threatcrush edr rules | sudo tee /etc/audit/rules.d/90-threatcrush.rules
256
+ sudo augenrules --load
257
+ sudo threatcrush edr status
258
+ ```
259
+
260
+ Some auditd 4.x distributions use `audit-rules.service` instead of
261
+ `augenrules`; use the rule loader supported by the host. Loading rules changes
262
+ kernel audit behavior, so ThreatCrush prints them for review and never installs
263
+ or reloads them itself. Auditd may record arguments for selected executions in
264
+ its root-protected log; ThreatCrush discards those arguments and remote
265
+ addresses. The opt-in network rules identify shell connect behavior, first-seen
266
+ outbound executables after a learning window, and processes that begin
267
+ listening. A root-owned local file remembers learned executable paths.
268
+ Temporary-path executables that sustain at least 80% of one CPU core for 60
269
+ seconds raise a critical event, including when auditd is unavailable. These
270
+ signals are not proof of compromise; the agent does not kill processes or
271
+ automatically ban them.
272
+
181
273
  ### Findings in the cloud
182
274
 
183
275
  Signed in (`threatcrush login`), every `scan`, `pentest` and `ai-scan` result is