Skip to content

eBPF-based security platform

2.6 KB
Raw Blame
% SPDX-License-Identifier: BSD-2-Clause
% Copyright (c) 2026 Authors of shirudo
%
% Enrolling from a builder's records: the builder creates both keys in the
% TPM and gives their names to the operator's inventory; every attestation
% after that is a nonce, a quote and a certification, and a verify that
% pins those names (operate/run/attest.rst).
\documentclass[tikz,dvisvgm]{standalone}
\usepackage{shirudo-figure}

\begin{document}
\begin{tikzpicture}
  \useasboundingbox (0,0) rectangle (900,500);

  \begin{scope}[link, thin, dash pattern=on 2.25bp off 3bp]
    \draw (120,54) -- (120,206);
    \draw (340,54) -- (340,452);
    \draw (570,54) -- (570,490);
    \draw (790,54) -- (790,490);
    \draw (10,206) -- (890,206);
  \end{scope}

  \draw[box, dash pattern=on 3.75bp off 3bp] (45,10) rectangle ++(150,44);
  \foreach \x in {265,495,715}
    \draw[box] (\x,10) rectangle ++(150,44);
  \draw[box] (220,452) rectangle ++(240,36);

  \draw[flow] (120,104) -- (788,104);
  \draw[flow, dash pattern=on 3.75bp off 3bp] (790,124) -- (122,124);
  \draw[flow] (120,172) -- (338,172);
  \draw[flow] (340,244) -- (568,244);
  \draw[flow] (570,282) -- (788,282);
  \foreach \y in {320,357,394} {
    \draw[flow] (570,\y) -- (788,\y);
    \draw[flow, dash pattern=on 3.75bp off 3bp] (790,\y+12) -- (572,\y+12);
  }
  \draw[flow] (570,436) -- (342,436);

  \begin{scope}[note, every node/.append style={anchor=base}]
    \foreach \x/\t/\s in {120/Builder/hypervisor or provisioner,
        340/Operator/{inventory, no TPM}, 790/TPM/physical or virtual} {
      \node[title] at (\x,30) {\t};
      \node[small] at (\x,46) {\s};
    }
    \node[title] at (570,30) {Target};
    \node[mono] at (570,46) {shirudo attest};

    \node[code] at (455,96)
      {CreatePrimary: AK, EK (attest\textquotesingle s templates)};
    \node[small] at (455,140) {their names};
    \node at (230,164) {ak-name, ek-name};
    \node[small] at (230,190) {into the inventory};

    \node at (455,236) {nonce};
    \node at (680,274) {CreatePrimary: AK};
    \node[small] at (680,298) {the name the builder recorded};
    \node[small] at (680,313) {Certify registers with nonce};
    \node[small] at (680,350) {Quote PCRs over opening signatures};
    \node[small] at (680,387) {Certify registers over quote signature};
    \node at (455,428) {evidence document};
    \node[code] at (340,475) {verify --ak-name --ek-name};
  \end{scope}

  \begin{scope}[note, small]
    \node[anchor=base west] at (128,76) {before handover, once};
    \node[anchor=base west] at (128,226) {every attestation};
  \end{scope}
\end{tikzpicture}
\end{document}