Skip to content

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

MalwareSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
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

mal-npm-supplychain-attack-mar26.yarDetection Rule License 1.1
rule SIGNATURE_BASE_MAL_NPM_Supplychain_Attack_Mar26 : FILE
{
	meta:
		description = "Detects package.json which include the malicious plain-crypto-js package as dependency"
		author = "Marius Benthin"
		id = "88e7af97-f7c1-591e-960c-d5296da94066"
		date = "2026-03-31"
		modified = "2026-05-15"
		reference = "https://www.stepsecurity.io/blog/axios-compromised-on-npm-malicious-versions-drop-remote-access-trojan"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/mal_npm_supply_chain_mar26.yar#L1-L17"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "5e3e89c7351f385e36bb70286866a62957cc1aaab195539edb8c7bb62968a137"
		logic_hash = "e0f0f5ca19f95b90d4483c6de8d4eb770e3ea8d6ee189e6c7c5bff4a74dedd57"
		score = 80
		quality = 85
		tags = "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)

IdentifierTypeValueModifiers
$s1text"\"dependencies\":"
$s2hex{ 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

In 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.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

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)

Original rule

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