forked from mitre-attack/tram
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.yml
44 lines (40 loc) · 2.74 KB
/
config.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
---
# NOTICE: As required by the Apache License v2.0, this notice is to state this file has been modified by Arachne Digital
# This file has been moved into a different directory
# To see its full history, please use `git log --follow <filename>` to view previous commits and additional contributors
# The following fields must have a value.
# If any of these fields are omitted at runtime, they will default to their original values.
# Specified host and port where Thread will run
host: 0.0.0.0
port: 9999
# If you are running Thread locally (you may want to set as True to bypass user restrictions locally)
run-local: True
# Either 'taxii-server' for latest data or 'local-json' to use local data (data from json_file)
taxii-local: taxii-server
# Either 'js-online-src' for fetching JS libraries online or 'js-local-src' to use locally saved JS libraries
js-libraries: js-online-src
# The database backend to use: currently either 'sqlite3' or 'postgresql' (sqlite3 recommended for local-use)
# If using postgresql, requires package psycopg2 (see pre-reqs: https://www.psycopg.org/docs/install.html#prerequisites)
# If not using postgresql, you can (re)move the file database/thread_postgresql.py to avoid installing psycopg2
db-engine: sqlite3
# If you would like the database to be re-built on launch of Thread
# Ineffective when db-engine = 'postgresql'; if wanted, call `main.py --build-db` separately (before launching Thread)
build: True
# The maximum number of reports which can be analysed concurrently at a time.
# The default value of 1 means for reports in the queue, one is analysed at a time before the next report in the queue.
max-analysis-tasks: 1
# The following fields are optional - please check comments for behaviour when omitted.
# The JSON file containing attack data; ensure file is in /models directory
# If taxii-local = 'local-json', the database will import this data.
# Regardless, the models will use any examples (field, 'example_uses') for attacks from this file (or our default).
json_file: attack_dict.json
# If taxii-local = 'taxii-server', this determines if you want the file `json_file` to be updated with the server-data.
# If you do not use version-control (e.g. Git), we recommend you keep a backup of your file if you turn this setting on.
update_json_file: False
# Does your file `json_file` have each variable on a new line? If so, set the indent here; no indent means contents
# - if `update_json_file` is True - condense to 1 line. For readability, we recommend a value of at least 2.
json_file_indent: 2
# The maximum number of reports allowed in the queue; for no limit, remove this field or set value x < 1
queue_limit: 20
# The maximum number of sentences to analyse in reports; for no limit, remove this field or set value x < 1
sentence_limit: 500