@profullstack/threatcrush 0.13.64 → 0.13.65
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 +14 -1
- package/dist/daemon.js +720 -126
- package/dist/daemon.js.map +1 -1
- package/dist/index.js +851 -251
- package/dist/index.js.map +1 -1
- package/dist/systemd/threatcrushd.service +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
45
|
-
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
|
|
45
|
+
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 23 detection rules over auth, web and network events, auto-bans attackers, scans your codebase, spot-checks your URLs, and alerts you in real-time.
|
|
46
46
|
|
|
47
47
|
```
|
|
48
48
|
$ threatcrush monitor
|
|
@@ -165,6 +165,19 @@ threatcrush init --offline # Same, without signing in (scripts, CI, con
|
|
|
165
165
|
|
|
166
166
|
Config lives at `/etc/threatcrush/threatcrushd.conf` with module configs in `/etc/threatcrush/threatcrushd.conf.d/`.
|
|
167
167
|
|
|
168
|
+
### Local shell history protection
|
|
169
|
+
|
|
170
|
+
Command-history collection is opt-in because shell histories may contain credentials or private work details:
|
|
171
|
+
|
|
172
|
+
```toml
|
|
173
|
+
[command_history]
|
|
174
|
+
enabled = true
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
The system daemon checks Bash, Zsh, Fish, and Ksh history files every minute, keeps compressed local snapshots under `/var/lib/threatcrush/command-history/`, and retains up to 96 archived snapshots plus the current backup per file for up to 90 days. The directory is root-only. Snapshot contents stay on the host and are never sent to the dashboard. If a history file is replaced by a symlink, hard link, or removed after a backup exists, the daemon restores the last snapshot and emits a medium-severity event. Re-run `threatcrush install-service` after enabling collection so systemd grants write access only to supported interactive users' home directories.
|
|
178
|
+
|
|
179
|
+
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
|
+
|
|
168
181
|
### Findings in the cloud
|
|
169
182
|
|
|
170
183
|
Signed in (`threatcrush login`), every `scan`, `pentest` and `ai-scan` result is
|