@profullstack/threatcrush 0.2.1 → 0.3.0
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 -0
- package/dist/daemon.js +2821 -208
- package/dist/daemon.js.map +1 -1
- package/dist/index.js +4138 -590
- package/dist/index.js.map +1 -1
- package/dist/systemd/threatcrushd.service +10 -3
- package/package.json +6 -3
|
@@ -24,9 +24,16 @@ PrivateTmp=true
|
|
|
24
24
|
StandardOutput=journal
|
|
25
25
|
StandardError=journal
|
|
26
26
|
|
|
27
|
-
#
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
# Capabilities the daemon actually needs:
|
|
28
|
+
# CAP_NET_RAW / CAP_NET_ADMIN — raw packet capture for network-monitor module
|
|
29
|
+
# CAP_DAC_READ_SEARCH — read mode-640 logs (auth.log, syslog, nginx) the
|
|
30
|
+
# daemon doesn't own without falling back to mode 666
|
|
31
|
+
# CAP_DAC_OVERRIDE — same idea for the rare write that needs it
|
|
32
|
+
# CAP_CHOWN — chgrp the IPC socket to `adm` so non-root
|
|
33
|
+
# users in that group can talk to the daemon
|
|
34
|
+
AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_CHOWN
|
|
35
|
+
CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_CHOWN
|
|
36
|
+
|
|
30
37
|
|
|
31
38
|
[Install]
|
|
32
39
|
WantedBy=multi-user.target
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@profullstack/threatcrush",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "All-in-one security agent daemon — monitor, detect, scan, and protect servers in real-time",
|
|
5
5
|
"bin": {
|
|
6
6
|
"threatcrush": "./dist/index.js"
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsup",
|
|
13
13
|
"dev": "tsup --watch",
|
|
14
|
-
"start": "node dist/index.js"
|
|
14
|
+
"start": "node dist/index.js",
|
|
15
|
+
"test": "vitest run",
|
|
16
|
+
"test:watch": "vitest"
|
|
15
17
|
},
|
|
16
18
|
"keywords": [
|
|
17
19
|
"security",
|
|
@@ -52,7 +54,8 @@
|
|
|
52
54
|
"@types/nodemailer": "^6.4.17",
|
|
53
55
|
"@types/react": "^18.3.12",
|
|
54
56
|
"tsup": "^8.5.1",
|
|
55
|
-
"typescript": "^5.9.3"
|
|
57
|
+
"typescript": "^5.9.3",
|
|
58
|
+
"vitest": "^3.0.0"
|
|
56
59
|
},
|
|
57
60
|
"repository": {
|
|
58
61
|
"type": "git",
|