2018-12-12 05:19:57 +00:00
|
|
|
.PHONY: all setup update_sigma generate_queries clean push_to_markdown
|
|
|
|
|
2019-02-12 01:25:41 +00:00
|
|
|
all: setup setup_confluence setup_markdown push_to_confluence push_to_markdown create_analytics_and_pivoting_csv create_attack_navigator_profile
|
|
|
|
update: push_to_confluence create_analytics_and_pivoting_csv push_to_markdown create_attack_navigator_profile
|
2018-12-12 05:19:57 +00:00
|
|
|
markdown: setup_markdown push_to_markdown
|
2019-02-10 00:29:39 +00:00
|
|
|
confluence: setup_confluence push_to_confluence
|
2019-02-12 00:32:37 +00:00
|
|
|
analytics: create_analytics_and_pivoting_csv
|
2019-02-12 01:25:41 +00:00
|
|
|
navigator: create_attack_navigator_profile
|
2018-12-12 05:19:57 +00:00
|
|
|
|
|
|
|
setup:
|
2019-02-12 00:32:37 +00:00
|
|
|
@echo "[*] Updating 3rd party repository"
|
2018-12-12 05:19:57 +00:00
|
|
|
git submodule init
|
|
|
|
git submodule update
|
2019-02-13 01:46:37 +00:00
|
|
|
git submodule foreach git pull origin master
|
2018-12-12 05:19:57 +00:00
|
|
|
|
|
|
|
setup_confluence:
|
2019-02-12 00:32:37 +00:00
|
|
|
@echo "[*] Setting up confluecne"
|
2019-02-09 22:32:55 +00:00
|
|
|
@cd scripts_v2 && python3 init_confluence.py
|
2018-12-12 05:19:57 +00:00
|
|
|
|
|
|
|
setup_markdown:
|
2019-02-12 00:32:37 +00:00
|
|
|
@echo "[*] Setting up markdown"
|
2019-02-09 22:32:55 +00:00
|
|
|
@cd scripts_v2 && bash init_markdown.sh
|
2018-12-12 05:19:57 +00:00
|
|
|
|
2019-02-09 22:32:55 +00:00
|
|
|
push_to_confluence:
|
2019-02-12 00:32:37 +00:00
|
|
|
@echo "[*] Pushing data to confluecne"
|
2019-02-09 22:32:55 +00:00
|
|
|
@cd scripts_v2 && python3 main.py -C -A
|
2018-12-12 05:19:57 +00:00
|
|
|
|
|
|
|
push_to_markdown:
|
2019-02-12 00:32:37 +00:00
|
|
|
@echo "[*] Pushing data to markdown"
|
2019-02-09 22:32:55 +00:00
|
|
|
@cd scripts_v2 && python3 main.py -M -A
|
2018-12-12 05:19:57 +00:00
|
|
|
|
2019-02-12 00:32:37 +00:00
|
|
|
create_analytics_and_pivoting_csv:
|
|
|
|
@echo "[*] Creating analytics.csv and pivoting.csv"
|
2019-02-09 22:32:55 +00:00
|
|
|
@cd scripts_v2 && python3 yamls2csv.py
|
2018-12-12 05:19:57 +00:00
|
|
|
|
2019-02-12 01:25:41 +00:00
|
|
|
create_attack_navigator_profile:
|
|
|
|
@echo "[*] Creating ATT&CK Navigator profile"
|
|
|
|
@cd scripts_v2 && python3 attack_navigator_export.py
|
|
|
|
|
2018-12-12 05:19:57 +00:00
|
|
|
clean:
|
2019-02-12 00:32:37 +00:00
|
|
|
@echo "[*] Cleaning up..."
|
2018-12-12 05:19:57 +00:00
|
|
|
@rm -rf ./Atomic_Threat_Coverage
|