atomic-threat-coverage/Makefile

36 lines
1.1 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
update: push_to_confluence create_analytics_and_pivoting_csv push_to_markdown
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
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
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
clean:
@echo "[*] Cleaning up..."
2018-12-12 05:19:57 +00:00
@rm -rf ./Atomic_Threat_Coverage