-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tune HIGH/CRITICAL findings + disallow "clean" samples from matching (#…
…712) * Tune HIGH/CRITICAL findings based on Wolfi review * refresh testdata * refresh testdata * update tests * update testdata * further rule tuning * further rule tuning * further rule tuning * run yara-x-fmt
- Loading branch information
1 parent
ca24a67
commit 368f804
Showing
96 changed files
with
1,000 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
rule xor_eval: medium { | ||
meta: | ||
description = "eval( xor'd" | ||
|
||
strings: | ||
$b_eval = "eval(" xor(1-31) | ||
$b_eval2 = "eval(" xor(33-255) | ||
condition: | ||
any of ($b_*) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
rule bash_history: high { | ||
rule bash_history: medium { | ||
meta: | ||
description = "accesses bash shell history" | ||
|
||
strings: | ||
$ref = ".bash_history" fullword | ||
$ref = ".bash_history" | ||
condition: | ||
all of them | ||
} | ||
|
||
rule bash: override { | ||
rule bash_history_high: high { | ||
meta: | ||
description = "bash" | ||
bash_history = "medium" | ||
description = "accesses bash shell history" | ||
|
||
strings: | ||
$posix = "POSIXLY_CORRECT" | ||
$source = "BASH_SOURCE" | ||
$ref = ".bash_history" | ||
$not_posix = "POSIXLY_CORRECT" | ||
$not_source = "BASH_SOURCE" | ||
$not_cshrc = ".cshrc" | ||
condition: | ||
filesize > 100KB and filesize < 2MB and all of them | ||
$ref and none of ($not*) | ||
} | ||
|
Oops, something went wrong.