-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More coverage improvements for MalwareBazaar (#618)
* More coverage improvements for MalwareBazaar * rule tuning * rule tuning
- Loading branch information
1 parent
4b74b78
commit 29fb875
Showing
58 changed files
with
386 additions
and
88 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,13 @@ | ||
import "math" | ||
|
||
rule nuitka: critical { | ||
meta: | ||
description = "packed with Nuitka (Python compiler)" | ||
|
||
strings: | ||
$old = "onefile_%PID%_%TIME%" | ||
$new = "{TEMP}/onefile_{PID}_{TIME}" | ||
condition: | ||
filesize < 25MB and any of them and math.entropy(0, filesize) > 7 | ||
} |
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 @@ | ||
import "math" | ||
|
||
rule pe_packed: high windows { | ||
meta: | ||
description = "packed PE file (Windows EXE) with high entropy (>7)" | ||
|
||
condition: | ||
uint16(0) == 0x5a4d and math.entropy(0, filesize) > 7 | ||
} |
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 connect_server: medium { | ||
meta: | ||
description = "connects to a server" | ||
|
||
strings: | ||
$ = "connected to server" fullword | ||
condition: | ||
filesize < 1MB and any 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
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,24 @@ | ||
rule bitsadmin: medium { | ||
meta: | ||
description = "mentions 'bitsadmin', often used for file transfers" | ||
|
||
strings: | ||
$bitsadmin = "bitsadmin" fullword | ||
condition: | ||
filesize < 250KB and all of them | ||
} | ||
|
||
rule bitsadmin_transfer: high { | ||
meta: | ||
description = "transfers files via 'bitsadmin'" | ||
|
||
strings: | ||
$bitsadmin = "bitsadmin" | ||
$transfer = "transfer" | ||
$wscript = "wscript" | ||
condition: | ||
filesize < 250KB and 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
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 crypt_user: low { | ||
meta: | ||
description = "password encryption via crypt(3)" | ||
ref = "https://man7.org/linux/man-pages/man3/crypt.3.html" | ||
|
||
strings: | ||
$ref = "crypt@@GLIBC" | ||
condition: | ||
any 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
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,10 @@ | ||
rule ActiveXObject: medium windows { | ||
meta: | ||
description = "Create an ActiveX object" | ||
|
||
strings: | ||
$ActiveXObject = "ActiveXObject" | ||
condition: | ||
any of them | ||
} |
Oops, something went wrong.