@profullstack/threatcrush 0.13.69 → 0.13.70
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/dist/daemon.js +47 -33
- package/dist/daemon.js.map +1 -1
- package/dist/index.js +168 -154
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/daemon.js
CHANGED
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
mod
|
|
31
31
|
));
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/parser.js
|
|
34
34
|
var require_parser = __commonJS({
|
|
35
|
-
"
|
|
35
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/parser.js"(exports2, module2) {
|
|
36
36
|
"use strict";
|
|
37
37
|
var ParserEND = 1114112;
|
|
38
38
|
var ParserError = class _ParserError extends Error {
|
|
@@ -155,9 +155,9 @@ var require_parser = __commonJS({
|
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
|
|
158
|
-
//
|
|
158
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime.js
|
|
159
159
|
var require_create_datetime = __commonJS({
|
|
160
|
-
"
|
|
160
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime.js"(exports2, module2) {
|
|
161
161
|
"use strict";
|
|
162
162
|
module2.exports = (value) => {
|
|
163
163
|
const date = new Date(value);
|
|
@@ -170,9 +170,9 @@ var require_create_datetime = __commonJS({
|
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
//
|
|
173
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/format-num.js
|
|
174
174
|
var require_format_num = __commonJS({
|
|
175
|
-
"
|
|
175
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/format-num.js"(exports2, module2) {
|
|
176
176
|
"use strict";
|
|
177
177
|
module2.exports = (d, num) => {
|
|
178
178
|
num = String(num);
|
|
@@ -182,9 +182,9 @@ var require_format_num = __commonJS({
|
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
|
|
185
|
-
//
|
|
185
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime-float.js
|
|
186
186
|
var require_create_datetime_float = __commonJS({
|
|
187
|
-
"
|
|
187
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime-float.js"(exports2, module2) {
|
|
188
188
|
"use strict";
|
|
189
189
|
var f = require_format_num();
|
|
190
190
|
var FloatingDateTime = class extends Date {
|
|
@@ -209,9 +209,9 @@ var require_create_datetime_float = __commonJS({
|
|
|
209
209
|
}
|
|
210
210
|
});
|
|
211
211
|
|
|
212
|
-
//
|
|
212
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-date.js
|
|
213
213
|
var require_create_date = __commonJS({
|
|
214
|
-
"
|
|
214
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-date.js"(exports2, module2) {
|
|
215
215
|
"use strict";
|
|
216
216
|
var f = require_format_num();
|
|
217
217
|
var DateTime = global.Date;
|
|
@@ -235,9 +235,9 @@ var require_create_date = __commonJS({
|
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
237
|
|
|
238
|
-
//
|
|
238
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-time.js
|
|
239
239
|
var require_create_time = __commonJS({
|
|
240
|
-
"
|
|
240
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-time.js"(exports2, module2) {
|
|
241
241
|
"use strict";
|
|
242
242
|
var f = require_format_num();
|
|
243
243
|
var Time = class extends Date {
|
|
@@ -260,9 +260,9 @@ var require_create_time = __commonJS({
|
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
262
|
|
|
263
|
-
//
|
|
263
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/toml-parser.js
|
|
264
264
|
var require_toml_parser = __commonJS({
|
|
265
|
-
"
|
|
265
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/toml-parser.js"(exports, module) {
|
|
266
266
|
"use strict";
|
|
267
267
|
module.exports = makeParserClass(require_parser());
|
|
268
268
|
module.exports.makeParserClass = makeParserClass;
|
|
@@ -1573,9 +1573,9 @@ var require_toml_parser = __commonJS({
|
|
|
1573
1573
|
}
|
|
1574
1574
|
});
|
|
1575
1575
|
|
|
1576
|
-
//
|
|
1576
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-pretty-error.js
|
|
1577
1577
|
var require_parse_pretty_error = __commonJS({
|
|
1578
|
-
"
|
|
1578
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-pretty-error.js"(exports2, module2) {
|
|
1579
1579
|
"use strict";
|
|
1580
1580
|
module2.exports = prettyError;
|
|
1581
1581
|
function prettyError(err, buf) {
|
|
@@ -1609,9 +1609,9 @@ var require_parse_pretty_error = __commonJS({
|
|
|
1609
1609
|
}
|
|
1610
1610
|
});
|
|
1611
1611
|
|
|
1612
|
-
//
|
|
1612
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-string.js
|
|
1613
1613
|
var require_parse_string = __commonJS({
|
|
1614
|
-
"
|
|
1614
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-string.js"(exports2, module2) {
|
|
1615
1615
|
"use strict";
|
|
1616
1616
|
module2.exports = parseString;
|
|
1617
1617
|
var TOMLParser = require_toml_parser();
|
|
@@ -1631,9 +1631,9 @@ var require_parse_string = __commonJS({
|
|
|
1631
1631
|
}
|
|
1632
1632
|
});
|
|
1633
1633
|
|
|
1634
|
-
//
|
|
1634
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-async.js
|
|
1635
1635
|
var require_parse_async = __commonJS({
|
|
1636
|
-
"
|
|
1636
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-async.js"(exports2, module2) {
|
|
1637
1637
|
"use strict";
|
|
1638
1638
|
module2.exports = parseAsync;
|
|
1639
1639
|
var TOMLParser = require_toml_parser();
|
|
@@ -1665,9 +1665,9 @@ var require_parse_async = __commonJS({
|
|
|
1665
1665
|
}
|
|
1666
1666
|
});
|
|
1667
1667
|
|
|
1668
|
-
//
|
|
1668
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-stream.js
|
|
1669
1669
|
var require_parse_stream = __commonJS({
|
|
1670
|
-
"
|
|
1670
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-stream.js"(exports2, module2) {
|
|
1671
1671
|
"use strict";
|
|
1672
1672
|
module2.exports = parseStream;
|
|
1673
1673
|
var stream = require("stream");
|
|
@@ -1744,9 +1744,9 @@ var require_parse_stream = __commonJS({
|
|
|
1744
1744
|
}
|
|
1745
1745
|
});
|
|
1746
1746
|
|
|
1747
|
-
//
|
|
1747
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse.js
|
|
1748
1748
|
var require_parse = __commonJS({
|
|
1749
|
-
"
|
|
1749
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse.js"(exports2, module2) {
|
|
1750
1750
|
"use strict";
|
|
1751
1751
|
module2.exports = require_parse_string();
|
|
1752
1752
|
module2.exports.async = require_parse_async();
|
|
@@ -1755,9 +1755,9 @@ var require_parse = __commonJS({
|
|
|
1755
1755
|
}
|
|
1756
1756
|
});
|
|
1757
1757
|
|
|
1758
|
-
//
|
|
1758
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/stringify.js
|
|
1759
1759
|
var require_stringify = __commonJS({
|
|
1760
|
-
"
|
|
1760
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/stringify.js"(exports2, module2) {
|
|
1761
1761
|
"use strict";
|
|
1762
1762
|
module2.exports = stringify;
|
|
1763
1763
|
module2.exports.value = stringifyInline;
|
|
@@ -2016,9 +2016,9 @@ var require_stringify = __commonJS({
|
|
|
2016
2016
|
}
|
|
2017
2017
|
});
|
|
2018
2018
|
|
|
2019
|
-
//
|
|
2019
|
+
// ../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/toml.js
|
|
2020
2020
|
var require_toml = __commonJS({
|
|
2021
|
-
"
|
|
2021
|
+
"../../../../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/toml.js"(exports2) {
|
|
2022
2022
|
"use strict";
|
|
2023
2023
|
exports2.parse = require_parse();
|
|
2024
2024
|
exports2.stringify = require_stringify();
|
|
@@ -10432,6 +10432,12 @@ var DEFAULT_PROTECTED = [
|
|
|
10432
10432
|
"172.16.0.0/12",
|
|
10433
10433
|
"192.168.0.0/16",
|
|
10434
10434
|
"169.254.0.0/16",
|
|
10435
|
+
// RFC 6598 shared address space. Never routed on the public internet, so a
|
|
10436
|
+
// source here is a tailnet peer (Tailscale hands out 100.64.0.0/10) or the
|
|
10437
|
+
// carrier's own NAT, not an attacker. 2026-11-02: dev3's port-scan detector
|
|
10438
|
+
// banned a Tailscale peer four times for dialling several c0mpute ports.
|
|
10439
|
+
// Tailscale's IPv6 range (fd7a:115c:a1e0::/48) is already inside fc00::/7.
|
|
10440
|
+
"100.64.0.0/10",
|
|
10435
10441
|
"fc00::/7",
|
|
10436
10442
|
"fe80::/10"
|
|
10437
10443
|
];
|
|
@@ -12009,7 +12015,7 @@ function findingEvents(serverId, results, observedAt = /* @__PURE__ */ new Date(
|
|
|
12009
12015
|
var import_node_fs19 = require("fs");
|
|
12010
12016
|
var import_node_path13 = require("path");
|
|
12011
12017
|
|
|
12012
|
-
//
|
|
12018
|
+
// ../../../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/utilities.js
|
|
12013
12019
|
function stringReplaceAll(string, substring, postfix) {
|
|
12014
12020
|
let index = string.indexOf(substring);
|
|
12015
12021
|
if (index === -1) {
|
|
@@ -12039,7 +12045,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
|
12039
12045
|
return returnValue;
|
|
12040
12046
|
}
|
|
12041
12047
|
|
|
12042
|
-
//
|
|
12048
|
+
// ../../../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
12043
12049
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
12044
12050
|
var ANSI_UNDERLINE_OFFSET = 20;
|
|
12045
12051
|
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
@@ -12261,7 +12267,7 @@ function assembleStyles() {
|
|
|
12261
12267
|
var ansiStyles = assembleStyles();
|
|
12262
12268
|
var ansi_styles_default = ansiStyles;
|
|
12263
12269
|
|
|
12264
|
-
//
|
|
12270
|
+
// ../../../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/vendor/supports-color/index.js
|
|
12265
12271
|
var import_node_process = __toESM(require("process"), 1);
|
|
12266
12272
|
var import_node_os4 = __toESM(require("os"), 1);
|
|
12267
12273
|
var import_node_tty = __toESM(require("tty"), 1);
|
|
@@ -12403,7 +12409,7 @@ var supportsColor = {
|
|
|
12403
12409
|
};
|
|
12404
12410
|
var supports_color_default = supportsColor;
|
|
12405
12411
|
|
|
12406
|
-
//
|
|
12412
|
+
// ../../../../../node_modules/.pnpm/chalk@6.0.1/node_modules/chalk/source/index.js
|
|
12407
12413
|
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
12408
12414
|
var GENERATOR = /* @__PURE__ */ Symbol("GENERATOR");
|
|
12409
12415
|
var STYLER = /* @__PURE__ */ Symbol("STYLER");
|
|
@@ -20644,7 +20650,15 @@ var DEFAULT_RULES = [
|
|
|
20644
20650
|
operator: "regex",
|
|
20645
20651
|
// Attempts only. Matching `accepted` here meant a successful root login
|
|
20646
20652
|
// banned the administrator who had just made it.
|
|
20647
|
-
|
|
20653
|
+
//
|
|
20654
|
+
// Anchored to the start of an sshd failure ("Failed SSH login for root
|
|
20655
|
+
// from …" from classifySshAuth, or a raw "[sshd] Failed password for
|
|
20656
|
+
// root …" journal line). Unanchored, `failed.*\broot\b` matched any auth
|
|
20657
|
+
// event that said "failed" anywhere before "root": privilege-watch logs
|
|
20658
|
+
// every sudo as "sudo: <user> ran <command> as root", so a backup script
|
|
20659
|
+
// whose text read "the copy failed its integrity check" paged a
|
|
20660
|
+
// high-severity "Root SSH Login Attempt" against the admin's own account.
|
|
20661
|
+
value: "^(?:\\[[^\\]]*\\] )?failed (?:ssh login|password|publickey|keyboard-interactive\\S*|none) for (?:invalid user )?root\\b"
|
|
20648
20662
|
},
|
|
20649
20663
|
threshold: 1,
|
|
20650
20664
|
window_seconds: 60,
|