Skip to content

Commit 59904ad

Browse files
committed
refactor: improved NPM rule
1 parent f838b85 commit 59904ad

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

yara/mal_npm_supply_chain_sep25.yar

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,15 @@ rule MAL_JS_NPM_SupplyChain_Compromise_Sep25 {
2525
date = "2025-09-16"
2626
score = 80
2727
strings:
28-
$s1 = "curl -d \"$CONTENTS\" https://webhook.site/" ascii
29-
$s2 = " | base64 -w 0 | " ascii
28+
$x1 = "if (plat === \"linux\") return \"https://github.com/trufflesecurity/trufflehog/releases"
29+
30+
$sa1 = "curl -d \"$CONTENTS\" https://webhook.site/" ascii
31+
$sa2 = "curl -s -X POST -d \"$CONTENTS\" \"https://webhook.site/"
32+
33+
$sb1 = " | base64 -w 0 | " ascii
34+
$sb2 = " | base64 -w0)"
3035
condition:
31-
all of them
36+
1 of ($sa*)
37+
and 1 of ($sb*)
38+
or 1 of ($x*)
3239
}

0 commit comments

Comments
 (0)