MAL_JS_NPM_SupplyChain_Compromise_Sep25
Description
Detects a supply chain compromise in NPM packages (TinyColor, CrowdStrike etc.)
Query · yara
strings:
$x1 = "if (plat === \"linux\") return \"https://github.com/trufflesecurity/trufflehog/releases"
$sa1 = "curl -d \"$CONTENTS\" https://webhook.site/" ascii
$sa2 = "curl -s -X POST -d \"$CONTENTS\" \"https://webhook.site/"
$sb1 = " | base64 -w 0 | " ascii
$sb2 = " | base64 -w0)"
condition:
filesize < 20MB
and (
1 of ($x*)
or (
1 of ($sa*)
and 1 of ($sb*)
)
)
and not uint8(0) == 0x7b // JSON {