-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathfeatures.yml
369 lines (298 loc) · 8.76 KB
/
features.yml
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
# ---------------------------------------------- ENTROPY-RELATED METRICS -----------------------------------------------
entropy:
description: Entropy of the whole executable
result:
All: entropy
PE: pefeats[46]
entropy_code_section:
description: Entropy of .text section
result:
PE: pefeats[42]
entropy_data_section:
description: Entropy of .data section
result:
PE: pefeats[43]
entropy_pe_header:
description: Entropy of PE header
result:
PE: pefeats[45]
entropy_resource_section:
description: Entropy of .rsrc section
result:
PE: pefeats[44]
entropy_section_with_ep:
description: Entropy of section holding the Entry point (EP)
result:
PE: pefeats[47]
is_entropy_greater_than_6.801:
description: Entropy of the whole executable is above 6.801
result:
All: entropy > 6.801
source: bintropy
# ---------------------------------------------------- HEADER-BASED ----------------------------------------------------
base_of_code:
description: Base of Code
result:
PE: pefeats[10]
byte_%d_after_ep:
description: Byte %d following the EP
result:
PE: pefeats[48+%d]
values: !!python/object/new:range [64]
checksum:
description: Checksum
result:
PE: pefeats[8]
dll_characteristics_1:
description: DLL characteristics 1 (dynamic base)
result:
PE: pefeats[0]
dll_characteristics_2:
description: DLL characteristics 2 (force integrity)
result:
PE: pefeats[1]
dll_characteristics_3:
description: DLL characteristics 3 (nx compat)
result:
PE: pefeats[2]
dll_characteristics_4:
description: DLL characteristics 4 (no isolation)
result:
PE: pefeats[3]
dll_characteristics_5:
description: DLL characteristics 5 (no SEH)
result:
PE: pefeats[4]
dll_characteristics_6:
description: DLL characteristics 6 (no bind)
result:
PE: pefeats[5]
dll_characteristics_7:
description: DLL characteristics 7 (WDM driver)
result:
PE: pefeats[6]
dll_characteristics_8:
description: DLL characteristics 8 (terminal server aware)
result:
PE: pefeats[7]
ep_ratio:
description: ratio between raw data and virtual size for the section of entry point
result:
PE: pefeats[36]
image_base:
description: Image Base
result:
PE: pefeats[9]
max_ratio_rdata:
description: Maximum ratio raw data per virtual size among all the sections
result:
PE: pefeats[39]
min_ratio_rdata:
description: Minimum ratio raw data per virtual size among all the sections
result:
PE: pefeats[40]
number_addresses_in_iat:
description: Number of addresses (corresponds to functions) found in the import address table (IAT)
result:
PE: pefeats[116]
number_dll_imported:
description: Number of DLLs imported
result:
PE: pefeats[112]
number_func_imported_in_idt:
description: Number of functions imported found in the import table directory (IDT)
result:
PE: pefeats[113]
number_malicious_api_imported:
description: Number of malicious APIs imported
result:
PE: pefeats[114]
number_non_standard_sections:
description: Number of non-standards sections
result:
All: len(binary['non_standard_sections'])
PE: pefeats[22]
number_rw_sections:
description: Number of readable and writable sections
result:
PE: pefeats[28]
number_rwx_sections:
description: Number of Writable and Readable and Executable sections
result:
PE: pefeats[29]
number_rx_sections:
description: Number of readable and executable sections
result:
PE: pefeats[27]
number_sections_size_0:
description: Number of sections having their physical size =0 (size on disk)
result:
PE: pefeats[37]
number_sections_vsize>dsize:
description: Number of sections having their virtual size greater than their raw data size
result:
PE: pefeats[38]
number_standard_sections:
description: Number of standards sections
result:
All: len(binary['standard_sections'])
PE: pefeats[21]
number_w_sections:
description: Number of Writable sections
result:
PE: pefeats[25]
number_wx_sections:
description: Number of Writable and Executable sections
result:
PE: pefeats[26]
number_x_sections:
description: Number of Executable sections
result:
PE: pefeats[24]
number_resources:
description: Number of resources
result:
PE: pefeats[118]
os_major_version:
description: OS Major version
result:
PE: pefeats[11]
os_minor_version:
description: OS Minor version
result:
PE: pefeats[12]
ratio_malicious_api_imported:
description: Ratio between the number of malicious APIs imported to the number of all functions imported by the PE
result:
PE: pefeats[115]
ratio_standard_sections:
description: Ratio between the number of standards sections found and the number of all sections found in the PE under analysis
result:
PE: pefeats[23]
section_alignment:
description: Section Alignment
result:
PE: pefeats[20]
size_of_code:
description: Size of Code
result:
PE: pefeats[14]
size_of_headers:
description: Size of Headers
result:
PE: pefeats[15]
size_of_image:
description: Size of Image
result:
PE: pefeats[13]
size_of_initializeddata:
description: Size Of InitializedData
result:
PE: pefeats[16]
size_of_stack_commit:
description: Size of Stack Commit
result:
PE: pefeats[19]
size_of_stackreverse:
description: Size Of StackReserve
result:
PE: pefeats[18]
size_of_uninitializeddata:
description: Size Of UninitializedData
result:
PE: pefeats[17]
# -------------------------------------------------- BOOLEAN FEATURES --------------------------------------------------
is_address_to_rdata_not_conform:
description: Address pointing to raw data on disk is not conforming with the file alignement
result:
PE: pefeats[41]
is_base_of_code_standard:
description: Is the BaseOfCode a multiplier of 0x1000
result:
PE: base_of_code % 0x1000 == 0
is_checksum_null:
description: Is the checksum set to 0
result:
PE: checksum == 0
is_code_section_90%_of_image_size:
description: Is the size of the code section greather or equal to 90% of the image size
result:
PE: size_of_code / size_of_image >= .9
is_code_section_not_present:
description: Code section is not present in the PE under analysis
result:
PE: pefeats[32]
is_code_section_not_x:
description: Is the code section not executable
result:
PE: pefeats[30]
is_debug_dir_present:
description: Debug directory is present or not
result:
PE: pefeats[117]
is_ep_not_in_code_section:
description: EP is not in the code section
result:
PE: pefeats[33]
is_ep_not_in_standard_section:
description: EP is not in a standard section
result:
PE: pefeats[34]
is_ep_not_in_x_section:
description: EP is not in an executable section
result:
PE: pefeats[35]
is_image_base_standard:
description: "Is the ImageBase standard (Windows CE: 0x10000, other Windows PE: 0x400000, DLL: 0x10000000)"
result:
PE: image_base in (0x10000, 0x400000, 0x10000000)
source: https://docs.microsoft.com/en-us/windows/win32/debug/pe-format
is_os_major_version_%d:
description: Is the OS major version equal to %d
result:
PE: os_major_version == %d
values: !!python/object/new:range [4, 7]
is_os_major_version_standard:
description: Is the OS major version within 4 (<Windows XP) and 10 (Windows 11)
result:
PE: os_major_version in range(4, 11)
is_os_minor_version_%d:
description: Is the OS minor version equal to %d
result:
PE: os_minor_version == %d
values: !!python/object/new:range [0, 4]
is_os_minor_version_standard:
description: Is the OS minor version within 0 and 3
result:
PE: os_minor_version in range(0, 4)
is_size_of_headers_%dB:
description: Is the size of the headers equal to %dB
result:
PE: size_of_headers == %d
values: [512, 1024, 1536, 4096]
is_size_of_headers_non_standard:
description: Is the size of the headers not equal to any of 512B, 1024B, 1536B or 4096B
result:
PE: size_of_headers not in (512, 1024, 1536, 4096)
is_size_of_initializeddata_gte_%dMB:
description: Is the size of initialized data greater than or equal to %dMB
result:
PE: size_of_initializeddata >= %d * 1024 * 1024
values: !!python/object/new:range [1, 6]
is_size_of_initializeddata_notnull:
description: Is the size of initialized data not null
result:
PE: size_of_initializeddata > 0
is_size_of_uninitializeddata_gte_%dMB:
description: Is the size of uninitialized data greater than or equal to %dMB
result:
PE: size_of_uninitializeddata >= %d * 1024 * 1024
values: !!python/object/new:range [1, 6]
is_size_of_uninitializeddata_notnull:
description: Is the size of uninitialized data not null
result:
PE: size_of_uninitializeddata > 0
is_x_section_not_code:
description: Is the executable section not a code section
result:
PE: pefeats[31]