@profullstack/threatcrush 0.13.59 → 0.13.60
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 +7 -1
- package/dist/daemon.js +346 -242
- package/dist/daemon.js.map +1 -1
- package/dist/index.js +488 -366
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -219,7 +219,9 @@ A running daemon picks up `link` and `unlink` within a minute; no restart. It th
|
|
|
219
219
|
- sends a heartbeat every 60 s with its version and hostname;
|
|
220
220
|
- runs the `threatcrush harden` checks and `threatcrush patches` a minute after it starts and every 24 h, and uploads the findings (both commands upload too; `--no-upload` skips it);
|
|
221
221
|
- every 15 s, picks up blocks and unblocks queued on the dashboard and applies them through auto-defence, so protected and allowlisted addresses and dry-run apply as they do locally;
|
|
222
|
-
- every 5 min, adds the organization's IP/CIDR allowlist to the never-block set.
|
|
222
|
+
- every 5 min, adds the organization's IP/CIDR allowlist to the never-block set (an entry wider than /8 for IPv4 or /16 for IPv6 is ignored, and the dashboard can never remove a built-in, shared-infrastructure or locally configured protected address).
|
|
223
|
+
|
|
224
|
+
What the dashboard can make a daemon do is limited to block, unblock, allowlist add/remove, restart, and "update now" (which installs the newest `@profullstack/threatcrush` from the npm registry; the dashboard never supplies a version, URL or command). Property scans and pentests queued on the dashboard run on a machine only when its operator opts in, and then only for the linked organization:
|
|
223
225
|
|
|
224
226
|
Uploads never hold up detection or a ban. While the dashboard is unreachable, events wait in a spool (`/var/lib/threatcrush/cloud-spool.jsonl`, or `~/.threatcrush/state/` for a user daemon) of at most 10,000 events / 20 MB, oldest dropped first, which survives a restart and is sent when the dashboard answers again. The daemon uses the login of the user it runs as (`/root/.threatcrush/config.json` for the system service) and refreshes the session itself; if the refresh token is refused, it logs that `threatcrush login` is needed and keeps spooling.
|
|
225
227
|
|
|
@@ -227,8 +229,12 @@ Uploads never hold up detection or a ban. While the dashboard is unreachable, ev
|
|
|
227
229
|
[cloud]
|
|
228
230
|
enabled = true # false: the daemon neither reports to nor takes actions from the dashboard
|
|
229
231
|
min_severity = "medium" # info | low | medium | high | critical
|
|
232
|
+
runs = false # true: run property scans/pentests queued on the dashboard here
|
|
233
|
+
run_scan_paths = [] # the only directories a dashboard scan may read; empty refuses scans
|
|
230
234
|
```
|
|
231
235
|
|
|
236
|
+
Pentests from the dashboard only reach public addresses: a target that resolves to loopback, a private range or link-local (cloud metadata) is refused.
|
|
237
|
+
|
|
232
238
|
### Every machine, with what it costs
|
|
233
239
|
|
|
234
240
|
The Fleet panel lists linked daemons. To also list the machines that do not run one, and what each box costs a month, upload an [OpenDevice](https://logicsrc.com/docs/opendevice) inventory (org owners and admins):
|