-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.py
50 lines (45 loc) · 1.47 KB
/
config.py
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
"""
Configuration data for modules used by the framework
"""
from maec.misc.options import ScriptOptions
modules = [
{
"import_path":"threatexpert_to_maec",
"options": {
"deduplicate_bundles": True,
"dereference_bundles": False,
"normalize_bundles": True
}
},
{
"import_path":"virustotal_to_maec",
"options": {
"deduplicate_bundles": False,
"dereference_bundles": False,
"normalize_bundles": False
},
"api_key":"b4f3711747f041f050a1501c89f166c99fcff0e7166307ab3ea861d19b19dbcf"
},
{
"import_path":"pefile_to_maec",
"options": {
"deduplicate_bundles": False,
"dereference_bundles": False,
"normalize_bundles": False
}
},
]
global_config = {
"proxies": {
"http":"http://gatekeeper.mitre.org:80",
#"https":"http://example.com:80"
}
}
# turn options dicts into ScriptOptions objects
for module in modules:
options_object = ScriptOptions()
options_dict = module['options']
options_object.deduplicate_bundles = options_dict['deduplicate_bundles']
options_object.dereference_bundles = options_dict['dereference_bundles']
options_object.normalize_bundles = options_dict['normalize_bundles']
module['options'] = options_object