Repository Public MIT Research preview
1% S20-F02 — La carte du modèle de menaces : points d'entrée, frontières de confiance, actifs.2% Idée : une menace entre par un point précis, traverse une frontière précise et vise un actif précis.3% Dresser les trois listes, c'est déjà savoir où placer les contrôles. Les décomptes (menaces par4% entrée, par frontière, par actif, par catégorie STRIDE) viennent de S20-F02-donnees.tex.5\input{S20-F02-donnees.tex}%6\begin{tikzpicture}[x=1mm, y=1mm]7 % ---------- Colonne 1 : points d'entrée ----------8 \node[atlas heading, anchor=west] at (0,50.6) {Points d'entrée};9 \newcommand{\AtlasFigMenEntree}[4]{%10 \node[atlas block flow, text width=23.5mm, minimum height=7.8mm, font=\AtlasSizeTiny, align=left] (e#1) at (13.5,52.4-9.6*#1) {\textbf{#2}\enspace #3\hfill\textbf{#4}};}11 \AtlasFigMenEntrees12 \node[atlas note] at (69,50.6) {\AtlasFigMenTotal\ menaces\enspace : \enspace\AtlasFigMenStride};13 % ---------- Colonne 2 : l'agent ----------14 \draw[atlas region] (40,7.5) rectangle (98,46.5);15 \node[atlas tag=atlasMuted, anchor=west] at (43,46.5) {AGENT D'ACCUEIL (simulé)};16 \node[atlas block, text width=16mm, minimum height=9mm] (ctx) at (53,36) {\textbf{Contexte}};17 \node[atlas block strong, text width=16mm, minimum height=11mm] (pol) at (53,17.5) {\textbf{Politique}\\ propose};18 \node[atlas block valid, text width=16mm, minimum height=11mm] (ctl) at (85,17.5) {\textbf{Contrôles}\\ en code};19 \node[atlas block, text width=16mm, minimum height=9mm] (out) at (85,36) {\textbf{\AtlasFigMenOutils\ outils}};20 \draw[atlas arrow] (ctx) -- (pol);21 \draw[atlas arrow] (pol) -- node[atlas note, above] {appel} (ctl);22 \draw[atlas arrow] (ctl) -- (out);23 \draw[atlas arrow] (out) -- node[atlas note, above] {résultat} (ctx);24 \draw[atlas arrow] (e1.east) -- ++(9.5,0) |- ([yshift=2.8mm]ctx.west);25 \draw[atlas arrow] (e2.east) -- ++(7.5,0) |- (ctx.west);26 \draw[atlas arrow] (e3.east) -- ++(5.5,0) |- ([yshift=-2.8mm]ctx.west);27 \draw[atlas arrow muted] (e4.east) -- ++(5.5,0) |- (85,10) -- (ctl.south);28 % ---------- Frontières ----------29 \draw[atlas boundary] (30.2,4) -- (30.2,48);30 \draw[atlas boundary, line width=.9pt] (69,4) -- (69,44.5);31 \draw[atlas boundary] (102.5,4) -- (102.5,48);32 \def\AtlasFigMenNbA{0}\def\AtlasFigMenNbB{0}\def\AtlasFigMenNbC{0}\def\AtlasFigMenNbD{0}\def\AtlasFigMenNbE{0}%33 \newcommand{\AtlasFigMenFrontiere}[4]{%34 \ifcase#1\or\def\AtlasFigMenNbA{#4}\or\def\AtlasFigMenNbB{#4}\or\def\AtlasFigMenNbC{#4}\or\def\AtlasFigMenNbD{#4}\or\def\AtlasFigMenNbE{#4}\fi}35 \AtlasFigMenFrontieres36 \node[atlas tag=atlasHazard, anchor=south] at (30.2,-1) {F1 : \AtlasFigMenNbA\enspace F2 : \AtlasFigMenNbB};37 \node[atlas tag=atlasHazard, anchor=south] at (69,-1) {F3 agent / outils : \AtlasFigMenNbC};38 \node[atlas tag=atlasHazard, anchor=south] at (102.5,-1) {F4 : \AtlasFigMenNbD\enspace F5 : \AtlasFigMenNbE};39 % ---------- Colonne 3 : actifs ----------40 \node[atlas heading, anchor=west] at (107,50.6) {Actifs à protéger};41 \newcommand{\AtlasFigMenActif}[4]{%42 \node[atlas block, text width=30.6mm, minimum height=7.4mm, font=\AtlasSizeTiny, align=left] (a#1) at (124.7,52.6-9.3*#1) {\textbf{#2}\enspace #3\hfill\ \textbf{#4}};}43 \AtlasFigMenActifs44 \draw[atlas arrow] (out.east) -- ++(5,0) |- (a1.west);45 \draw[atlas arrow] (out.east) -- ++(5,0) |- (a3.west);46\end{tikzpicture}47