Skip to content

Commit 9306e4e

Browse files
committed
Monitor YARA integration
1 parent 825c2b0 commit 9306e4e

File tree

8 files changed

+40
-3
lines changed

8 files changed

+40
-3
lines changed

Diff for: analyzer/windows/data/yara/Guloader.yar

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
rule Guloader
2+
{
3+
meta:
4+
author = "kevoreilly"
5+
description = "Guloader bypass"
6+
cape_options = "bp0=$trap0,bp0=$trap1+4,action0=skip,bp1=$trap2+11,bp1=$trap3+19,action1=skip,bp2=$antihook,action2=goto:ntdll::NtAllocateVirtualMemory,count=0,"
7+
strings:
8+
$trap0 = {0F 85 [2] FF FF 81 BD ?? 00 00 00 [2] 00 00 0F 8F [2] FF FF 39 D2 83 FF 00}
9+
$trap1 = {49 83 F9 00 75 [1-20] 83 FF 00 [2-6] 81 FF}
10+
$trap2 = {39 CB 59 01 D7 49 85 C8 83 F9 00 75 B3}
11+
$trap3 = {61 0F AE E8 0F 31 0F AE E8 C1 E2 20 09 C2 29 F2 83 FA 00 7E CE C3}
12+
$antihook = {FF 34 08 [0-48] 8F 04 0B [0-80] 83 C1 04 83 F9 18 75 [0-128] FF E3}
13+
condition:
14+
any of them
15+
}

Diff for: analyzer/windows/data/yara/Pafish.yar

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
rule Pafish
2+
{
3+
meta:
4+
author = "kevoreilly"
5+
description = "Pafish bypass"
6+
cape_options = "bp0=$rdtsc_vmexit-2,action0=SetZeroFlag,count=1"
7+
strings:
8+
$rdtsc_vmexit = {8B 45 E8 80 F4 00 89 C3 8B 45 EC 80 F4 00 89 C6 89 F0 09 D8 85 C0 75 07}
9+
condition:
10+
uint16(0) == 0x5A4D and $rdtsc_vmexit
11+
}
12+

Diff for: analyzer/windows/data/yara/Ursnif3.yar

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
rule Ursnif3
2+
{
3+
meta:
4+
author = "kevoreilly"
5+
description = "Ursnif Config Extraction"
6+
cape_options = "br0=$crypto32-73,instr0=cmp,dumpsize=eax,action0=dumpebx,dumptype0=0x24,count=1"
7+
strings:
8+
$golden_ratio = {8B 70 EC 33 70 F8 33 70 08 33 30 83 C0 04 33 F1 81 F6 B9 79 37 9E C1 C6 0B 89 70 08 41 81 F9 84 00 00 00}
9+
$crypto32_1 = {8B C3 83 EB 01 85 C0 75 0D 0F B6 16 83 C6 01 89 74 24 14 8D 58 07 8B C2 C1 E8 07 83 E0 01 03 D2 85 C0 0F 84 AB 01 00 00 8B C3 83 EB 01 85 C0 89 5C 24 20 75 13 0F B6 16 83 C6 01 BB 07 00 00 00}
10+
$crypto32_2 = {8B 45 EC 0F B6 38 FF 45 EC 33 C9 41 8B C7 23 C1 40 40 D1 EF 75 1B 89 4D 08 EB 45}
11+
condition:
12+
uint16(0) == 0x5A4D and ($golden_ratio) and (any of them)
13+
}

Diff for: analyzer/windows/dll/capemon.dll

228 KB
Binary file not shown.

Diff for: analyzer/windows/dll/capemon_x64.dll

235 KB
Binary file not shown.

Diff for: data/yara/CAPE/Pafish.yar

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ rule Pafish
44
author = "kevoreilly"
55
description = "Paranoid Fish Sandbox Detection"
66
cape_type = "Pafish Payload"
7-
cape_options = "bp=$rdtsc_vmexit-2,action0=SetZeroFlag,count=1"
87
strings:
98
$rdtsc_vmexit = {8B 45 E8 80 F4 00 89 C3 8B 45 EC 80 F4 00 89 C6 89 F0 09 D8 85 C0 75 07}
109
condition:

Diff for: data/yara/CAPE/QakBot.yar

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ rule QakBot
44
author = "kevoreilly"
55
description = "QakBot Payload"
66
cape_type = "QakBot Payload"
7-
cape_options = "br=$decrypt_config3-70,instr0=pop,action0=dumpesi,dumpsize=eax,dumptype0=0x38,base-on-api=GetComputerNameW,exclude-apis=FindResourceExW,count=1"
87

98
strings:
109
$crypto1 = {8B 5D 08 0F B6 C2 8A 16 0F B6 1C 18 88 55 13 0F B6 D2 03 CB 03 CA 81 E1 FF 00 00 80 79 08 49 81 C9 00 FF FF FF 41}

Diff for: data/yara/CAPE/Ursnif3.yar

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ rule Ursnif3
44
author = "kevoreilly"
55
description = "Ursnif Payload"
66
cape_type = "Ursnif Payload"
7-
cape_options = "br=$crypto32-73,instr0=cmp,dumpsize=eax,action0=dumpebx,dumptype0=0x24,base-on-api=NtOpenProcess,count=1"
87
strings:
98
$golden_ratio = {8B 70 EC 33 70 F8 33 70 08 33 30 83 C0 04 33 F1 81 F6 B9 79 37 9E C1 C6 0B 89 70 08 41 81 F9 84 00 00 00}
109
$crypto32_1 = {8B C3 83 EB 01 85 C0 75 0D 0F B6 16 83 C6 01 89 74 24 14 8D 58 07 8B C2 C1 E8 07 83 E0 01 03 D2 85 C0 0F 84 AB 01 00 00 8B C3 83 EB 01 85 C0 89 5C 24 20 75 13 0F B6 16 83 C6 01 BB 07 00 00 00}

0 commit comments

Comments
 (0)