forked from maltegotransforms/opencti-maltego
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py.sample
55 lines (44 loc) · 2.26 KB
/
config.py.sample
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
import os
from maltego_trx.decorator_registry import TransformRegistry, TransformSetting
# Absolute path to the project.py folder
local_execution_path = "/path/to/your/project/opencti-maltego/trx/gunicorn/"
# Absolute path to a python3 executable used to run transforms
python_path = "/usr/bin/python3"
# Configuration of the OpenCTI API
opencti_config = {
"url": "https://demo.opencti.io",
"token": "2b4f29e3-5ea8-4890-8cf5-a76f61f1e2b2",
"log_level": "error",
"ssl_verify": True,
"proxies": {},
"limit": 256
}
# OpenCTI marking types to be shown on each entity in Maltego
format_config = {
"marking_color": "TLP",
"marking_text": None
}
# When running in server mode, this caps the cache size on OpenCTI clients / sessions.
# You can safely lower this, it might lead to lower client sessions reuse, but usually it shouldn't be an issue.
max_client_sessions = 2048
# These values will be used to generate an importable CSV config for the iTDS. Local transform users can ignore these.
HOST_URL = os.environ.get("HOST_URL", "https://localhost:8088")
opencti_url_setting = TransformSetting('opencti_url', 'OpenCTI URL', setting_type='string', default_value="",
popup=True)
opencti_token_setting = TransformSetting('opencti_token', 'OpenCTI Token', setting_type='string',
default_value="", popup=True)
ssl_verify_setting = TransformSetting('opencti_ssl_verify', 'SSL Verify', setting_type='boolean', default_value="false",
popup=False)
http_proxies_setting = TransformSetting('opencti_http_proxies', 'HTTP Proxies', setting_type='string', optional=True,
popup=False)
global_settings = [
opencti_url_setting,
opencti_token_setting,
ssl_verify_setting,
http_proxies_setting
]
global_registry = TransformRegistry(owner='Maltego Technologies GmbH - OpenCTI On-Premise',
author='Maltego Technologies GmbH - OpenCTI On-Premise',
host_url=HOST_URL,
seed_ids=['opencti'],
global_settings=global_settings)