atomic-threat-coverage/Makefile

42 lines
1.3 KiB
Makefile
Raw Normal View History

2018-12-12 05:19:57 +00:00
.PHONY: all setup update_sigma generate_queries clean push_to_markdown
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
analytics: create_analytics_and_pivoting_csv
navigator: create_attack_navigator_profile
2018-12-12 05:19:57 +00:00
setup:
@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:
@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:
@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:
@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:
@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
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
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:
@echo "[*] Cleaning up..."
2018-12-12 05:19:57 +00:00
@rm -rf ./Atomic_Threat_Coverage