Datasets:

Modalities:
Text
Formats:
text
ArXiv:
Libraries:
Datasets
License:
dtrizna commited on
Commit
07df1e9
·
verified ·
1 Parent(s): 2c4f474

Update build_quovadis_ember.py

Browse files
Files changed (1) hide show
  1. build_quovadis_ember.py +0 -32
build_quovadis_ember.py CHANGED
@@ -5,38 +5,6 @@ from ember import PEFeatureExtractor
5
  import numpy as np
6
  import typing as t
7
 
8
- # TASK:
9
- # we have structure like this:
10
- # quovadis/
11
- # - windows_emulation_trainset/
12
- # - .. / report_folder1/
13
- # - .. / .. / <hash>.dat.json
14
- # - .. / .. / <hash>.dat.json
15
- # - .. / report_folder2/
16
- # - .. / .. / <hash>.dat.json
17
- # - .. / .. / <hash>.dat.json
18
- # - .. / ..
19
- # - windows_emulation_testset/
20
- # - .. / report_folder1/
21
- # - .. / .. / <hash>.dat.json
22
- # - .. / .. / <hash>.dat.json
23
- # - .. / ..
24
-
25
- # if 'clean' in report_folder, it is benign
26
- # else it is malicious
27
-
28
- # we want to build a dataset with the following structure:
29
- # quovadis_ember/
30
- # - train_arr.npy
31
- # - train_labels.npy
32
- # - test_arr.npy
33
- # - test_labels.npy
34
-
35
- # we have folder with PE files where we need to read raw bytes and use
36
- # from ember import PEFeatureExtractor
37
- # extractor = PEFeatureExtractor(feature_version)
38
- # features = np.array(extractor.feature_vector(file_data), dtype=np.float32)
39
-
40
  EMBER_DIM = 2381
41
 
42
  def find_filename(hash: str, folder: Path) -> str:
 
5
  import numpy as np
6
  import typing as t
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  EMBER_DIM = 2381
9
 
10
  def find_filename(hash: str, folder: Path) -> str: