forked from atc-project/atomic-threat-coverage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
83 lines (67 loc) · 2.3 KB
/
Makefile
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
.PHONY: all analytics navigator elastic setup clean visualizations thehive
all: setup_repo markdown confluence analytics navigator elastic
analytics: create_analytics_and_pivoting_csv
navigator: create_attack_navigator_profile create_attack_navigator_profile_per_customer
elastic: create_es_export
setup: setup_repo setup_confluence setup_markdown
visualizations: make_visualizations
thehive: thehive_templates
setup_repo:
@echo "[*] Updating 3rd party repository"
git submodule init
git submodule update
git submodule foreach git pull origin master
setup_confluence:
@echo "[*] Setting up confluence"
python3 main.py -C --init
setup_markdown:
@echo "[*] Setting up markdown"
python3 main.py -M --init
push_to_confluence:
@echo "[*] Pushing data to confluence"
python3 main.py -C -A
push_to_markdown:
@echo "[*] Pushing data to markdown"
python3 main.py -M -A
create_analytics_and_pivoting_csv:
@echo "[*] Creating analytics.csv and pivoting.csv"
python3 main.py -CSV
create_attack_navigator_profile:
@echo "[*] Creating common Threat Detection ATT&CK Navigator layer"
python3 main.py -TD-NAV
create_attack_navigator_profile_per_customer:
@echo "[*] Creating Threat Detection ATT&CK Navigator layers per customer"
python3 main.py -TD-NAV-CU
markdown:
@echo "[*] Creating markdown repository and pushing data"
python3 main.py --markdown --auto --init
mkdocs:
@echo "[*] Creating mkdocs site"
mkdocs build
confluence:
@echo "[*] Creating confluence repository and pushing data"
python3 main.py --confluence --auto --init
create_es_export:
@echo "[*] Creating elasticsearch index"
python3 main.py -ES
make_visualizations:
@echo "[*] Creating visualizations.."
ifeq ($(GUI), 1)
python3 main.py -V --vis-export-type
else
python3 main.py -V
endif
thehive_templates:
@echo "[*] Generating TheHive Case templates based on Response Playbooks"
python3 main.py --thehive
# TODO: make clean works with non default paths from config
clean:
@echo "[*] Cleaning up..."
@rm -rf ./Atomic_Threat_Coverage
@rm -rf ./site
@rm -f ./analytics/generated/analytics.csv
@rm -f ./analytics/generated/atc_es_index.json
@rm -f ./analytics/generated/pivoting.csv
@rm -f ./analytics/generated/thehive_templates/*.json
@rm -f ./analytics/generated/visualizations/*.json
@rm -f ./analytics/generated/atc_attack_navigator_profile*.json