flagrix 0.1.4 → 0.2.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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "2026.07.12.003",
3
- "lastUpdated": "2026-07-13T18:56:08.001Z",
2
+ "version": "2026.10.19.001",
3
+ "lastUpdated": "2026-10-19T19:29:18.424Z",
4
4
  "maliciousPackages": [
5
5
  {
6
6
  "name": "beavertail",
@@ -14,12 +14,6 @@
14
14
  "source": "lazarus",
15
15
  "description": "Python-based data exfiltration malware from Lazarus Group — steals browser data, files, SSH keys"
16
16
  },
17
- {
18
- "name": "call-bind-apply-helpers",
19
- "severity": "critical",
20
- "source": "lazarus",
21
- "description": "Typosquat with BeaverTail malware payload — mimics legitimate npm utility"
22
- },
23
17
  {
24
18
  "name": "cors-parser",
25
19
  "severity": "critical",
@@ -234,6 +228,39 @@
234
228
  "source": "openssf-osv",
235
229
  "description": "Confirmed malicious npm package (MAL-2025-3985)"
236
230
  },
231
+ {
232
+ "name": "tensorlake",
233
+ "severity": "critical",
234
+ "source": "shai-hulud",
235
+ "version": "0.5.144",
236
+ "description": "Compromised release (Oct 8, 2026). preinstall runs lib/setup.mjs, which fetches Bun and runs Math_Symbol.js — Shai-Hulud stealer/worm with a gh-token-monitor wiper. 0.5.143 is clean.\n"
237
+ },
238
+ {
239
+ "name": "jsonwebauth",
240
+ "severity": "critical",
241
+ "source": "lazarus",
242
+ "description": "Contagious Interview package (published Jan 8, 2026); lib/lserver.js loader used by fake-assessment repos"
243
+ },
244
+ {
245
+ "name": "transform-jsbi-to-bigint",
246
+ "severity": "critical",
247
+ "source": "phantomraven",
248
+ "version": "9.9.0",
249
+ "description": "PhantomRaven remote-dynamic-dependency wave (Sept 2026); preinstall credential/CI-variable theft"
250
+ },
251
+ {
252
+ "name": "sort-imports-es6-autofix",
253
+ "severity": "critical",
254
+ "source": "phantomraven",
255
+ "description": "PhantomRaven RDD wave (Sept 2026); no safe release — now a 0.0.1-security placeholder"
256
+ },
257
+ {
258
+ "name": "@aifabrix/miso-client",
259
+ "severity": "critical",
260
+ "source": "glassworm",
261
+ "version": "4.7.2",
262
+ "description": "GlassWorm invisible-Unicode payload (Mar 12, 2026)"
263
+ },
237
264
  {
238
265
  "name": "colourama",
239
266
  "severity": "high",
@@ -375,7 +402,7 @@
375
402
  {
376
403
  "id": "CREDENTIAL_THEFT",
377
404
  "name": "Browser Credential Theft",
378
- "pattern": "chrome.*Login Data|firefox.*logins\\.json|find-generic-password|find-internet-password|dump-keychain",
405
+ "pattern": "chrome[^\\n]{0,200}Login Data|firefox[^\\n]{0,200}logins\\.json|find-generic-password|find-internet-password|dump-keychain",
379
406
  "description": "Reads browser password databases (Chrome Login Data, Firefox logins.json) or dumps the macOS Keychain via the security(1) command",
380
407
  "tags": [
381
408
  "credentials",
@@ -492,8 +519,8 @@
492
519
  {
493
520
  "id": "HARDCODED_GITHUB_TOKEN",
494
521
  "name": "Hardcoded GitHub Token",
495
- "pattern": "ghp_[a-zA-Z0-9]{36}|gho_[a-zA-Z0-9]{36}",
496
- "description": "GitHub Personal Access Token (ghp_) or OAuth token (gho_) in source code",
522
+ "pattern": "\\b(?:gh[pousr]_[A-Za-z0-9]{36}|github_pat_[A-Za-z0-9_]{82})\\b",
523
+ "description": "GitHub token (classic/fine-grained PAT, OAuth, user-to-server, server-to-server, refresh) in source code",
497
524
  "tags": [
498
525
  "secrets",
499
526
  "github",
@@ -512,8 +539,12 @@
512
539
  ".php",
513
540
  ".go",
514
541
  ".sh",
542
+ ".ps1",
543
+ ".psm1",
544
+ ".json",
515
545
  ".yaml",
516
- ".yml"
546
+ ".yml",
547
+ ".env"
517
548
  ]
518
549
  },
519
550
  {
@@ -621,8 +652,8 @@
621
652
  {
622
653
  "id": "NETWORK_TELEGRAM_TOKEN",
623
654
  "name": "Telegram Bot Token",
624
- "pattern": "\\d{8,10}:[a-zA-Z0-9_-]{35}",
625
- "description": "Hardcoded Telegram bot token — used for covert command & control",
655
+ "pattern": "\\b\\d{8,10}:AA[A-Za-z0-9_-]{33}\\b|api\\.telegram\\.org\\/bot",
656
+ "description": "Hardcoded Telegram bot token or Bot API URL — used for covert command & control and exfiltration",
626
657
  "tags": [
627
658
  "network",
628
659
  "telegram",
@@ -640,14 +671,16 @@
640
671
  ".rb",
641
672
  ".php",
642
673
  ".go",
643
- ".sh"
674
+ ".sh",
675
+ ".ps1",
676
+ ".psm1"
644
677
  ]
645
678
  },
646
679
  {
647
680
  "id": "NETWORK_PASTEBIN",
648
681
  "name": "Pastebin URL",
649
- "pattern": "(?:pastebin\\.com|hastebin\\.com|paste\\.ee)\\/[a-zA-Z0-9]+",
650
- "description": "Pastebin/hastebin URL — often used to host second-stage payloads",
682
+ "pattern": "(?<![\\w-])(?:www\\.)?(?:pastebin\\.com|hastebin\\.com|paste\\.ee|rentry\\.(?:co|org)|paste\\.rs|jsonkeeper\\.com|jsonsilo\\.com|api\\.npoint\\.io|(?:api\\.)?jsonbin\\.io)\\/[a-zA-Z0-9]+",
683
+ "description": "Paste / JSON-storage URL (pastebin, rentry, jsonkeeper, jsonsilo, npoint, jsonbin) — often hosts second-stage payloads",
651
684
  "tags": [
652
685
  "network",
653
686
  "pastebin",
@@ -667,13 +700,14 @@
667
700
  ".go",
668
701
  ".sh",
669
702
  ".ps1",
670
- ".psm1"
703
+ ".psm1",
704
+ ".json"
671
705
  ]
672
706
  },
673
707
  {
674
708
  "id": "NETWORK_URL_SHORTENER",
675
709
  "name": "URL Shortener in Code",
676
- "pattern": "(?:bit\\.ly|tinyurl\\.com|t\\.co)\\/[a-zA-Z0-9]+",
710
+ "pattern": "(?<![\\w.-])(?:bit\\.ly|tinyurl\\.com|t\\.co|short\\.gy|is\\.gd|cutt\\.ly|rebrand\\.ly|shorturl\\.at|tiny\\.cc|rb\\.gy|t\\.ly)\\/[a-zA-Z0-9]+",
677
711
  "description": "Shortened URLs (bit.ly, tinyurl) in source code — obfuscates actual destination",
678
712
  "tags": [
679
713
  "network",
@@ -692,20 +726,24 @@
692
726
  ".rb",
693
727
  ".php",
694
728
  ".go",
695
- ".sh"
729
+ ".sh",
730
+ ".ps1",
731
+ ".psm1",
732
+ ".json"
696
733
  ]
697
734
  },
698
735
  {
699
736
  "id": "NETWORK_SUSPICIOUS_TLD",
700
737
  "name": "Suspicious Domain TLD",
701
- "pattern": "https?:\\/\\/[a-zA-Z0-9-]+\\.(?:tk|ml|ga|cf|gq|onion|xyz)(?:\\/|$)",
702
- "description": "URLs using free/anonymous TLDs (.tk, .ml, .ga, .cf, .gq, .onion, .xyz) — associated with malware hosting",
738
+ "pattern": "https?:\\/\\/(?:[a-zA-Z0-9-]+\\.)+(?:tk|ml|ga|cf|gq|onion|xyz|top|icu|cfd|sbs|cyou|buzz|rest|zip|mov)(?=[\\/:?#\"'\\x60\\s)]|$)",
739
+ "description": "URLs on free/abused TLDs (.tk .ml .ga .cf .gq .onion .xyz .top .icu .cfd .sbs .cyou .buzz .rest .zip .mov)",
703
740
  "tags": [
704
741
  "network",
705
742
  "suspicious-domain",
706
743
  "malware-hosting"
707
744
  ],
708
- "severity": "high",
745
+ "severity": "medium",
746
+ "confidence": "medium",
709
747
  "fileExtensions": [
710
748
  ".js",
711
749
  ".jsx",
@@ -719,14 +757,15 @@
719
757
  ".go",
720
758
  ".sh",
721
759
  ".ps1",
722
- ".psm1"
760
+ ".psm1",
761
+ ".json"
723
762
  ]
724
763
  },
725
764
  {
726
765
  "id": "NETWORK_NGROK_TUNNEL",
727
766
  "name": "Ngrok Tunnel URL",
728
- "pattern": "https?:\\/\\/[a-zA-Z0-9-]+\\.ngrok\\.io",
729
- "description": "Ngrok tunnel URL in code — used to expose local servers, often for C2",
767
+ "pattern": "https?:\\/\\/[a-zA-Z0-9-]+\\.(?:ngrok(?:-free)?\\.(?:io|app|dev)|trycloudflare\\.com|loca\\.lt|serveo\\.net|pinggy\\.(?:io|link)|lhr\\.life)",
768
+ "description": "Tunnel service URL (ngrok, Cloudflare quick tunnels, localtunnel, serveo, pinggy) — exposes C2 behind a throwaway host",
730
769
  "tags": [
731
770
  "network",
732
771
  "ngrok",
@@ -744,7 +783,10 @@
744
783
  ".rb",
745
784
  ".php",
746
785
  ".go",
747
- ".sh"
786
+ ".sh",
787
+ ".ps1",
788
+ ".psm1",
789
+ ".json"
748
790
  ]
749
791
  },
750
792
  {
@@ -960,17 +1002,220 @@
960
1002
  ]
961
1003
  },
962
1004
  {
963
- "id": "OBF_BASE64_HEAVY",
964
- "name": "Heavy Base64 Encoding",
965
- "pattern": "[A-Za-z0-9+/]{50,}={0,2}",
966
- "description": "6+ base64 strings of 50+ chars in a single file. Base64 is a legitimate encoding, but excessive use in source code is a red flag — it's the most common way to hide malicious payloads, C2 URLs, and commands from static analysis.\n",
1005
+ "id": "SUPPLY_CHAIN_INSTALL_HOOK_DOWNLOADER",
1006
+ "name": "Install Hook Downloads or Executes Remote Code",
1007
+ "pattern": "\"(?:pre|post)?install\"\\s*:\\s*\"(?:[^\"\\\\]|\\\\.){0,300}?(?:\\bcurl\\b|\\bwget\\b|\\biwr\\b|Invoke-WebRequest|\\bnode\\s+-e\\b(?:[^\"\\\\]|\\\\.){0,300}?(?:https?:|require\\(\\\\?['\"](?:https?|child_process)|eval\\(|Function\\()|\\|\\s*(?:ba|z)?sh\\b|powershell)",
1008
+ "description": "npm install hook that downloads (curl/wget/iwr), pipes into a shell, or runs `node -e` with network or exec code. Complements scanner-core's built-in postinstall check (which only looks for curl/wget/http/fetch/eval/exec substrings).\n",
967
1009
  "tags": [
968
- "base64",
969
- "obfuscation"
1010
+ "supply-chain",
1011
+ "install-script",
1012
+ "download"
1013
+ ],
1014
+ "severity": "critical",
1015
+ "confidence": "medium",
1016
+ "fileExtensions": [
1017
+ ".json"
1018
+ ],
1019
+ "fileNames": [
1020
+ "package.json"
1021
+ ]
1022
+ },
1023
+ {
1024
+ "id": "SUPPLY_CHAIN_PREINSTALL_SETUP_DROPPER",
1025
+ "name": "Shai-Hulud style preinstall dropper",
1026
+ "pattern": "\"preinstall\"\\s*:\\s*\"(?:node|bun)\\s+(?:[\\w./-]*\\/)?(?:setup|setup_bun)\\.m?js\"",
1027
+ "description": "CHAINDROP (keyv, Aug 2026) and Tensorlake (Oct 2026) add `preinstall: node setup.mjs`, which downloads Bun and runs Math_Symbol.js.\n",
1028
+ "tags": [
1029
+ "supply-chain",
1030
+ "shai-hulud",
1031
+ "worm"
1032
+ ],
1033
+ "severity": "critical",
1034
+ "confidence": "high",
1035
+ "fileExtensions": [
1036
+ ".json"
1037
+ ],
1038
+ "fileNames": [
1039
+ "package.json"
1040
+ ]
1041
+ },
1042
+ {
1043
+ "id": "REVERSE_SHELL_UNIX",
1044
+ "name": "Reverse Shell (Python / shell idioms)",
1045
+ "pattern": "os\\.dup2\\(\\s*\\w+\\.fileno\\(\\)\\s*,\\s*[012]\\s*\\)|pty\\.spawn\\(\\s*['\"]\\/bin\\/(?:ba|z)?sh|\\/dev\\/tcp\\/[\\w.-]+\\/\\d+|\\bnc(?:at)?\\s+(?:-\\w+\\s+)*-e\\s+\\/bin\\/(?:ba|z)?sh|\\bbash\\s+-i\\s+>&",
1046
+ "description": "Upstream REVERSE_SHELL covers Node (net.Socket + child_process). This adds the Python dup2/pty and shell /dev/tcp, nc -e, bash -i forms used by InvisibleFerret-style payloads.\n",
1047
+ "tags": [
1048
+ "shell",
1049
+ "backdoor",
1050
+ "remote-access"
1051
+ ],
1052
+ "severity": "critical",
1053
+ "confidence": "high",
1054
+ "fileExtensions": [
1055
+ ".py",
1056
+ ".sh"
1057
+ ]
1058
+ },
1059
+ {
1060
+ "id": "VSCODE_TASK_AUTORUN",
1061
+ "name": "VS Code Task Runs on Folder Open",
1062
+ "pattern": "\"runOn\"\\s*:\\s*\"folderOpen\"",
1063
+ "description": "VS Code task that runs when the folder is opened. Legit repos auto-start watch tasks, so on its own this is a low-confidence review signal; the CONFIG_* rules flag the malicious forms.\n",
1064
+ "tags": [
1065
+ "vscode",
1066
+ "auto-exec",
1067
+ "contagious-interview"
1068
+ ],
1069
+ "severity": "medium",
1070
+ "confidence": "low",
1071
+ "fileExtensions": [
1072
+ ".json"
1073
+ ],
1074
+ "fileNames": [
1075
+ "tasks.json"
1076
+ ]
1077
+ },
1078
+ {
1079
+ "id": "VSCODE_AUTOMATIC_TASKS_ENABLED",
1080
+ "name": "Workspace Enables Automatic Tasks",
1081
+ "pattern": "\"task\\.allowAutomaticTasks\"\\s*:\\s*(?:true|\"on\")",
1082
+ "description": "Committed to suppress VS Code's 'allow automatic tasks' prompt (RMG-Py incident, Sept 2026).\n",
1083
+ "tags": [
1084
+ "vscode",
1085
+ "auto-exec",
1086
+ "contagious-interview"
1087
+ ],
1088
+ "severity": "high",
1089
+ "confidence": "medium",
1090
+ "fileExtensions": [
1091
+ ".json"
1092
+ ],
1093
+ "fileNames": [
1094
+ "settings.json"
1095
+ ]
1096
+ },
1097
+ {
1098
+ "id": "CONFIG_COMMAND_DOWNLOAD_EXEC",
1099
+ "name": "Config Command Pipes a Download into a Shell",
1100
+ "pattern": "\"command\"\\s*:\\s*\"(?:[^\"\\\\]|\\\\.){0,300}?(?:\\bcurl\\b|\\bwget\\b|\\biwr\\b|\\birm\\b|Invoke-WebRequest|Invoke-RestMethod)(?:[^\"\\\\]|\\\\.){0,300}?\\|\\s*(?:sudo\\s+)?(?:(?:ba|z)?sh|cmd|iex|powershell|pwsh)\\b",
1101
+ "description": "tasks.json / hook / MCP 'command' that does curl|wget|iwr ... | sh|bash|cmd|iex (Contagious Interview task files).\n",
1102
+ "tags": [
1103
+ "vscode",
1104
+ "auto-exec",
1105
+ "download",
1106
+ "contagious-interview"
1107
+ ],
1108
+ "severity": "critical",
1109
+ "confidence": "high",
1110
+ "fileExtensions": [
1111
+ ".json"
1112
+ ]
1113
+ },
1114
+ {
1115
+ "id": "CONFIG_NODE_RUNS_ASSET_FILE",
1116
+ "name": "Node Executes a Font/Image/Text File",
1117
+ "pattern": "\"command\"\\s*:\\s*\"node\\s+[^\"\\s]+\\.(?:woff2?|ttf|otf|eot|svg|png|jpe?g|gif|ico|webp|css|scss|dict|txt|md)\"|\"command\"\\s*:\\s*\"node\"\\s*,\\s*\"args\"\\s*:\\s*\\[\\s*\"[^\"]+\\.(?:woff2?|ttf|otf|eot|svg|png|jpe?g|gif|ico|webp|css|scss|dict|txt|md)\"",
1118
+ "description": "Task runs `node webfonts/fa-brands-regular.woff2`, `node src/assets/card4.jpeg`, `node .vscode/spellright.dict` — JS disguised as assets.\n",
1119
+ "tags": [
1120
+ "vscode",
1121
+ "auto-exec",
1122
+ "masquerade",
1123
+ "contagious-interview"
1124
+ ],
1125
+ "severity": "critical",
1126
+ "confidence": "high",
1127
+ "fileExtensions": [
1128
+ ".json"
1129
+ ]
1130
+ },
1131
+ {
1132
+ "id": "CONFIG_NODE_INLINE_FETCH_EXEC",
1133
+ "name": "Inline node -e Fetch-and-Execute in Config",
1134
+ "pattern": "node(?:\"\\s*,\\s*\"args\"\\s*:\\s*\\[\\s*\")?\\s*-e[\\s\",]+(?:[^\"\\\\]|\\\\.){0,600}?(?:require\\(\\\\?['\"]https?\\\\?['\"]\\)|fetch\\()(?:[^\"\\\\]|\\\\.){0,600}?(?:new Function|eval\\()",
1135
+ "description": "node -e variant: inline https.get of a JSON-store URL, then new Function(...) on the result.\n",
1136
+ "tags": [
1137
+ "vscode",
1138
+ "auto-exec",
1139
+ "contagious-interview"
1140
+ ],
1141
+ "severity": "critical",
1142
+ "confidence": "high",
1143
+ "fileExtensions": [
1144
+ ".json"
1145
+ ]
1146
+ },
1147
+ {
1148
+ "id": "AGENT_HOOK_SESSIONSTART_EXEC",
1149
+ "name": "Claude Code SessionStart Hook Runs a Script",
1150
+ "pattern": "\"SessionStart\"\\s*:\\s*\\[[\\s\\S]{0,600}?\"command\"\\s*:\\s*\"(?:[^\"\\\\]|\\\\.){0,200}?\\b(?:node|bun|deno|npx|curl|wget|python3?|powershell|pwsh)\\b",
1151
+ "description": "Committed Claude Code SessionStart hook that runs a script. Legit plugins do this too (review signal); the dot-dir dropper rule below is the high-confidence variant.\n",
1152
+ "tags": [
1153
+ "ai-agent",
1154
+ "claude-code",
1155
+ "auto-exec",
1156
+ "shai-hulud"
1157
+ ],
1158
+ "severity": "medium",
1159
+ "confidence": "low",
1160
+ "fileExtensions": [
1161
+ ".json"
1162
+ ],
1163
+ "fileNames": [
1164
+ "settings.json",
1165
+ "settings.local.json",
1166
+ "hooks.json"
1167
+ ]
1168
+ },
1169
+ {
1170
+ "id": "CONFIG_RUNS_DOTDIR_SCRIPT",
1171
+ "name": "Hook/Task Runs a Script Hidden in .claude or .vscode",
1172
+ "pattern": "\"command\"\\s*:\\s*\"(?:node|bun)\\s+\\.(?:claude|vscode|cursor)\\/[\\w.-]+\\.(?:m|c)?js\"",
1173
+ "description": "CHAINDROP and Tensorlake commit `node .claude/setup.mjs` / `node .vscode/setup.mjs` hooks to every branch they can write to.\n",
1174
+ "tags": [
1175
+ "ai-agent",
1176
+ "vscode",
1177
+ "auto-exec",
1178
+ "shai-hulud"
1179
+ ],
1180
+ "severity": "high",
1181
+ "confidence": "high",
1182
+ "fileExtensions": [
1183
+ ".json"
1184
+ ]
1185
+ },
1186
+ {
1187
+ "id": "MCP_CONFIG_SHELL_EXEC",
1188
+ "name": "Repo MCP Config Launches a Raw Shell",
1189
+ "pattern": "\"mcpServers\"\\s*:\\s*\\{[\\s\\S]{0,3000}?\"command\"\\s*:\\s*\"(?:sh|bash|zsh|cmd(?:\\.exe)?|powershell(?:\\.exe)?|pwsh|curl|wget)\"",
1190
+ "description": "Committed MCP server config (.mcp.json, .cursor/mcp.json, .amazonq/mcp.json) whose command is a shell/downloader. CVE-2026-12957 class.\n",
1191
+ "tags": [
1192
+ "ai-agent",
1193
+ "mcp",
1194
+ "auto-exec"
1195
+ ],
1196
+ "severity": "high",
1197
+ "confidence": "medium",
1198
+ "fileExtensions": [
1199
+ ".json"
1200
+ ],
1201
+ "fileNames": [
1202
+ "mcp.json",
1203
+ ".mcp.json",
1204
+ "settings.json"
1205
+ ]
1206
+ },
1207
+ {
1208
+ "id": "AI_AGENT_PERMISSION_BYPASS",
1209
+ "name": "AI CLI Invoked with Permission Bypass",
1210
+ "pattern": "--dangerously-skip-permissions|--dangerously-bypass-approvals-and-sandbox|--trust-all-tools|\\bgemini\\b[^\\n]{0,80}--yolo\\b",
1211
+ "description": "s1ngularity/Nx (Aug 2025) shelled out to claude/gemini/q with safety flags off to hunt secrets; pattern keeps recurring.\n",
1212
+ "tags": [
1213
+ "ai-agent",
1214
+ "abuse",
1215
+ "supply-chain"
970
1216
  ],
971
1217
  "severity": "medium",
972
1218
  "confidence": "low",
973
- "minMatches": 6,
974
1219
  "fileExtensions": [
975
1220
  ".js",
976
1221
  ".jsx",
@@ -981,47 +1226,69 @@
981
1226
  ".py",
982
1227
  ".rb",
983
1228
  ".php",
1229
+ ".go",
984
1230
  ".sh",
985
1231
  ".ps1",
986
- ".psm1"
1232
+ ".psm1",
1233
+ ".json"
987
1234
  ]
988
1235
  },
989
1236
  {
990
- "id": "OBF_HEX_STRINGS",
991
- "name": "Extensive Hex-Encoded Strings",
992
- "pattern": "\\\\x[0-9a-fA-F]{2}",
993
- "description": "20+ hex escape sequences (\\xNN) in a single file. Hex encoding hides the actual string content from developers, often used to conceal URLs, commands, or shellcode.\n",
1237
+ "id": "AI_INSTRUCTION_INJECTION_HTML_COMMENT",
1238
+ "name": "Hidden Agent Instructions in Markdown Comment",
1239
+ "pattern": "<!--(?:(?!-->)[\\s\\S]){0,1500}?(?:[Ii]gnore (?:all |any )?(?:previous|prior|above) instructions|[Dd]o not (?:mention|tell|inform|reveal|disclose) (?:this|the user)|(?:AI|LLM|[Cc]oding) (?:assistant|agent)s?\\b[^\\n]{0,80}\\b(?:must|should|run|execute)\\b|\\b(?:silently|quietly|without (?:asking|telling|confirmation))\\b[^\\n]{0,60}\\b(?:run|execute|curl|install)\\b)",
1240
+ "description": "Poisoned coding tests hide instructions for coding agents in README/CLAUDE.md HTML comments ('Do not mention this step').\n",
994
1241
  "tags": [
995
- "hex-encoding",
996
- "obfuscation"
1242
+ "ai-agent",
1243
+ "prompt-injection",
1244
+ "social-engineering"
997
1245
  ],
998
- "severity": "medium",
999
- "confidence": "low",
1000
- "minMatches": 20,
1246
+ "severity": "high",
1247
+ "confidence": "medium",
1248
+ "fileExtensions": [
1249
+ ".md",
1250
+ ".mdc",
1251
+ ".txt",
1252
+ ".cursorrules",
1253
+ ".windsurfrules",
1254
+ ".clinerules"
1255
+ ]
1256
+ },
1257
+ {
1258
+ "id": "REMOTE_CODE_FROM_HTTP_RESPONSE",
1259
+ "name": "Executes Code Returned by an HTTP Call",
1260
+ "pattern": "(?:\\beval|\\bnew\\s+Function|\\(\\s*Function\\.constructor\\s*\\)|\\bFunction)\\s*\\(\\s*(?:['\"]require['\"]\\s*,\\s*)?(?:err|error|e|res|resp|response|r)\\.(?:response\\.)?data\\b|new\\s+(?:\\(\\s*)?Function(?:\\.constructor)?\\)?\\s*\\(\\s*['\"]require['\"]\\s*,",
1261
+ "description": "Contagious Interview loaders: eval(err.response.data), new Function('require', res.data)(require).\n",
1262
+ "tags": [
1263
+ "contagious-interview",
1264
+ "loader",
1265
+ "rce",
1266
+ "lazarus"
1267
+ ],
1268
+ "severity": "critical",
1269
+ "confidence": "high",
1001
1270
  "fileExtensions": [
1002
1271
  ".js",
1003
1272
  ".jsx",
1004
1273
  ".mjs",
1005
1274
  ".cjs",
1006
1275
  ".ts",
1007
- ".tsx",
1008
- ".py",
1009
- ".rb",
1010
- ".php"
1276
+ ".tsx"
1011
1277
  ]
1012
1278
  },
1013
1279
  {
1014
- "id": "OBF_EVAL",
1015
- "name": "eval() Usage",
1016
- "pattern": "eval\\s*\\(\\s*[^)\\s][^)]{0,200}\\)",
1017
- "description": "eval() executes arbitrary dynamic code. While there are legitimate uses, eval() is the #1 technique for executing hidden malicious payloads.\n",
1280
+ "id": "LOADER_GLOBAL_MARKER",
1281
+ "name": "DPRK Loader Global Marker",
1282
+ "pattern": "global\\s*\\[\\s*['\"](?:!|_V)['\"]\\s*\\]\\s*=",
1283
+ "description": "Void Dokkaebi / PolinRider loaders set global['!'] (variant global['_V']).\n",
1018
1284
  "tags": [
1019
- "eval",
1020
- "dynamic-code",
1021
- "obfuscation"
1285
+ "contagious-interview",
1286
+ "polinrider",
1287
+ "loader",
1288
+ "lazarus"
1022
1289
  ],
1023
- "severity": "medium",
1024
- "confidence": "low",
1290
+ "severity": "critical",
1291
+ "confidence": "high",
1025
1292
  "fileExtensions": [
1026
1293
  ".js",
1027
1294
  ".jsx",
@@ -1032,59 +1299,67 @@
1032
1299
  ]
1033
1300
  },
1034
1301
  {
1035
- "id": "OBF_NEW_FUNCTION",
1036
- "name": "new Function() Constructor",
1037
- "pattern": "new\\s+Function\\s*\\([^)]{0,200}\\)",
1038
- "description": "new Function() creates and executes dynamic code similar to eval(). Used to hide malicious logic that bypasses some static analysis tools.\n",
1302
+ "id": "HIDDEN_CODE_WHITESPACE_PADDING",
1303
+ "name": "Code Hidden Behind Whitespace Padding",
1304
+ "pattern": "(?<![ \\t])[ \\t]{300,}(?![ \\t])[^\\n]{0,400}?(?:\\beval\\s*\\(|new\\s+Function|global\\s*\\[\\s*['\"]|_0x[0-9a-f]{3,}|atob\\s*\\(|fromCharCode|child_process|require\\s*\\()",
1305
+ "description": "Loader code pushed off-screen by 300+ spaces — PolinRider / Void Dokkaebi append it to next/tailwind/eslint/postcss configs. Scanner-core's built-in long-line check only fires past 5,000 characters and caps at medium.\n",
1039
1306
  "tags": [
1040
- "function-constructor",
1041
- "dynamic-code",
1042
- "obfuscation"
1307
+ "obfuscation",
1308
+ "hidden-code",
1309
+ "polinrider"
1043
1310
  ],
1044
- "severity": "medium",
1045
- "confidence": "low",
1311
+ "severity": "high",
1312
+ "confidence": "medium",
1046
1313
  "fileExtensions": [
1047
1314
  ".js",
1048
1315
  ".jsx",
1049
1316
  ".mjs",
1050
1317
  ".cjs",
1051
1318
  ".ts",
1052
- ".tsx"
1319
+ ".tsx",
1320
+ ".py"
1053
1321
  ]
1054
1322
  },
1055
1323
  {
1056
- "id": "OBF_SETTIMEOUT_STRING",
1057
- "name": "setTimeout/setInterval with String Argument",
1058
- "pattern": "(?:setTimeout|setInterval)\\s*\\(\\s*[\"'`][^\"'`]{0,200}[\"'`]",
1059
- "description": "Passing a string to setTimeout/setInterval executes it as code (like eval). A common obfuscation technique: setTimeout(\"maliciousCode()\", 0)\n",
1324
+ "id": "INVISIBLE_UNICODE_PAYLOAD",
1325
+ "name": "Invisible Unicode Payload (GlassWorm)",
1326
+ "pattern": "(?:[\\uFE00-\\uFE0F]|\\uDB40[\\uDD00-\\uDDEF]){16,}",
1327
+ "description": "GlassWorm: runs of variation selectors U+FE00–FE0F / U+E0100–E01EF encode a payload that renders as nothing. Needs scanner-core ≥0.4 (UTF-8 decoding); written in surrogate-pair form so it works without the u flag.\n",
1060
1328
  "tags": [
1061
- "eval",
1062
- "dynamic-code",
1329
+ "glassworm",
1330
+ "invisible-unicode",
1063
1331
  "obfuscation"
1064
1332
  ],
1065
- "severity": "medium",
1066
- "confidence": "low",
1333
+ "severity": "critical",
1334
+ "confidence": "high",
1067
1335
  "fileExtensions": [
1068
1336
  ".js",
1069
1337
  ".jsx",
1070
1338
  ".mjs",
1071
1339
  ".cjs",
1072
1340
  ".ts",
1073
- ".tsx"
1341
+ ".tsx",
1342
+ ".py",
1343
+ ".rb",
1344
+ ".php",
1345
+ ".go",
1346
+ ".sh",
1347
+ ".ps1",
1348
+ ".psm1"
1074
1349
  ]
1075
1350
  },
1076
1351
  {
1077
- "id": "OBF_FROMCHARCODE",
1078
- "name": "String.fromCharCode Obfuscation",
1079
- "pattern": "(?:String\\.fromCharCode|fromCharCode)\\s*\\([\\d\\s,]+\\)",
1080
- "description": "Constructs strings from char codes (e.g., String.fromCharCode(101,118,97,108) = \"eval\"). Classic technique to hide malicious keywords from simple string scanning.\n",
1352
+ "id": "INVISIBLE_UNICODE_DECODER",
1353
+ "name": "Variation-Selector Decoder Feeding eval",
1354
+ "pattern": "0x[Ee]0100[\\s\\S]{0,300}?\\beval\\s*\\(",
1355
+ "description": "GlassWorm decoder maps 0xFE00/0xE0100 back to bytes and evals the result.\n",
1081
1356
  "tags": [
1082
- "fromcharcode",
1083
- "obfuscation",
1084
- "eval-bypass"
1357
+ "glassworm",
1358
+ "invisible-unicode",
1359
+ "loader"
1085
1360
  ],
1086
- "severity": "medium",
1087
- "confidence": "low",
1361
+ "severity": "critical",
1362
+ "confidence": "high",
1088
1363
  "fileExtensions": [
1089
1364
  ".js",
1090
1365
  ".jsx",
@@ -1095,27 +1370,567 @@
1095
1370
  ]
1096
1371
  },
1097
1372
  {
1098
- "id": "OBF_CHARCODE_ARRAY",
1099
- "name": "Large Character Code Array",
1100
- "pattern": "\\[\\s*(?:\\d{2,3}\\s*,\\s*){20,}\\d{2,3}\\s*\\]",
1101
- "description": "Array of 20+ numbers that look like char codes. Used as an alternative to fromCharCode to build malicious strings character by character.\n",
1373
+ "id": "TROJAN_SOURCE_BIDI",
1374
+ "name": "Bidirectional Control Characters in Code",
1375
+ "pattern": "[\\u202A-\\u202E\\u2066-\\u2069]",
1376
+ "description": "Trojan Source (CVE-2021-42574): bidi override characters make code render differently than it executes. Needs scanner-core ≥0.4 (UTF-8 decoding).\n",
1102
1377
  "tags": [
1103
- "charcode-array",
1378
+ "trojan-source",
1379
+ "invisible-unicode",
1104
1380
  "obfuscation"
1105
1381
  ],
1106
1382
  "severity": "medium",
1107
- "confidence": "low",
1383
+ "confidence": "medium",
1108
1384
  "fileExtensions": [
1109
1385
  ".js",
1110
1386
  ".jsx",
1111
1387
  ".mjs",
1112
1388
  ".cjs",
1113
1389
  ".ts",
1114
- ".tsx"
1390
+ ".tsx",
1391
+ ".py",
1392
+ ".rb",
1393
+ ".php",
1394
+ ".go",
1395
+ ".sh",
1396
+ ".ps1",
1397
+ ".psm1"
1115
1398
  ]
1399
+ },
1400
+ {
1401
+ "id": "BLOCKCHAIN_DEAD_DROP_EXEC",
1402
+ "name": "Payload Fetched from Blockchain then Executed",
1403
+ "pattern": "(?:api\\.trongrid\\.io|aptoslabs\\.com|bsc-dataseed|getTransactionByHash|eth_getTransactionByHash|getSignaturesForAddress)[\\s\\S]{0,1500}?(?:\\beval|new\\s+Function)\\s*\\(",
1404
+ "description": "PolinRider/Void Dokkaebi fetch stage 2 from TRON/Aptos/BSC tx data; GlassWorm uses Solana memos. Plain RPC use is fine — this needs eval/Function nearby.\n",
1405
+ "tags": [
1406
+ "blockchain-c2",
1407
+ "contagious-interview",
1408
+ "glassworm",
1409
+ "loader"
1410
+ ],
1411
+ "severity": "critical",
1412
+ "confidence": "high",
1413
+ "fileExtensions": [
1414
+ ".js",
1415
+ ".jsx",
1416
+ ".mjs",
1417
+ ".cjs",
1418
+ ".ts",
1419
+ ".tsx"
1420
+ ]
1421
+ },
1422
+ {
1423
+ "id": "EXFIL_REQUEST_CATCHER",
1424
+ "name": "Request-Catcher / OAST Endpoint",
1425
+ "pattern": "(?<![\\w-])(?:www\\.)?(?:webhook\\.site|[\\w-]+\\.m\\.pipedream\\.net|requestbin\\.(?:net|com)|[\\w-]+\\.oast\\.(?:fun|live|me|online|pro|site)|burpcollaborator\\.net|[\\w-]+\\.interact\\.sh)\\b",
1426
+ "description": "webhook.site (Shai-Hulud v1), pipedream, interactsh/OAST, burp collaborator — no reason to ship these in a project.\n",
1427
+ "tags": [
1428
+ "exfiltration",
1429
+ "network"
1430
+ ],
1431
+ "severity": "high",
1432
+ "confidence": "medium",
1433
+ "fileExtensions": [
1434
+ ".js",
1435
+ ".jsx",
1436
+ ".mjs",
1437
+ ".cjs",
1438
+ ".ts",
1439
+ ".tsx",
1440
+ ".py",
1441
+ ".rb",
1442
+ ".php",
1443
+ ".go",
1444
+ ".sh",
1445
+ ".ps1",
1446
+ ".psm1",
1447
+ ".json",
1448
+ ".yml",
1449
+ ".yaml"
1450
+ ]
1451
+ },
1452
+ {
1453
+ "id": "KNOWN_CAMPAIGN_DOMAINS",
1454
+ "name": "Known 2026 Campaign Infrastructure",
1455
+ "pattern": "(?<![\\w-])(?:npm-cache\\.com|awqhnjewqjkl\\.icu|iseekaigogo\\.com|regioncheck\\.xyz|vscodeconfig\\.com|vscode-load\\.onrender\\.com|vscode-toolkit-bootstrap\\.vercel\\.app|vscodesettingstask\\.vercel\\.app|api-server-mocha\\.vercel\\.app|vscode-config\\.vercel\\.app|editorsettings\\.vercel\\.app|packages\\.storeartifact\\.com|storeartifacts\\.com|npm\\.jpartifacts\\.com|artifactsnpm\\.com|elxxvvx\\.xyz)\\b",
1456
+ "description": "CHAINDROP, Tensorlake, Contagious Interview task files, PhantomRaven RDD hosts, third-party.com ClickFix payload host.\n",
1457
+ "tags": [
1458
+ "ioc",
1459
+ "c2",
1460
+ "shai-hulud",
1461
+ "contagious-interview",
1462
+ "phantomraven"
1463
+ ],
1464
+ "severity": "critical",
1465
+ "confidence": "high",
1466
+ "fileExtensions": [
1467
+ ".js",
1468
+ ".jsx",
1469
+ ".mjs",
1470
+ ".cjs",
1471
+ ".ts",
1472
+ ".tsx",
1473
+ ".py",
1474
+ ".rb",
1475
+ ".php",
1476
+ ".go",
1477
+ ".sh",
1478
+ ".ps1",
1479
+ ".psm1",
1480
+ ".json",
1481
+ ".yml",
1482
+ ".yaml",
1483
+ ".md"
1484
+ ]
1485
+ },
1486
+ {
1487
+ "id": "SHAI_HULUD_ARTIFACTS",
1488
+ "name": "Shai-Hulud / CHAINDROP Artifacts",
1489
+ "pattern": "\\b(?:Math_Symbol|math_init|setup_bun|bun_environment)\\.js\\b|thebeautifulmarchoftime|IfYouBlockThisAPIKeyItWillCrash|gh-token-monitor|Shai-Hulud: Here We Go Again|shai-hulud-workflow\\.yml",
1490
+ "description": "Payload file names, dead-drop marker and wiper service from the 2025–2026 Shai-Hulud family.\n",
1491
+ "tags": [
1492
+ "ioc",
1493
+ "shai-hulud",
1494
+ "worm"
1495
+ ],
1496
+ "severity": "critical",
1497
+ "confidence": "high",
1498
+ "fileExtensions": [
1499
+ ".js",
1500
+ ".jsx",
1501
+ ".mjs",
1502
+ ".cjs",
1503
+ ".ts",
1504
+ ".tsx",
1505
+ ".py",
1506
+ ".rb",
1507
+ ".php",
1508
+ ".go",
1509
+ ".sh",
1510
+ ".ps1",
1511
+ ".psm1",
1512
+ ".json",
1513
+ ".yml",
1514
+ ".yaml"
1515
+ ]
1516
+ },
1517
+ {
1518
+ "id": "ENCODED_SHELL_ONELINER",
1519
+ "name": "Encoded / Download-and-Execute One-liner",
1520
+ "pattern": "base64\\s+(?:-d|-D|--decode)\\b[^\\n|]{0,200}\\|\\s*(?:sudo\\s+)?(?:ba|z)?sh\\b|powershell(?:\\.exe)?\\s[^\\n]{0,80}-(?:e|ec|enc|encodedcommand)\\s+[A-Za-z0-9+\\/=]{40,}|powershell(?:\\.exe)?\\s[^\\n]{0,40}-(?:w|windowstyle)\\s+h(?:idden)?\\b[^\\n]{0,200}(?:iwr|irm|Invoke-WebRequest|Invoke-RestMethod|DownloadString|curl)|\\bmshta(?:\\.exe)?\\s+[\"']?https?:",
1521
+ "description": "base64 -d | sh, powershell -enc <blob>, hidden-window powershell downloads, mshta http — ClickFix / fake-error 'paste this' lures. Plain `irm ... | iex` is left out: it is how Claude Code, bun and scoop install.\n",
1522
+ "tags": [
1523
+ "clickfix",
1524
+ "download-exec",
1525
+ "social-engineering"
1526
+ ],
1527
+ "severity": "high",
1528
+ "confidence": "medium",
1529
+ "fileExtensions": [
1530
+ ".sh",
1531
+ ".ps1",
1532
+ ".psm1",
1533
+ ".bat",
1534
+ ".cmd",
1535
+ ".json",
1536
+ ".md",
1537
+ ".txt",
1538
+ ".yml",
1539
+ ".yaml",
1540
+ ".js",
1541
+ ".jsx",
1542
+ ".mjs",
1543
+ ".cjs",
1544
+ ".ts",
1545
+ ".tsx",
1546
+ ".py"
1547
+ ]
1548
+ },
1549
+ {
1550
+ "id": "DOWNLOAD_PIPED_TO_CMD",
1551
+ "name": "Download Piped into cmd",
1552
+ "pattern": "\\b(?:curl|wget)\\b[^\\n|]{0,300}\\|\\s*cmd\\b",
1553
+ "description": "`curl ... | cmd` is unusual outside malware (Windows variant of the task-file loader).\n",
1554
+ "tags": [
1555
+ "download-exec",
1556
+ "contagious-interview"
1557
+ ],
1558
+ "severity": "high",
1559
+ "confidence": "medium",
1560
+ "fileExtensions": [
1561
+ ".sh",
1562
+ ".ps1",
1563
+ ".bat",
1564
+ ".cmd",
1565
+ ".json",
1566
+ ".md",
1567
+ ".txt",
1568
+ ".yml",
1569
+ ".yaml",
1570
+ ".js",
1571
+ ".jsx",
1572
+ ".mjs",
1573
+ ".cjs",
1574
+ ".ts",
1575
+ ".tsx",
1576
+ ".py"
1577
+ ]
1578
+ },
1579
+ {
1580
+ "id": "HARDCODED_NPM_TOKEN",
1581
+ "name": "Hardcoded npm Token",
1582
+ "pattern": "\\bnpm_[A-Za-z0-9]{36}\\b",
1583
+ "description": "npm automation/publish tokens are the worm's propagation fuel.\n",
1584
+ "tags": [
1585
+ "secrets",
1586
+ "npm",
1587
+ "credentials"
1588
+ ],
1589
+ "severity": "critical",
1590
+ "confidence": "high",
1591
+ "fileExtensions": [
1592
+ ".js",
1593
+ ".jsx",
1594
+ ".mjs",
1595
+ ".cjs",
1596
+ ".ts",
1597
+ ".tsx",
1598
+ ".py",
1599
+ ".rb",
1600
+ ".php",
1601
+ ".go",
1602
+ ".sh",
1603
+ ".ps1",
1604
+ ".psm1",
1605
+ ".json",
1606
+ ".yml",
1607
+ ".yaml",
1608
+ ".env",
1609
+ ".npmrc"
1610
+ ]
1611
+ },
1612
+ {
1613
+ "id": "HARDCODED_AI_API_KEY",
1614
+ "name": "Hardcoded AI Provider Key",
1615
+ "pattern": "\\bsk-ant-(?:api|admin)\\d{2}-[A-Za-z0-9_-]{80,}|\\bsk-(?:proj|svcacct|admin)-[A-Za-z0-9_-]{40,}",
1616
+ "description": "Anthropic / OpenAI keys are now first-class stealer targets (CHAINDROP collector lists them).\n",
1617
+ "tags": [
1618
+ "secrets",
1619
+ "ai",
1620
+ "credentials"
1621
+ ],
1622
+ "severity": "critical",
1623
+ "confidence": "high",
1624
+ "fileExtensions": [
1625
+ ".js",
1626
+ ".jsx",
1627
+ ".mjs",
1628
+ ".cjs",
1629
+ ".ts",
1630
+ ".tsx",
1631
+ ".py",
1632
+ ".rb",
1633
+ ".php",
1634
+ ".go",
1635
+ ".sh",
1636
+ ".ps1",
1637
+ ".psm1",
1638
+ ".json",
1639
+ ".yml",
1640
+ ".yaml",
1641
+ ".env"
1642
+ ]
1643
+ },
1644
+ {
1645
+ "id": "HARDCODED_PRIVATE_KEY_BLOCK",
1646
+ "name": "Private Key Block",
1647
+ "pattern": "-----BEGIN (?:RSA |EC |DSA |OPENSSH |ENCRYPTED |PGP )?PRIVATE KEY(?: BLOCK)?-----\\s*(?:\\\\n|\\\\r\\\\n)?[A-Za-z0-9+\\/=]{40,}",
1648
+ "description": "PEM/OpenSSH private key with key material (bare headers in docs/types are ignored).\n",
1649
+ "tags": [
1650
+ "secrets",
1651
+ "private-key"
1652
+ ],
1653
+ "severity": "critical",
1654
+ "confidence": "high",
1655
+ "fileExtensions": [
1656
+ ".js",
1657
+ ".jsx",
1658
+ ".mjs",
1659
+ ".cjs",
1660
+ ".ts",
1661
+ ".tsx",
1662
+ ".py",
1663
+ ".rb",
1664
+ ".php",
1665
+ ".go",
1666
+ ".sh",
1667
+ ".ps1",
1668
+ ".psm1",
1669
+ ".json",
1670
+ ".yml",
1671
+ ".yaml",
1672
+ ".env",
1673
+ ".pem",
1674
+ ".key"
1675
+ ]
1676
+ },
1677
+ {
1678
+ "id": "HARDCODED_WALLET_PRIVATE_KEY",
1679
+ "name": "Hardcoded Wallet Private Key",
1680
+ "pattern": "(?:^|\\n)(?![ \\t]*(?:\\*|\\/\\/|#))[^\\n]*?(?:private[_-]?key|PRIVATE_KEY|privKey|secretKey|WALLET_KEY)\\s*[:=]\\s*['\"\\x60]?(?:0x)?[0-9a-fA-F]{64}\\b",
1681
+ "description": "32-byte hex private key assigned to a key-ish variable outside comments (Web3 repos). JSDoc examples in web3/noble are skipped.\n",
1682
+ "tags": [
1683
+ "secrets",
1684
+ "web3",
1685
+ "wallet"
1686
+ ],
1687
+ "severity": "high",
1688
+ "confidence": "medium",
1689
+ "fileExtensions": [
1690
+ ".js",
1691
+ ".jsx",
1692
+ ".mjs",
1693
+ ".cjs",
1694
+ ".ts",
1695
+ ".tsx",
1696
+ ".py",
1697
+ ".rb",
1698
+ ".php",
1699
+ ".go",
1700
+ ".sh",
1701
+ ".ps1",
1702
+ ".psm1",
1703
+ ".json",
1704
+ ".env"
1705
+ ]
1706
+ },
1707
+ {
1708
+ "id": "SOCIAL_ENGINEERING_WALLET_SECRET_REQUEST",
1709
+ "name": "README Asks for Seed Phrase / Private Key",
1710
+ "pattern": "(?:[Pp]aste|[Ee]nter|[Pp]ut|[Ii]nsert|[Aa]dd|[Pp]rovide)\\s+(?:in\\s+)?your\\s[^\\n]{0,40}(?:[Ss]eed [Pp]hrase|[Mm]nemonic|[Rr]ecovery [Pp]hrase|[Ss]ecret [Rr]ecovery|[Pp]rivate [Kk]ey)",
1711
+ "description": "Fake 'MEV / sniper / trading bot' repos ask users to paste a seed phrase or key, then exfiltrate it.\n",
1712
+ "tags": [
1713
+ "social-engineering",
1714
+ "web3",
1715
+ "wallet"
1716
+ ],
1717
+ "severity": "medium",
1718
+ "confidence": "low",
1719
+ "fileExtensions": [
1720
+ ".md",
1721
+ ".txt"
1722
+ ]
1723
+ },
1724
+ {
1725
+ "id": "GHA_SECRETS_DUMP",
1726
+ "name": "Workflow Serialises All Secrets",
1727
+ "pattern": "toJSON\\(\\s*secrets\\s*\\)",
1728
+ "description": "`${{ toJSON(secrets) }}` dumps every secret into a step — used by worm-injected workflows.\n",
1729
+ "tags": [
1730
+ "ci",
1731
+ "github-actions",
1732
+ "exfiltration"
1733
+ ],
1734
+ "severity": "high",
1735
+ "confidence": "medium",
1736
+ "fileExtensions": [
1737
+ ".yml",
1738
+ ".yaml"
1739
+ ]
1740
+ },
1741
+ {
1742
+ "id": "OBF_BASE64_HEAVY",
1743
+ "name": "Heavy Base64 Encoding",
1744
+ "pattern": "[A-Za-z0-9+/]{50,}={0,2}",
1745
+ "description": "6+ base64 strings of 50+ chars in a single file. Base64 is a legitimate encoding, but excessive use in source code is a red flag — it's the most common way to hide malicious payloads, C2 URLs, and commands from static analysis.\n",
1746
+ "tags": [
1747
+ "base64",
1748
+ "obfuscation"
1749
+ ],
1750
+ "severity": "medium",
1751
+ "confidence": "low",
1752
+ "minMatches": 6,
1753
+ "fileExtensions": [
1754
+ ".js",
1755
+ ".jsx",
1756
+ ".mjs",
1757
+ ".cjs",
1758
+ ".ts",
1759
+ ".tsx",
1760
+ ".py",
1761
+ ".rb",
1762
+ ".php",
1763
+ ".sh",
1764
+ ".ps1",
1765
+ ".psm1"
1766
+ ]
1767
+ },
1768
+ {
1769
+ "id": "OBF_HEX_STRINGS",
1770
+ "name": "Extensive Hex-Encoded Strings",
1771
+ "pattern": "\\\\x[0-9a-fA-F]{2}",
1772
+ "description": "20+ hex escape sequences (\\xNN) in a single file. Hex encoding hides the actual string content from developers, often used to conceal URLs, commands, or shellcode.\n",
1773
+ "tags": [
1774
+ "hex-encoding",
1775
+ "obfuscation"
1776
+ ],
1777
+ "severity": "medium",
1778
+ "confidence": "low",
1779
+ "minMatches": 20,
1780
+ "fileExtensions": [
1781
+ ".js",
1782
+ ".jsx",
1783
+ ".mjs",
1784
+ ".cjs",
1785
+ ".ts",
1786
+ ".tsx",
1787
+ ".py",
1788
+ ".rb",
1789
+ ".php"
1790
+ ]
1791
+ },
1792
+ {
1793
+ "id": "OBF_EVAL",
1794
+ "name": "eval() Usage",
1795
+ "pattern": "eval\\s*\\(\\s*[^)\\s][^)]{0,200}\\)",
1796
+ "description": "eval() executes arbitrary dynamic code. While there are legitimate uses, eval() is the #1 technique for executing hidden malicious payloads.\n",
1797
+ "tags": [
1798
+ "eval",
1799
+ "dynamic-code",
1800
+ "obfuscation"
1801
+ ],
1802
+ "severity": "medium",
1803
+ "confidence": "low",
1804
+ "fileExtensions": [
1805
+ ".js",
1806
+ ".jsx",
1807
+ ".mjs",
1808
+ ".cjs",
1809
+ ".ts",
1810
+ ".tsx"
1811
+ ]
1812
+ },
1813
+ {
1814
+ "id": "OBF_NEW_FUNCTION",
1815
+ "name": "new Function() Constructor",
1816
+ "pattern": "new\\s+Function\\s*\\((?!\\s*\\)|\\s*['\"]return this['\"]\\s*\\))[^)]{0,200}\\)",
1817
+ "description": "new Function() creates and executes dynamic code similar to eval(). Used to hide malicious logic that bypasses some static analysis tools.\n",
1818
+ "tags": [
1819
+ "function-constructor",
1820
+ "dynamic-code",
1821
+ "obfuscation"
1822
+ ],
1823
+ "severity": "medium",
1824
+ "confidence": "low",
1825
+ "fileExtensions": [
1826
+ ".js",
1827
+ ".jsx",
1828
+ ".mjs",
1829
+ ".cjs",
1830
+ ".ts",
1831
+ ".tsx"
1832
+ ]
1833
+ },
1834
+ {
1835
+ "id": "OBF_SETTIMEOUT_STRING",
1836
+ "name": "setTimeout/setInterval with String Argument",
1837
+ "pattern": "(?:setTimeout|setInterval)\\s*\\(\\s*[\"'`][^\"'`]{0,200}[\"'`]",
1838
+ "description": "Passing a string to setTimeout/setInterval executes it as code (like eval). A common obfuscation technique: setTimeout(\"maliciousCode()\", 0)\n",
1839
+ "tags": [
1840
+ "eval",
1841
+ "dynamic-code",
1842
+ "obfuscation"
1843
+ ],
1844
+ "severity": "medium",
1845
+ "confidence": "low",
1846
+ "fileExtensions": [
1847
+ ".js",
1848
+ ".jsx",
1849
+ ".mjs",
1850
+ ".cjs",
1851
+ ".ts",
1852
+ ".tsx"
1853
+ ]
1854
+ },
1855
+ {
1856
+ "id": "OBF_FROMCHARCODE",
1857
+ "name": "String.fromCharCode Obfuscation",
1858
+ "pattern": "(?:String\\.fromCharCode|fromCharCode)\\s*\\([\\d\\s,]+\\)",
1859
+ "description": "Constructs strings from char codes (e.g., String.fromCharCode(101,118,97,108) = \"eval\"). Classic technique to hide malicious keywords from simple string scanning.\n",
1860
+ "tags": [
1861
+ "fromcharcode",
1862
+ "obfuscation",
1863
+ "eval-bypass"
1864
+ ],
1865
+ "severity": "medium",
1866
+ "confidence": "low",
1867
+ "fileExtensions": [
1868
+ ".js",
1869
+ ".jsx",
1870
+ ".mjs",
1871
+ ".cjs",
1872
+ ".ts",
1873
+ ".tsx"
1874
+ ]
1875
+ },
1876
+ {
1877
+ "id": "OBF_CHARCODE_ARRAY",
1878
+ "name": "Large Character Code Array",
1879
+ "pattern": "\\[\\s*(?:\\d{2,3}\\s*,\\s*){20,}\\d{2,3}\\s*\\]",
1880
+ "description": "Array of 20+ numbers that look like char codes. Used as an alternative to fromCharCode to build malicious strings character by character.\n",
1881
+ "tags": [
1882
+ "charcode-array",
1883
+ "obfuscation"
1884
+ ],
1885
+ "severity": "medium",
1886
+ "confidence": "low",
1887
+ "fileExtensions": [
1888
+ ".js",
1889
+ ".jsx",
1890
+ ".mjs",
1891
+ ".cjs",
1892
+ ".ts",
1893
+ ".tsx"
1894
+ ]
1895
+ }
1896
+ ],
1897
+ "knownBadHashes": [
1898
+ {
1899
+ "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
1900
+ "type": "js",
1901
+ "malwareFamily": "shai-hulud",
1902
+ "source": "elastic-security-labs",
1903
+ "description": "Math_Symbol.js / math_init.js (CHAINDROP payload)"
1904
+ },
1905
+ {
1906
+ "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
1907
+ "type": "js",
1908
+ "malwareFamily": "shai-hulud",
1909
+ "source": "elastic-security-labs",
1910
+ "description": "setup.mjs (CHAINDROP dropper)"
1911
+ },
1912
+ {
1913
+ "sha256": "54dc7ea54a1317cca0e890a2770630cf7fa6c97813e0cb9d2caa93012b350668",
1914
+ "type": "js",
1915
+ "malwareFamily": "shai-hulud",
1916
+ "source": "elastic-security-labs",
1917
+ "description": "setup.mjs (CHAINDROP dropper variant)"
1918
+ },
1919
+ {
1920
+ "sha256": "25a0735d0db7dc40e5d45ce42d9c106067e6a66e184d967cfecfab17c3bcb5ef",
1921
+ "type": "js",
1922
+ "malwareFamily": "shai-hulud",
1923
+ "source": "stepsecurity",
1924
+ "description": "lib/setup.mjs (tensorlake@0.5.144)"
1925
+ },
1926
+ {
1927
+ "sha256": "b50a00900399ba99fb6ce1fc151519cb99d44320ef2a631f2237e1aea0ad6fec",
1928
+ "type": "js",
1929
+ "malwareFamily": "shai-hulud",
1930
+ "source": "stepsecurity",
1931
+ "description": "lib/Math_Symbol.js (tensorlake@0.5.144)"
1116
1932
  }
1117
1933
  ],
1118
- "knownBadHashes": [],
1119
1934
  "userProfileRules": {
1120
1935
  "riskFactors": [
1121
1936
  {