-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
548 additions
and
135 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__version__ = '1.1.2' | ||
__version__ = '1.1.3' | ||
VERSION = __version__ |
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,16 @@ | ||
// This ruleset is used for unit tests - Modification will require test updates | ||
|
||
import "androguard" | ||
|
||
rule androguard_001 | ||
{ | ||
condition: | ||
androguard.package_name(/videogame/) | ||
} | ||
|
||
rule androguard_002 | ||
{ | ||
condition: | ||
androguard.activity(/\.sms\./) or | ||
androguard.activity("com.package.name.sendSMS") | ||
} |
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,9 @@ | ||
// This ruleset is used for unit tests - Modification will require test updates | ||
|
||
import "cuckoo" | ||
|
||
rule cuckoo_001 | ||
{ | ||
condition: | ||
cuckoo.network.http_request(/http:\/\/someone\.doingevil\.com/) | ||
} |
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,16 @@ | ||
// This ruleset is used for unit tests - Modification will require test updates | ||
|
||
import "dotnet" | ||
|
||
rule dotnet_001 | ||
{ | ||
condition: | ||
dotnet.number_of_streams != 5 | ||
} | ||
|
||
rule dotnet_002 | ||
{ | ||
condition: | ||
for any i in (0..dotnet.number_of_streams - 1): | ||
(dotnet.streams[i].name == "#Blop") | ||
} |
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,15 @@ | ||
// This ruleset is used for unit tests - Modification will require test updates | ||
|
||
import "elf" | ||
|
||
rule elf_001 | ||
{ | ||
condition: | ||
elf.number_of_sections == 1 | ||
} | ||
|
||
rule elf_002 | ||
{ | ||
condition: | ||
elf.machine == elf.EM_X86_64 | ||
} |
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,15 @@ | ||
// This ruleset is used for unit tests - Modification will require test updates | ||
|
||
import "hash" | ||
|
||
rule hash_001 | ||
{ | ||
condition: | ||
hash.md5("dummy") == "275876e34cf609db118f3d84b799a790" | ||
} | ||
|
||
rule hash_002 | ||
{ | ||
condition: | ||
hash.md5(0, filesize) == "feba6c919e3797e7778e8f2e85fa033d" | ||
} |
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,15 @@ | ||
// This ruleset is used for unit tests - Modification will require test updates | ||
|
||
import "magic" | ||
|
||
rule magic_001 | ||
{ | ||
condition: | ||
magic.type() contains "PDF" | ||
} | ||
|
||
rule magic_002 | ||
{ | ||
condition: | ||
magic.mime_type() == "application/pdf" | ||
} |
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,9 @@ | ||
// This ruleset is used for unit tests - Modification will require test updates | ||
|
||
import "math" | ||
|
||
rule math_001 | ||
{ | ||
condition: | ||
uint16(0) == 0x5A4D and math.entropy(0, filesize) > 7.0 | ||
} |
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,21 @@ | ||
// This ruleset is used for unit tests - Modification will require test updates | ||
|
||
import "pe" | ||
|
||
rule pe_001 | ||
{ | ||
condition: | ||
pe.number_of_sections == 1 | ||
} | ||
|
||
rule pe_002 | ||
{ | ||
condition: | ||
pe.exports("CPlApplet") | ||
} | ||
|
||
rule pe_003 | ||
{ | ||
condition: | ||
pe.characteristics & pe.DLL | ||
} |
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,35 @@ | ||
// This ruleset is used for unit tests - Modification will require test updates | ||
|
||
rule StringTypeMetadata | ||
{ | ||
meta: | ||
string_value = "String Metadata" | ||
|
||
condition: false | ||
} | ||
|
||
rule IntegerTypeMetadata | ||
{ | ||
meta: | ||
integer_value = 100 | ||
|
||
condition: false | ||
} | ||
|
||
rule BooleanTypeMetadata | ||
{ | ||
meta: | ||
boolean_value = true | ||
|
||
condition: false | ||
} | ||
|
||
rule AllTypesMetadata | ||
{ | ||
meta: | ||
string_value = "Different String Metadata" | ||
integer_value = 33 | ||
boolean_value = false | ||
|
||
condition: false | ||
} |
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,13 @@ | ||
// This ruleset is used for unit tests - Modification will require test updates | ||
|
||
rule FirstRule | ||
{ | ||
meta: | ||
author = "Andrés Iniesta" | ||
date = "2015-01-01" | ||
strings: | ||
$a = "hark, a \"string\" here" fullword ascii | ||
$b = { 00 22 44 66 88 aa cc ee } | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// This ruleset is used for unit tests - Modification will require test updates | ||
|
||
global rule GlobalScope | ||
{ | ||
condition: false | ||
} | ||
|
||
private rule PrivateScope | ||
{ | ||
condition: false | ||
} | ||
|
||
global private rule PrivateGlobalScope | ||
{ | ||
condition: false | ||
} |
Oops, something went wrong.