@profullstack/threatcrush 0.13.7 → 0.13.9

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
@@ -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 95 OWASP CRS rules (paranoia level 1) with CRS anomaly scoring, runs 14 detection rules over auth, web and network events, auto-bans attackers, scans your codebase, spot-checks your URLs, and alerts you in real-time.
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) + 1 ThreatCrush rule with CRS anomaly scoring, runs 15 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
@@ -139,7 +139,7 @@ threatcrush store publish https://github.com/you/my-module # Publish your own
139
139
 
140
140
  | Component | What it covers |
141
141
  |-----------|----------------|
142
- | `log-watcher` | nginx access log + syslog — 95 OWASP CRS rules (PL1: SQLi, XSS, path traversal, RFI, RCE, PHP/Java injection, SSRF, scanners) scored on every request |
142
+ | `log-watcher` | nginx access log + syslog — 96 OWASP CRS rules (PL1: SQLi, XSS, path traversal, RFI, RCE, PHP/Java injection, SSRF, scanners) + 1 ThreatCrush rule (OS files in the path) scored on every request |
143
143
  | `ssh-guard` | auth.log / secure — failed logins, brute force, root logins, user enumeration |
144
144
  | `user-journal` | journald — the systemd journal |
145
145
  | `network-monitor` | Inbound connections to your listening ports — port scans, SYN floods |
package/dist/crs/NOTICE CHANGED
@@ -16,6 +16,16 @@ Changes made: the paranoia-level-1 rules from REQUEST-913, 930, 931, 932,
16
16
  933, 934, 941, 942 and 944 whose targets appear in a web server access log
17
17
  were converted by apps/cli/scripts/build-crs-rules.mjs into a JSON rule table
18
18
  (regular expressions translated from PCRE to JavaScript syntax, phrase files
19
- inlined, targets an access log cannot record removed). Rules that could not be
20
- translated faithfully were left out. The evaluation engine is ThreatCrush's
21
- own; it is not ModSecurity.
19
+ inlined, targets an access log cannot record removed). Rules 942100 and
20
+ 941100 (@detectSQLi, @detectXSS) call libinjection, which is not CRS: it ships
21
+ compiled to WebAssembly in this package's dist/libinjection/, with its own
22
+ licence (BSD-3-Clause) in COPYING there; its sources are vendored under
23
+ apps/cli/vendor/libinjection. Rules that could not be translated faithfully
24
+ were left out. The evaluation engine is ThreatCrush's own; it is not
25
+ ModSecurity.
26
+
27
+ Also derived from CRS: ThreatCrush's own rule 10001 (THREATCRUSH_RULES in
28
+ rules.generated.ts), which is not part of CRS. It applies the phrases of CRS's
29
+ lfi-os-files.data, less those restricted-files.data already covers, to the
30
+ request path with the transformations of CRS rule 930120, as one anchored
31
+ JavaScript regular expression.