Skip to content

Commit

Permalink
rule tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
tstromberg committed Dec 17, 2024
1 parent a1c8fbc commit 92dee88
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
29 changes: 15 additions & 14 deletions rules/false_positives/trino_upx.yara
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
rule trino_upx_override: override {
meta:
description = "https://trino.io/ - UPX encrypted and crazy"
upx = "medium"
high_entropy_header = "medium"
normal_elf_high_entropy_7_4 = "medium"
obfuscated_elf = "medium"
description = "https://trino.io/ - UPX encrypted and crazy"
upx = "medium"
high_entropy_header = "medium"
normal_elf_high_entropy_7_4 = "medium"
obfuscated_elf = "medium"

strings:
$ = "Go buildinf"
$ = "p\tgiNub.com/fdih/"
$ = "kTixuOsFBOtGYSTLRLWK6G"
$ = "wnwmwkwbqc"
$ = "zYna%i%qj%"
$ = "kUNKNOWN:$"
$ = "q\tcCuXMaxlebo"
$ = "lmRnTEOIt"
$ = "Go buildinf"
$ = "p\tgiNub.com/fdih/"
$ = "kTixuOsFBOtGYSTLRLWK6G"
$ = "wnwmwkwbqc"
$ = "zYna%i%qj%"
$ = "kUNKNOWN:$"
$ = "q\tcCuXMaxlebo"
$ = "lmRnTEOIt"
condition:
filesize > 1MB and filesize < 3MB and 85% of them
filesize > 1MB and filesize < 3MB and 85 % of them
}
7 changes: 4 additions & 3 deletions rules/malware/family/beurk.yara
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ rule beurk_xor: critical linux {
ref = "https://github.com/unix-thrust/beurk"

strings:
$x_BEURK = "BEURK" xor(1-31) fullword
$x_BEURK2 = "BEURK" xor(33-255) fullword
$x_b3urkR0cks = "b3urkR0cks" xor(1-31)
$x_BEURK = "BEURK" xor(1-31) fullword
$x_BEURK2 = "BEURK" xor(33-255) fullword
$x_b3urkR0cks = "b3urkR0cks" xor(1-31)
$x_b3urkR0cks2 = "b3urkR0cks" xor(33-255)
$dlsym = "dlsym" fullword
condition:
filesize < 2MB and $dlsym and any of ($x*)
}
Expand Down
10 changes: 5 additions & 5 deletions rules/persist/shell/bash.yara
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ rule bash_persist_persistent: high {
$ref3 = ".profile"
$ref4 = ".bashrc"
$not_bash = "POSIXLY_CORRECT"
$not_csh = ".cshrc"
$not_tcsh = "tcsh" fullword
$not_tcshrc = ".tcshrc"
$not_bash = "POSIXLY_CORRECT"
$not_csh = ".cshrc"
$not_tcsh = "tcsh" fullword
$not_tcshrc = ".tcshrc"
condition:
3 of them and none of ($not*)
Expand Down Expand Up @@ -58,7 +58,7 @@ rule bash_logout_persist: high {
$not_comment = "# ~/.bash_logout"
$not_clear = "/usr/bin/clear_console"
$not_csh = ".cshrc"
$not_tcshrc = ".tcshrc"
$not_tcshrc = ".tcshrc"
condition:
filesize < 2097152 and any of ($ref*) and none of ($not*)
Expand Down

0 comments on commit 92dee88

Please sign in to comment.