Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve MoleBox packer detection. #815

Merged
merged 4 commits into from
Jul 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 46 additions & 11 deletions support/yara_patterns/tools/pe/x86/packers.yara
Original file line number Diff line number Diff line change
Expand Up @@ -3741,17 +3741,6 @@ rule beroexepacker_uv_01 {
beroexepacker_uv_prologue and 1 of them
}

rule bitarts {
meta:
tool = "P"
name = "BITARTS"
pattern = "55E8000000005D83ED068BC5556089AD????00002B85????00008985????000055BB????000003DD536467FF36000064678926000080BD????0000007509C685"
strings:
$1 = { 55 E8 00 00 00 00 5D 83 ED 06 8B C5 55 60 89 AD ?? ?? 00 00 2B 85 ?? ?? 00 00 89 85 ?? ?? 00 00 55 BB ?? ?? 00 00 03 DD 53 64 67 FF 36 00 00 64 67 89 26 00 00 80 BD ?? ?? 00 00 00 75 09 C6 85 }
condition:
$1 at pe.entry_point
}

rule blackenergy_ddos_bot_crypter {
meta:
tool = "P"
Expand Down Expand Up @@ -8388,6 +8377,28 @@ rule molebox_uv {
$1 at pe.entry_point
}

rule molebox_uv_01 {
meta:
tool = "P"
name = "MoleBox"
pattern = "558BEC6AFF6800000000680000000064A1000000005064892500000000"
strings:
$1 = { 55 8B EC 6A FF 68 00 00 00 00 68 00 00 00 00 64 A1 00 00 00 00 50 64 89 25 00 00 00 00 }
condition:
$1 at pe.entry_point
}

rule molebox_uv_02 {
meta:
tool = "P"
name = "MoleBox"
pattern = "584F4A554D414E4A"
strings:
$1 = { 58 4F 4A 55 4D 41 4E 4A }
condition:
$1 in (pe.overlay.offset .. pe.overlay.offset + pe.overlay.size)
}

rule molebox_20 {
meta:
tool = "P"
Expand Down Expand Up @@ -8424,6 +8435,18 @@ rule molebox_23x {
$1 at pe.entry_point
}

rule molebox_236 {
meta:
tool = "P"
name = "MoleBox"
version = "2.3.6"
pattern = "EB168B15????????FF328F05????????EB068F05????????B8????????833800742050"
strings:
$1 = { EB 16 8B 15 ?? ?? ?? ?? FF 32 8F 05 ?? ?? ?? ?? EB 06 8F 05 ?? ?? ?? ?? B8 ?? ?? ?? ?? 83 38 00 74 20 50 }
condition:
$1 at pe.entry_point
}

rule molebox_254 {
meta:
tool = "P"
Expand All @@ -8448,6 +8471,18 @@ rule molebox_pro_255 {
$1 at pe.entry_point
}

rule molebox_42321 {
meta:
tool = "P"
name = "MoleBox"
version = "4.2321"
pattern = "6A286870204000E8740200003?FF57FF15????????6681384D5A75"
strings:
$1 = { 6A 28 68 70 20 40 00 E8 74 02 00 00 3? FF 57 FF 15 ?? ?? ?? ?? 66 81 38 4D 5A }
condition:
$1 at pe.entry_point
}

rule molebox_pro_43018 {
meta:
tool = "P"
Expand Down