@profullstack/threatcrush 0.13.50 → 0.13.51
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 +2 -2
- package/dist/daemon.js +105 -0
- package/dist/daemon.js.map +1 -1
- package/dist/index.js +105 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29242,6 +29242,74 @@ var THREATCRUSH_RULES = [
|
|
|
29242
29242
|
"flags": "i",
|
|
29243
29243
|
"negated": false
|
|
29244
29244
|
}
|
|
29245
|
+
},
|
|
29246
|
+
{
|
|
29247
|
+
"id": 10002,
|
|
29248
|
+
"msg": "PHPUnit eval-stdin.php remote code execution probe (CVE-2017-9841)",
|
|
29249
|
+
"severity": "CRITICAL",
|
|
29250
|
+
"tags": [
|
|
29251
|
+
"attack-rce",
|
|
29252
|
+
"threatcrush",
|
|
29253
|
+
"cve-2017-9841"
|
|
29254
|
+
],
|
|
29255
|
+
"targets": [
|
|
29256
|
+
"REQUEST_FILENAME"
|
|
29257
|
+
],
|
|
29258
|
+
"transforms": [
|
|
29259
|
+
"utf8toUnicode",
|
|
29260
|
+
"urlDecodeUni",
|
|
29261
|
+
"normalizePathWin"
|
|
29262
|
+
],
|
|
29263
|
+
"op": {
|
|
29264
|
+
"type": "rx",
|
|
29265
|
+
"source": "/src/util/php/eval-stdin\\.php",
|
|
29266
|
+
"flags": "i",
|
|
29267
|
+
"negated": false
|
|
29268
|
+
}
|
|
29269
|
+
},
|
|
29270
|
+
{
|
|
29271
|
+
"id": 10003,
|
|
29272
|
+
"msg": "ThinkPHP namespace routing remote code execution probe",
|
|
29273
|
+
"severity": "CRITICAL",
|
|
29274
|
+
"tags": [
|
|
29275
|
+
"attack-rce",
|
|
29276
|
+
"threatcrush",
|
|
29277
|
+
"cve-2022-47945"
|
|
29278
|
+
],
|
|
29279
|
+
"targets": [
|
|
29280
|
+
"ARGS"
|
|
29281
|
+
],
|
|
29282
|
+
"transforms": [
|
|
29283
|
+
"urlDecodeUni"
|
|
29284
|
+
],
|
|
29285
|
+
"op": {
|
|
29286
|
+
"type": "rx",
|
|
29287
|
+
"source": "\\\\think\\\\(?:app|container|request|module|template\\\\driver\\\\file)\\b",
|
|
29288
|
+
"flags": "i",
|
|
29289
|
+
"negated": false
|
|
29290
|
+
}
|
|
29291
|
+
},
|
|
29292
|
+
{
|
|
29293
|
+
"id": 10004,
|
|
29294
|
+
"msg": "XWiki macro injection remote code execution probe (CVE-2025-24893)",
|
|
29295
|
+
"severity": "CRITICAL",
|
|
29296
|
+
"tags": [
|
|
29297
|
+
"attack-rce",
|
|
29298
|
+
"threatcrush",
|
|
29299
|
+
"cve-2025-24893"
|
|
29300
|
+
],
|
|
29301
|
+
"targets": [
|
|
29302
|
+
"ARGS"
|
|
29303
|
+
],
|
|
29304
|
+
"transforms": [
|
|
29305
|
+
"urlDecodeUni"
|
|
29306
|
+
],
|
|
29307
|
+
"op": {
|
|
29308
|
+
"type": "rx",
|
|
29309
|
+
"source": "\\{\\{\\s*(?:groovy|python|async|velocity)\\b",
|
|
29310
|
+
"flags": "i",
|
|
29311
|
+
"negated": false
|
|
29312
|
+
}
|
|
29245
29313
|
}
|
|
29246
29314
|
];
|
|
29247
29315
|
|
|
@@ -35713,6 +35781,43 @@ var CODE_RULES = [
|
|
|
35713
35781
|
languages: ["javascript", "typescript"],
|
|
35714
35782
|
pattern: /\[\s*['"]__proto__['"]\s*\]|\bObject\s*\.\s*assign\s*\(\s*[\w.$]*\.prototype\b|\.\s*__proto__\s*=/
|
|
35715
35783
|
},
|
|
35784
|
+
// ── GitHub Actions ───────────────────────────────────────────────────────
|
|
35785
|
+
//
|
|
35786
|
+
// A workflow runs with the repository's secrets on every push, so writing one
|
|
35787
|
+
// is the shortest path from "can commit" to "has every credential". In
|
|
35788
|
+
// October 2026 a public repository's hidden instructions got ChatGPT's GitHub
|
|
35789
|
+
// connector to commit exactly that into a victim's private repository; the
|
|
35790
|
+
// same file arrives by a compromised maintainer token or a careless merge.
|
|
35791
|
+
// Both rules look for the exfiltration itself, not for secrets being used:
|
|
35792
|
+
// `Authorization: Bearer ${{ secrets.X }}` to the API it belongs to is the
|
|
35793
|
+
// whole point of a secret and stays silent.
|
|
35794
|
+
{
|
|
35795
|
+
id: "gha-all-secrets-serialized",
|
|
35796
|
+
inherent: true,
|
|
35797
|
+
title: "every repository secret serialised into one value",
|
|
35798
|
+
consequence: "toJSON(secrets) is the full secret store as one string. Whatever step receives it can send every credential the repository holds anywhere it likes, and the runner masks it in logs, so nobody sees it leave.",
|
|
35799
|
+
cwe: "CWE-200",
|
|
35800
|
+
severity: "high",
|
|
35801
|
+
languages: ["config"],
|
|
35802
|
+
pattern: /\btoJSON\s*\(\s*secrets\s*\)/,
|
|
35803
|
+
fileRequires: /^\s*runs-on\s*:/m,
|
|
35804
|
+
guard: false
|
|
35805
|
+
},
|
|
35806
|
+
{
|
|
35807
|
+
id: "gha-secret-to-collector",
|
|
35808
|
+
inherent: true,
|
|
35809
|
+
title: "workflow sends secrets to a request-capture service",
|
|
35810
|
+
consequence: "The step posts repository secrets to a public request catcher, which is how stolen CI credentials are collected. Treat every secret the workflow can read as leaked and rotate it.",
|
|
35811
|
+
cwe: "CWE-200",
|
|
35812
|
+
severity: "critical",
|
|
35813
|
+
languages: ["config"],
|
|
35814
|
+
pattern: /\b(?:webhook\.site|requestbin\.(?:com|net)|[\w-]+\.m\.pipedream\.net|pipedream\.net|[\w-]+\.(?:ngrok(?:-free)?\.(?:io|app|dev)|trycloudflare\.com)|[\w-]+\.(?:oast\.(?:fun|live|me|online|pro|site)|interact\.sh|burpcollaborator\.net)|beeceptor\.com|hookbin\.com|requestcatcher\.com)\b/i,
|
|
35815
|
+
requires: /\$\{\{\s*(?:toJSON\s*\(\s*)?secrets\b/,
|
|
35816
|
+
fileRequires: /^\s*runs-on\s*:/m,
|
|
35817
|
+
guard: false,
|
|
35818
|
+
guardBack: 12,
|
|
35819
|
+
guardForward: 4
|
|
35820
|
+
},
|
|
35716
35821
|
// ── Shell ────────────────────────────────────────────────────────────────
|
|
35717
35822
|
//
|
|
35718
35823
|
// `shell` was a language the type system knew about and no rule targeted, so
|