-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
548 lines (459 loc) · 14.5 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
% !TeX document-id = {93f06080-3c65-44c6-b88c-2401e68b7c89}
% !TeX program = lualatex
% !TeX TXS-program:bibliography = txs:///biber
\documentclass[11pt, twoside, openright]{book}
\usepackage{fontspec}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{sectsty}
\usepackage{listings}
\usepackage{url}
\usepackage{float}
\usepackage[fit]{truncate}
\usepackage{multirow}
\usepackage{array}
\usepackage{template/lic_bok}
\usepackage{pdfpages}
\usepackage{tikz}
\usepackage{tikzpagenodes}
\usepackage{etoolbox}
\usepackage{wrapfig}
\usepackage{multicol}
\usepackage{setspace}
\usepackage{tocbibind} % include table of contents in table of contents
%\usepackage{showframe}% layout debug
% G5 format for dissertation at EIT.
\usepackage[
paperwidth=169mm,
paperheight=239mm,
total={120mm,196mm},
top=22mm,
centering,
bindingoffset=10mm]{geometry}
\setlength{\headheight}{14pt}
%\usepackage[e5paper]{geometry}
% Page margins:
%\geometry{
% inner=24mm,
% outer=24mm,
% top=20mm,
% bottom=36mm,
% bindingoffset=10mm,
% headheight=10mm
%}
% % Set fonts
\setmainfont[Ligatures=TeX,Numbers={Lining,Proportional}]{AGaramondPro}[
Extension = .otf ,
UprightFont = *-Regular ,
BoldFont = *-Semibold ,
ItalicFont = *-Italic ]
\AtBeginEnvironment{tabular}{\addfontfeatures{Numbers={Monospaced}}}
\setsansfont[Ligatures=TeX]{FrutigerLTStd}[
Extension = .otf ,
UprightFont = *-Light ,
BoldFont = *-Roman ,
ItalicFont = *-LightItalic ]
\setmonofont{Inconsolata}
% Set line spacing to slightly below default since the default
% becomes unnecessary big with Adobe Garamond.
\setstretch{0.95}
% % Fonts and design for tables and figures
% format=hang means that Table 1: will be indented left and following lines have hanged indent.
% singlelinecheck=false makes captions non-centered also when they are a single line.
\usepackage{caption}
\captionsetup{margin=0em,font={footnotesize,sf},labelfont={bf},format=hang,singlelinecheck=false}
% default path for figures
\graphicspath{{figures/}}
\usepackage{titling}% \theauthor, \thetitle
% Custom quote environment:
\AtBeginEnvironment{quote}{\singlespacing\small}
\usepackage{mathtools}
\usepackage{amssymb,amsmath,amsthm}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\allowdisplaybreaks % Allow page breaks in align.
% Table stuff.
\usepackage{booktabs}
\usepackage{makecell}
% TPM12to20 dependencies
\usepackage{enumitem}
% slightlygreedy dependencies
\usepackage{bm}
\usepackage{subcaption}
\usetikzlibrary{
arrows,
arrows.meta,
backgrounds,
calc,
chains,
decorations,
decorations.markings,
decorations.text,
decorations.pathmorphing,
decorations.pathreplacing,
matrix,
patterns,
positioning,
scopes,
shadows,
shapes
}
% set default tikz arrowhead style to a "good" one
\tikzset{>=latex}
\usepackage[backend=biber,
maxcitenames=2,
mincrossrefs=99,
style=alphabetic,
doi=false,
isbn=false,
url=false,
refsegment=part,
defernumbers=true,
giveninits=true,
sorting=anyt]{biblatex}
% https://tex.stackexchange.com/questions/187643/biblatex-how-can-i-suppress-some-fields-for-multiple-entry-types
%\AtEveryBibitem{%
%\clearfield{editor}%
%}
\usepackage[hidelinks]{hyperref}
\usepackage{bookmark} % to fix PDF bookmarks, otherwise the nesting is completely wrong.
\addbibresource{refs.bib}
\addbibresource{papers/tpmhas.bib}
\addbibresource{papers/tpm12to20.bib}
\addbibresource{papers/trustanchors.bib}
\addbibresource{papers/recsys.bib}
\addbibresource{papers/recsyssgx.bib}
\addbibresource{papers/slightlygreedy.bib}
% Fix bibliography/reference naming so it both exist in toc and print
% References instead of Bibliography, and fixes rightmark so References
% is shown in not only caps in rightmark.
\defbibheading{subbibliography}{%
\section*{References}%
\addcontentsline{toc}{section}{References}%
\markboth{References}{References}}
\defbibheading{bibintoc}{%
\chapter*{References}%
\addcontentsline{toc}{chapter}{References}%
\markboth{References}{References}}
% https://tex.stackexchange.com/questions/11707/how-to-force-output-to-a-left-or-right-page/11709#11709
\newcommand*\cleartoleftpage{%
\clearpage
\ifodd\value{page}\hbox{}\newpage\fi
}
% References
\newcommand{\chapref}[1]{Chapter~\ref{#1}}
\newcommand{\figref}[1]{Figure~\ref{#1}}
\newcommand{\secref}[1]{Section~\ref{#1}}
% Make all sections sanserif.
%\allsectionsfont{\sffamily}
% Make fancy header and no footer.
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[LE, RO]{\bfseries\thepage}
\fancyhead[LO]{\rightmark}
\fancyhead[RE]{\truncate{.95\headwidth}{\leftmark}}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}%
\fancypagestyle{plain}{
\fancyfoot[LE, RO]{\chapterFoot}
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
}
\newcommand{\chapterFoot}{}
\newcommand{\markmargin}{}
\newlength{\spiff}
\newcommand{\paperref}[1]{Paper~\ref{#1}}
\newif\ifpopvetOnly
\newif\ifcontributionStatementOnly
\newif\ifpaperI % TPM HAS
\newif\ifpaperII % TPM migration
\newif\ifpaperIII % SDN
\newif\ifpaperIV % recsys
\newif\ifpaperV % recsyssgx
\newif\ifpaperVI % greedy
\paperItrue
\paperIItrue
\paperIIItrue
\paperIVtrue
\paperVtrue
\paperVItrue
%\popvetOnlytrue
%A. Cobleigh, M. Hell, L. Karlsson, O. Reimer, J. Sönnerup, D. Wisenhoff: “Identifying, Prioritizing and Evaluating Vulnerabilities in Third Party Code”. IEEE EDOCW 2018, Stockholm, Sweden, pp. 208–211, IEEE. DOI: 10.1109/EDOCW.2018.00038
% Information Systems Security and Privacy. ICISSP 2017, Revised Selected Papers, CCIS Vol. 867, pp. 273–294, Springer. DOI: 10.1007/978-3-319-93354-2_13
%N. Paladi, L. Karlsson: “Safeguarding VNF Credentials with Intel SGX”. SIGCOMM Posters and Demos ’17, Los Angeles, CA, USA, ACM. DOI: 10.1145/3123878.3132016
%
%L. Karlsson, M. Hell, P. Stankovski: “Improved Greedy Nonrandomness Detectors for Stream Ciphers”. 3rd International Conference on Information Systems Security and Privacy, ICISSP 2017, Porto, Portugal, pp. 225–232, SCITEPRESS. DOI: 10.5220/0006268202250232
\newcommand{\paperItitle}{Using TPM Secure Storage in Trusted High Availability Systems}
\newcommand{\paperIref}{%
Martin Hell, Linus Karlsson, Ben Smeets, and Jelena Mirosavljevic.
``\paperItitle''.
In \emph{The 6th International Conference on Trusted Systems, INTRUST 2014, Beijing, China}.
LNCS Vol. 9473, pp. 243--258, Springer. % DOI: 10.1007/978-3-319-27998-5_16
}
\newcommand{\paperIItitle}{Enabling Key Migration Between Non-Compatible TPM Versions}
\newcommand{\paperIIref}{%
Linus Karlsson and Martin Hell.
``\paperIItitle''.
In \emph{Trust and Trustworthy Computing, TRUST 2016, Vienna, Austria}.
LNCS Vol. 9824, pp. 101--118, Springer. % DOI: 10.1007/978-3-319-45572-3_6}.
}
\newcommand{\paperIIItitle}{Trust Anchors in Software Defined Networks}
\newcommand{\paperIIIref}{%
Nicolae Paladi, Linus Karlsson, and Khalid Elbashir.
``\paperIIItitle''.
In \emph{23rd European Symposium on Research in Computer Security, ESORICS 2018, Barcelona, Spain}.
LNCS Vol. 11009, pp. 485--504, Springer. % DOI: 10.1007/978-3-319-98989-1_24
}
\newcommand{\paperIVtitle}{A Recommender System for User-Specific Vulnerability Scoring}
\newcommand{\paperIVref}{%
Linus Karlsson, Pegah Nikbakht Bideh, Martin Hell.
``\paperIVtitle''.
In \emph{14th International Conference on Risks and Security of Internet and Systems, CRiSIS 2019, Hammamet, Tunisia}.
\emph{In press}
}
\newcommand{\paperVtitle}{Privacy-enabled Recommendations for Software Vulnerabilities}
\newcommand{\paperVref}{%
Linus Karlsson and Nicolae Paladi.
``\paperVtitle''.
In \emph{17th IEEE International Conference on Dependable, Autonomic and Secure Computing, DASC 2019, Fukuoka, Japan}.
IEEE.
}
\newcommand{\paperVItitle}{Not So Greedy: Enhanced Subset Exploration for Nonrandomness Detectors}
\newcommand{\paperVIref}{%
Linus Karlsson, Martin Hell, and Paul Stankovski.
``\paperVItitle''.
In \emph{Information Systems Security and Privacy, ICISSP 2017}.
CCIS Vol. 867, pp. 273--294, Springer. % DOI: 10.1007/978-3-319-93354-2_13}.
}
\title{Contributions to Preventive Measures in Cyber Security}
\author{Linus Karlsson}
\date{2019}
% Make tex a bit less neurotic:
%\sloppy
\raggedbottom
\begin{document}
\ifpopvetOnly
\else
\ifcontributionStatementOnly
\else
% Title page.
\frontmatter
\begin{titlepage}
{
~
\vfill
\begin{center}
{\begin{spacing}{0.9} \Huge \thetitle \end{spacing}}
\vfill
{\large \theauthor}
\vfill
% black and white (default):
\includegraphics[width=0.25\textwidth]{figures/LundUniversity_C2line_BLACK}
% Colour text in white so that the spacing is the same as on spikblad, but with less clutter
\color{white}{
\vspace{10mm}
%{\large DOCTORAL DISSERTATION}\\
{\large Advisors: Martin Hell, Paul Stankovski Wagner, Ben Smeets}\\
{\large Faculty opponent: Jan-Erik Ekberg}\\
\vspace{1cm}
{\footnotesize
Academic dissertation which, by due permission of the Faculty of Engineering at Lund University, will be publicly defended on Thursday October 24, 2019, at 09:15, in lecture hall E:1406 at the Faculty of Engineering, for the degree of Doctor of Philosophy in Engineering.
}
}
\\
\end{center}
\vfill
% Use below template for CS-style first page
% \begin{tikzpicture}[remember picture, overlay, font=\sffamily]
% \node at (current page text area.north east) [
% anchor=north east,
% yshift = -3cm,
% text width = \textwidth,
% inner sep = 0,
% outer sep = 0,
% align = right
% ] (title)
% {\raggedleft\huge\textbf{\thetitle}\\};
% \node[below = 8cm of title,
% text width = \textwidth,
% inner sep = 0,
% outer sep = 0,
% align = right
% ] (author)
% {\raggedleft\huge\textbf{\theauthor}\\};
% \node[below = 1.5cm of author,
% text width = \textwidth,
% inner sep = 0,
% outer sep = 0,
% align = right
% ] (text) {\raggedleft
% \large{}Doctoral Dissertation, \thedate\\[0.4cm]
% \Large{}Lund University\\
% %\Large{}Department of Computer Science\\[0.1cm]
% %Lund University\\
% };
% \node (mid) at ($(author.south east)!0.7!(text.north east)$) {};
% \draw[thick] (mid -| current page.west) -- (mid -| current page.east);
% \node at (mid -| current page text area.west)
% [anchor = west, shift={(-0.5cm, -1cm)}]
% {\scalebox{0.44}{\includegraphics{template/lomacdsvs.eps}}};
% \end{tikzpicture}
}
\newpage
\thispagestyle{empty}
\begin{flushleft}
\vspace*{\stretch{1}}
%Version 1.0\linebreak[2]
ISBN 978-91-7895-294-6 (printed)\\
ISBN 978-91-7895-295-3 (electronic)\\
Series of licentiate and doctoral theses\\
No. 126\\
ISSN 1654-790X\linebreak[2]
\theauthor\\
Department of Electrical and Information Technology\\
Lund University\\
Box 118\\
SE-221 00 Lund\\
Sweden\linebreak[2]
%Email: \url{} \linebreak[2]
Typeset using \LaTeX.\\
Printed in Sweden by Tryckeriet i E-huset, Lund, \thedate.\linebreak[2]
\textit{\copyright ~\thedate~\theauthor\\
Published articles have been reprinted with the permission from the respective copyright holder.}
\vspace{10mm}
\end{flushleft}
\end{titlepage}
% Abstract
\newpage
\section*{Abstract}
\label{preamble:intro}
\addcontentsline{toc}{chapter}{\nameref{preamble:intro}}
\input{abstract}
% Acknowledgements
\cleardoublepage
\section*{Acknowledgements}
\label{preamble:acknowledgements}
\addcontentsline{toc}{chapter}{\nameref{preamble:acknowledgements}}
\input{acknowledgements}
\newpage
\fi % ends !ifContributionStatementOnly
\section*{Contribution Statement}
\label{preamble:contributionstatement}
\addcontentsline{toc}{chapter}{\nameref{preamble:contributionstatement}}
\input{contribution-statement}
\ifcontributionStatementOnly
\else
% Table of contents
\setcounter{tocdepth}{1}
\tableofcontents
\mainmatter
\input{kappa}
% Remove the LaTeX chapter from all numberings in included papers.
% theHchapter is set so that \setcounter{chapter}{0} below doesn't cause clashes.
\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\thefigure}{\arabic{figure}}
\renewcommand{\thetable}{\arabic{table}}
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\theHchapter}{publication.\Roman{chapter}}
\renewcommand{\theHsection}{\theHchapter.\arabic{section}}
\renewcommand{\theequation}{\arabic{equation}}
% Include a reference at the footer of each page.
\newlength{\apa}
\setlength{\apa}{0cm}
\setlength{\spiff}{0cm}
% Paper mark in margin.
\renewcommand{\markmargin}{%
\begin{tikzpicture}[remember picture, overlay]%
\node at (current page text area.north -| current page.east) [
anchor = north east,
yshift = -\apa,
rectangle,
fill = black,
minimum width = 1.6cm,
minimum height = 2cm,
inner sep = 0pt,
outer sep = 0]
(rec) {};
\node at (rec.south west) [
anchor = north west,
text width = 2cm,
text height = 0.4cm,
inner sep = 0,
outer sep = 0,
text centered,
font=\sffamily\bfseries\small,
color=white,
rotate=90]
{Paper~\thechapter};
\end{tikzpicture}%
}
\newfloat{paperfoot}{b}{paper}
\newcommand{\paperRemark}[1]{
\begin{paperfoot}%
\hrulefill \flushleft \footnotesize #1 \end{paperfoot}
}
%-------------------------------------------------------
\part{Included Publications}
\setcounter{chapter}{0}
\renewcommand{\chaptername}{Paper}
\fancyhead[LO]{\rightmark}
\ifpaperI
\newrefsegment
\fancyhead[RE]{\paperref{ch:tpmhas}: \paperItitle}
\include{papers/tpmhas}
\fi
\ifpaperII
\newrefsegment
\addtolength{\apa}{2cm}
\fancyhead[RE]{\paperref{ch:tpm12to20}: \paperIItitle}
\include{papers/tpm12to20}
\fi
\ifpaperIII
\newrefsegment
\addtolength{\apa}{2cm}
\fancyhead[RE]{\paperref{ch:trustanchors}: \paperIIItitle}
\include{papers/trustanchors}
\fi
\ifpaperIV
\newrefsegment
\addtolength{\apa}{2cm}
\fancyhead[RE]{\paperref{ch:recsys}: \paperIVtitle}
\include{papers/recsys}
\fi
\ifpaperV
\newrefsegment
\addtolength{\apa}{2cm}
\fancyhead[RE]{\paperref{ch:recsyssgx}: \paperVtitle}
\include{papers/recsyssgx}
\fi
\ifpaperVI
\newrefsegment
\addtolength{\apa}{2cm}
\fancyhead[RE]{\truncate{.95\headwidth}{\paperref{ch:slightlygreedy}: \paperVItitle}}
\include{papers/slightlygreedy}
\fi
\part[Popular Science Summary in Swedish]{\texorpdfstring{%
Popular Science Summary\\in Swedish}{%
Popular Science Summary in Swedish}}
% (the following ends the \ifcontributionStatementOnly a loooong time ago in this file)
\fi
% (the following ends the \ifpopvetOnly a loooong time ago in this file)
\fi
\makeatletter
\def\@makeschapterhead#1{%
\vspace*{10\p@}%
{\parindent \z@ \raggedleft \reset@font
\sffamily \bfseries \vphantom{\@chapapp{} \thechapter}
\par\nobreak
\interlinepenalty\@M
\Huge #1\par\nobreak
\hrulefill
\par\nobreak
\vskip 16\p@
}}
\makeatother
\fancyhead[RE,LO]{Populärvetenskaplig sammanfattning}
\include{popvet}
\end{document}