YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_NPM_Supplychain_Attack_Preinstallscript_Nov25
Detects known malicious preinstall script in package.json
- Author
- Marius Benthin
- Date
- 2025-11-24
- Modified
- 2026-05-15
- Score / Quality
- 80 / 85
What this rule detects
Detects known malicious preinstall script in package.json
It defines 1 patterns (1 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_MAL_NPM_Supplychain_Attack_Preinstallscript_Nov25 : FILE
{
meta:
= "Detects known malicious preinstall script in package.json"
= "Marius Benthin"
= "eebcf73d-ee26-59c6-aacb-b76232829ea6"
= "2025-11-24"
= "2026-05-15"
= "https://www.aikido.dev/blog/shai-hulud-strikes-again-hitting-zapier-ensdomains"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/mal_npm_supply_chain_nov25.yar#L66-L80"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "c4bc2afd133916f064f2fb7d1e2e067ea65db33463eeae2fa54a9860a6303865"
= "7472fc4759bbf03abd05a0eade1144c7ca3ab31af26ed4eab4028056027b2e47"
= 80
= 85
= "FILE"
strings:
$x1 = "\"preinstall\": \"node setup_bun.js\""
condition:
filesize < 10KB and all of them
}
Strings (1 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "\"preinstall\": \"node setup_bun.js\"" |
Condition
filesize < 10KB and all of themIn plain words (Heuristic)
- The file must be smaller than 10KB (a cheap guard that skips large files).
- All patterns in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- c4bc2afd133916f064f2fb7d1e2e067ea65db33463eeae2fa54a9860a6303865
Licence & attribution
Author: Marius Benthin
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: eebcf73d-ee26-59c6-aacb-b76232829ea6
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· Marius Benthin· 2026-01-29
- MalwareSignature Base (Florian Roth / Nextron)· Marius Benthin· 2026-03-28
- MalwareSignature Base (Florian Roth / Nextron)· Marius Benthin· 2026-03-31
- MalwareSignature Base (Florian Roth / Nextron)· Marius Benthin· 2026-03-28
- MalwareSignature Base (Florian Roth / Nextron)· Marius Benthin· 2025-11-24
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Marius Benthin· 2026-01-29
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Marius Benthin· 2026-01-29
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Marius Benthin· 2026-03-31