YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_NPM_Supplychain_Attack_Mar26
Detects package.json which include the malicious plain-crypto-js package as dependency
- Author
- Marius Benthin
- Date
- 2026-03-31
- Modified
- 2026-05-15
- Score / Quality
- 80 / 85
What this rule detects
Detects package.json which include the malicious plain-crypto-js package as dependency
It defines 2 patterns (1 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_MAL_NPM_Supplychain_Attack_Mar26 : FILE
{
meta:
= "Detects package.json which include the malicious plain-crypto-js package as dependency"
= "Marius Benthin"
= "88e7af97-f7c1-591e-960c-d5296da94066"
= "2026-03-31"
= "2026-05-15"
= "https://www.stepsecurity.io/blog/axios-compromised-on-npm-malicious-versions-drop-remote-access-trojan"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/mal_npm_supply_chain_mar26.yar#L1-L17"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "5e3e89c7351f385e36bb70286866a62957cc1aaab195539edb8c7bb62968a137"
= "e0f0f5ca19f95b90d4483c6de8d4eb770e3ea8d6ee189e6c7c5bff4a74dedd57"
= 80
= 85
= "FILE"
strings:
$s1 = "\"dependencies\":"
$s2 = { 22 70 6C 61 69 6E 2D 63 72 79 70 74 6F 2D 6A 73 22 3A [0-3] 22 [0-2] 34 2E 32 2E }
condition:
filesize < 10KB and all of them
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "\"dependencies\":" | |
| $s2 | hex | { 22 70 6C 61 69 6E 2D 63 72 79 70 74 6F 2D 6A 73 22 3A [0-3] 22 [0-2] 34 2E 32 2E } |
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).
- 5e3e89c7351f385e36bb70286866a62957cc1aaab195539edb8c7bb62968a137
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: 88e7af97-f7c1-591e-960c-d5296da94066
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-28
- MalwareSignature Base (Florian Roth / Nextron)· Marius Benthin· 2025-11-24
- 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