MAL_NPM_SupplyChain_Attack_Mar26
Description
Detects package.json which include the malicious plain-crypto-js package as dependency
Query · yara
strings:
$s1 = "\"dependencies\":"
// This is the specific malicious package that was added to the npm registry, which is a typo-squatting of the popular crypto-js package
$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 } // "plain-crypto-js": "^4.2."
condition:
filesize < 10KB
and all of them