-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update logic collision detection and add tests
Original author: @Taskr Original commit: PUNCH-Cyber/YaraGuardian@80b5316
- Loading branch information
Showing
3 changed files
with
107 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// This ruleset is used for unit tests - Modification will require test updates | ||
|
||
rule Set001_Rule001 | ||
{ | ||
strings: | ||
$a = "foobar" | ||
condition: | ||
$a | ||
} | ||
|
||
rule Set001_Rule002 | ||
{ | ||
strings: | ||
$b = "foobar" | ||
condition: | ||
$b | ||
} | ||
|
||
rule Set001_Rule003 | ||
{ | ||
strings: | ||
$aaa = "foobar" | ||
condition: | ||
$* | ||
} | ||
|
||
rule Set001_Rule004 | ||
{ | ||
strings: | ||
$ = "foobar" | ||
condition: | ||
$* | ||
} | ||
|
||
|
||
rule Set002_Rule001 | ||
{ | ||
strings: | ||
$b = "foo" | ||
$a = "bar" | ||
condition: | ||
all of them | ||
} | ||
|
||
rule Set002_Rule002 | ||
{ | ||
strings: | ||
$b = "bar" | ||
$a = "foo" | ||
condition: | ||
all of $* | ||
} | ||
|
||
rule Set002_Rule003 | ||
{ | ||
strings: | ||
$ = "bar" | ||
$ = "foo" | ||
condition: | ||
all of $* | ||
} | ||
|
||
rule Set002_Rule004 | ||
{ | ||
strings: | ||
$ = "bar" | ||
$ = "foo" | ||
condition: | ||
all of them | ||
} |
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