diff options
author | W. Kosior <koszko@koszko.org> | 2024-12-18 08:41:34 +0100 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2024-12-18 08:41:34 +0100 |
commit | 15105955f461a5c57be66e49adcde2c31046e1cd (patch) | |
tree | eda040698a77fa23a238135782f75eb18e91b226 | |
parent | 6e2b211d2cd4710ec793d8c56d0d20f4c2407a2e (diff) | |
download | AGH-threat-intel-course-15105955f461a5c57be66e49adcde2c31046e1cd.tar.gz AGH-threat-intel-course-15105955f461a5c57be66e49adcde2c31046e1cd.zip |
Add TLP signals.
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | techniques_table_doc.tex | 4 | ||||
-rw-r--r-- | tlp.tex | 37 |
3 files changed, 43 insertions, 2 deletions
@@ -38,12 +38,12 @@ profiles_with_scraped_info.yaml: scrape_groups_info.py profiles.yaml techniques_table.tex: techniques_table.py profiles_with_scraped_info.yaml $(PYTHON) $^ > $@ -techniques_table_doc.pdf: techniques_table_doc.tex techniques_table.tex +techniques_table_doc.pdf: techniques_table_doc.tex tlp.tex techniques_table.tex $(LATEXMK) -pdf $< th-proj-archive.tar.gz: Makefile profiles.yaml scrape_groups_info.py \ tables.md techniques_table.py threats_by_sector_table.py \ - $(DEFAULT_TARGETS) + tlp.tex $(DEFAULT_TARGETS) tar --transform='s|^|th-proj-archive/|' \ --mtime=1970-01-01T00:00:00-00:00 --group=0 --owner=0 \ -czf $@ $^ diff --git a/techniques_table_doc.tex b/techniques_table_doc.tex index 0fbb023..ba7cb50 100644 --- a/techniques_table_doc.tex +++ b/techniques_table_doc.tex @@ -8,12 +8,16 @@ \usepackage{longtable} \usepackage[table]{xcolor} +\input{tlp.tex} + \title{Statistics of groups using particular techniques} \author{Wojciech Kosior} \begin{document} +\useTLPFancyHeader{CLEAR} + \input{techniques_table.tex} \end{document} @@ -0,0 +1,37 @@ +%% SPDX-License-Identifier: CC0-1.0 +%% +%% This LaTeX source is copyright (C) 2024 W. Kosior <koszko@koszko.org> + +\usepackage{xcolor} +\usepackage{fancyhdr} +\usepackage{tikz} + +\definecolor{TLPAMBER}{HTML}{FFC000} +\definecolor{TLPAMBER+STRICT}{HTML}{FFC000} +\definecolor{TLPCLEAR}{HTML}{FFFFFF} +\definecolor{TLPGREEN}{HTML}{33FF00} +\definecolor{TLPRED}{HTML}{FF2B2B} + +\newcommand{\setTLP}[1]{% + \def \currentTLP {#1} +} + +\newcommand{\changeTLP}[1]{% + \newpage + \setTLP{#1} +} + +\newcommand{\useTLPFancyHeader}[1]{% + \setTLP{#1} + \pagestyle{fancy} + \fancyhf{} + \lhead{ + \colorbox{black}{ + \color{TLP\currentTLP} + \begin{tikzpicture} + \draw[fill=TLP\currentTLP](1,1) circle (0.2) node [] {}; + \end{tikzpicture} + \textbf{TLP:\currentTLP} + } + }% +} |