@profullstack/threatcrush 0.13.15 → 0.13.16
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 +1 -1
- package/dist/daemon.js +33 -0
- package/dist/daemon.js.map +1 -1
- package/dist/index.js +79 -19
- package/dist/index.js.map +1 -1
- 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) + 1 ThreatCrush rule 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) + 1 ThreatCrush rule with CRS anomaly scoring, runs 16 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
|
package/dist/daemon.js
CHANGED
|
@@ -16525,6 +16525,39 @@ var DEFAULT_RULES = [
|
|
|
16525
16525
|
description: "Block source IP performing exploit probes"
|
|
16526
16526
|
},
|
|
16527
16527
|
enabled: true
|
|
16528
|
+
},
|
|
16529
|
+
{
|
|
16530
|
+
// A real network card entering promiscuous mode can mean someone is
|
|
16531
|
+
// sniffing traffic on the host. The kernel also logs this constantly for
|
|
16532
|
+
// container veth/bridge interfaces, which is normal (a bridge port must be
|
|
16533
|
+
// promiscuous to forward frames), so the negative lookahead excludes every
|
|
16534
|
+
// virtual interface kind and only a physical/primary NIC trips this.
|
|
16535
|
+
id: "nic-promiscuous-mode",
|
|
16536
|
+
title: "Network Interface Entered Promiscuous Mode",
|
|
16537
|
+
description: "A non-virtual network interface entered promiscuous mode, which can indicate packet sniffing",
|
|
16538
|
+
version: "1.0.0",
|
|
16539
|
+
category: "system",
|
|
16540
|
+
severity: "medium",
|
|
16541
|
+
source_types: ["user-journal", "system"],
|
|
16542
|
+
match: {
|
|
16543
|
+
field: "message",
|
|
16544
|
+
operator: "regex",
|
|
16545
|
+
// "[kernel] enp11s0: entered promiscuous mode" trips; veth*, docker*,
|
|
16546
|
+
// br-*, bridge, lo, tap*, vxlan*, cni*, cali*, flannel*, virbr*, kube*
|
|
16547
|
+
// and tailscale* do not.
|
|
16548
|
+
value: "\\b(?!veth|docker|br-|bridge|lo:|lo\\b|tap|vxlan|cni|cali|flannel|virbr|kube|tailscale)[A-Za-z][\\w.-]*: entered promiscuous mode"
|
|
16549
|
+
},
|
|
16550
|
+
threshold: 1,
|
|
16551
|
+
window_seconds: 60,
|
|
16552
|
+
// A legitimate tcpdump flaps it; do not re-alert for an hour.
|
|
16553
|
+
cooldown_seconds: 3600,
|
|
16554
|
+
tags: ["system", "network", "sniffing", "host-integrity"],
|
|
16555
|
+
remediation: {
|
|
16556
|
+
// Host integrity, no attacker address to ban — surface it, do not block.
|
|
16557
|
+
action: "alert",
|
|
16558
|
+
description: "Confirm whether a capture tool or new bridge is expected on this host"
|
|
16559
|
+
},
|
|
16560
|
+
enabled: true
|
|
16528
16561
|
}
|
|
16529
16562
|
];
|
|
16530
16563
|
|