This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
packer.yar
executable file
·220 lines (175 loc) · 5.08 KB
/
packer.yar
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
/*
URL: https://github.com/0pc0deFR/YaraRules
Developpeur: 0pc0deFR (alias Kevin Falcoz)
packer.yar contient plusieurs règles permettant de détecter Crypter/Packer/Protector.
*/
rule upx_0_80_to_1_24 : Packer
{
meta:
author="Kevin Falcoz"
date_create="25/02/2013"
description="UPX 0.80 to 1.24"
strings:
$str1={6A 60 68 60 02 4B 00 E8 8B 04 00 00 83 65 FC 00 8D 45 90 50 FF 15 8C F1 48 00 C7 45 FC FE FF FF FF BF 94 00 00 00 57}
condition:
$str1 at entrypoint
}
rule upx_1_00_to_1_07 : Packer
{
meta:
author="Kevin Falcoz"
date_create="19/03/2013"
description="UPX 1.00 to 1.07"
strings:
$str1={60 BE 00 ?0 4? 00 8D BE 00 B0 F? FF ?7 8? [3] ?0 9? [0-9] 90 90 90 90 [0-2] 8A 06 46 88 07 47 01 DB 75 07 8B 1E 83 EE FC 11 DB 72 ED B8 01 00 00 00 01 DB 75 07 8B 1E 83 EE FC 11 DB 11 C0}
condition:
$str1 at entrypoint
}
rule upx_3 : Packer
{
meta:
author="Kevin Falcoz"
date_create="25/02/2013"
description="UPX 3.X"
strings:
$str1={60 BE 00 [2] 00 8D BE 00 [2] FF [1-12] EB 1? 90 90 90 90 90 [1-3] 8A 06 46 88 07 47 01 DB 75 07 8B 1E 83 EE FC 11 DB 72 ED B8 01}
condition:
$str1 at entrypoint
}
rule obsidium : Packer
{
meta:
author="Kevin Falcoz"
date_create="21/01/2013"
last_edit="17/03/2013"
description="Obsidium"
strings:
$str1={EB 02 [2] E8 25 00 00 00 EB 04 [4] EB 01 ?? 8B 54 24 0C EB 01 ?? 83 82 B8 00 00 00 23 EB 01 ?? 33 C0 EB 02 [2] C3 EB 02 [2] EB 04} /*EntryPoint*/
condition:
$str1 at entrypoint
}
rule pecompact2 : Packer
{
meta:
author="Kevin Falcoz"
date_create="25/02/2013"
description="PECompact"
strings:
$str1={B8 [3] 00 50 64 FF 35 00 00 00 00 64 89 25 00 00 00 00 33 C0 89 08 50 45 43} /*EntryPoint*/
condition:
$str1 at entrypoint
}
rule aspack : Packer
{
meta:
author="Kevin Falcoz"
date_create="25/02/2013"
description="ASPack"
strings:
$str1={60 E8 00 00 00 00 5D 81 ED 5D 3B 40 00 64 A1 30 00 00 00 0F B6 40 02 0A C0 74 04 33 C0 87 00 B9 ?? ?? 00 00 8D BD B7 3B 40 00 8B F7 AC} /*EntryPoint*/
condition:
$str1 at entrypoint
}
rule execryptor : Protector
{
meta:
author="Kevin Falcoz"
date_create="25/02/2013"
description="EXECryptor"
strings:
$str1={E8 24 00 00 00 8B 4C 24 0C C7 01 17 00 01 00 C7 81 B8 00 00 00 00 00 00 00 31 C0 89 41 14 89 41 18 80 A1 C1 00 00 00 FE C3 31 C0 64 FF 30 64 89 20 64 8F 05 00 00 00 00} /*EntryPoint*/
condition:
$str1 at entrypoint
}
rule winrar_sfx : Packer
{
meta:
author="Kevin Falcoz"
date_create="18/03/2013"
description="Winrar SFX Archive"
strings:
$signature1={00 00 53 6F 66 74 77 61 72 65 5C 57 69 6E 52 41 52 20 53 46 58 00}
condition:
$signature1
}
rule mpress_2_xx_x86 : Packer
{
meta:
author="Kevin Falcoz"
date_create="19/03/2013"
last_edit="24/03/2013"
description="MPRESS v2.XX x86 - no .NET"
strings:
$signature1={60 E8 00 00 00 00 58 05 [2] 00 00 8B 30 03 F0 2B C0 8B FE 66 AD C1 E0 0C 8B C8 50 AD 2B C8 03 F1 8B C8 57 51 49 8A 44 39 06 88 04 31 75 F6}
condition:
$signature1 at entrypoint
}
rule mpress_2_xx_x64 : Packer
{
meta:
author="Kevin Falcoz"
date_create="19/03/2013"
last_edit="24/03/2013"
description="MPRESS v2.XX x64 - no .NET"
strings:
$signature1={57 56 53 51 52 41 50 48 8D 05 DE 0A 00 00 48 8B 30 48 03 F0 48 2B C0 48 8B FE 66 AD C1 E0 0C 48 8B C8 50 AD 2B C8 48 03 F1 8B C8 57 44 8B C1 FF C9 8A 44 39 06 88 04 31}
condition:
$signature1 at entrypoint
}
rule mpress_2_xx_net : Packer
{
meta:
author="Kevin Falcoz"
date_create="24/03/2013"
description="MPRESS v2.XX .NET"
strings:
$signature1={21 46 00 69 00 6C 00 65 00 20 00 69 00 73 00 20 00 69 00 6E 00 76 00 61 00 6C 00 69 00 64 00 2E 00 00 0D 4D 00 50 00 52 00 45 00 53 00 53 00 00 00 00 00 2D 2D 93 6B 35 04 2E 43 85 EF}
condition:
$signature1
}
rule rpx_1_xx : Packer
{
meta:
author="Kevin Falcoz"
date_create="24/03/2013"
description="RPX v1.XX"
strings:
$signature1= "RPX 1."
$signature2= "Copyright © 20"
condition:
$signature1 and $signature2
}
rule mew_11_xx : Packer
{
meta:
author="Kevin Falcoz"
date_create="25/03/2013"
description="MEW 11"
strings:
$signature1={50 72 6F 63 41 64 64 72 65 73 73 00 E9 [6-7] 00 00 00 00 00 00 00 00 00 [7] 00}
$signature2="MEW"
condition:
$signature1 and $signature2
}
rule yoda_crypter_1_2 : Crypter
{
meta:
author="Kevin Falcoz"
date_create="15/04/2013"
description="Yoda Crypter 1.2"
strings:
$signature1={60 E8 00 00 00 00 5D 81 ED F3 1D 40 00 B9 7B 09 00 00 8D BD 3B 1E 40 00 8B F7 AC [19] EB 01 [27] AA E2 CC}
condition:
$signature1 at entrypoint
}
rule yoda_crypter_1_3 : Crypter
{
meta:
author="Kevin Falcoz"
date_create="15/04/2013"
description="Yoda Crypter 1.3"
strings:
$signature1={55 8B EC 53 56 57 60 E8 00 00 00 00 5D 81 ED 6C 28 40 00 B9 5D 34 40 00 81 E9 C6 28 40 00 8B D5 81 C2 C6 28 40 00 8D 3A 8B F7 33 C0 EB 04 90 EB 01 C2 AC}
condition:
$signature1 at entrypoint
}