Skip to content

Commit 8b3d4af

Browse files
authored
Clean up remaining false positives for new packages (#1039)
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent ed9ba0c commit 8b3d4af

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

rules/evasion/mimicry/fake-process.yara

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ rule fake_kworker: critical linux {
66
$kworker1 = /\[{0,1}kworker\/[\w\%:\-\]]{1,16}/
77
$kworker2 = "[kworker"
88
9+
$not_dockworker = "dockworker/MS"
910
$not_rescue = "kworker/R-%s"
1011
$not_psutil_comment1 = "root 4 0.0 0.0B 0.0B -20 idle Mar27 00:00 kworker/0:0H"
1112
$not_psutil_comment2 = "root 20414 0.0 0.0B 0.0B idle Apr04 00:00 kworker/4:2"

rules/exec/remote_commands/code_eval.yara

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,10 @@ rule php_at_eval: critical {
231231
filetypes = "php"
232232

233233
strings:
234-
$at_eval = /@\beval\s{0,32}\(\s{0,32}(\$\w{0,32}|\.\s{0,32}"[^"]{0,32}"|\.\s{0,32}'[^']{0,32}'|\w+\(\s{0,32}\))/
235-
$not_empty = "eval()"
234+
$at_eval = /@\beval\s{0,32}\(\s{0,32}(\$\w{0,32}|\.\s{0,32}"[^"]{0,32}"|\.\s{0,32}'[^']{0,32}'|\w+\(\s{0,32}\))/
235+
$not_empty = "eval()"
236+
$not_phpunit1 = "This file is part of PHPUnit."
237+
$not_phpunit2 = "(c) Sebastian Bergmann <sebastian@phpunit.de>"
236238
237239
condition:
238240
$at_eval and none of ($not*)

rules/impact/cryptojacking/competitive.yara

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ rule killer_miner_panchansminingisland: critical {
44
filetypes = "elf"
55

66
strings:
7-
$ = "killer"
8-
$ = "miner"
9-
$ = "p2p"
10-
$ = "protector"
11-
$ = "rootkit"
12-
$ = "spreader"
13-
$ = "updater"
7+
$ = "killer" fullword
8+
$ = "miner" fullword
9+
$ = "p2p" fullword
10+
$ = "protector" fullword
11+
$ = "rootkit" fullword
12+
$ = "spreader" fullword
13+
$ = "updater" fullword
1414
1515
$not_pypi_index = "testpack-id-lb001"
1616

0 commit comments

Comments
 (0)