Browse Source

final commit

master
Michael Preisach 4 years ago
parent
commit
5ea3379a77
  1. 408
      install/root.hist
  2. 102
      install/user.hist
  3. 8
      resources/plots/amd1-ima-enf.gnuplot
  4. BIN
      resources/plots/amd1-ima-enf.png
  5. 8
      resources/plots/amd1-ima-fix.gnuplot
  6. BIN
      resources/plots/amd1-ima-fix.png
  7. 8
      resources/plots/intel2-ima-enf.gnuplot
  8. BIN
      resources/plots/intel2-ima-enf.png
  9. 8
      resources/plots/intel2-ima-fix.gnuplot
  10. BIN
      resources/plots/intel2-ima-fix.png
  11. 2
      thesis/04_implementation.tex
  12. BIN
      thesis/MAIN.pdf
  13. 4
      thesis/config.tex
  14. BIN
      thesis_old/MAIN.pdf
  15. 150
      thesis_old/MAIN.tex
  16. 48
      thesis_old/config.tex
  17. BIN
      thesis_old/cover/arr.pdf
  18. 107
      thesis_old/cover/coversheet.tex
  19. BIN
      thesis_old/cover/jku_de.pdf
  20. BIN
      thesis_old/cover/jku_en.pdf
  21. BIN
      thesis_old/cover/jkude.png
  22. BIN
      thesis_old/cover/jkuen.png
  23. 16
      thesis_old/frontmatter.tex
  24. 33
      thesis_old/literature.bib
  25. 31
      thesis_old/mainmatter.tex

408
install/root.hist

@ -1,408 +0,0 @@
1 apt update
2 apt install autoconf automake libtool pkg-config gcc curl curl-dev
3 apt install autoconf automake libtool pkg-config gcc curl curl-dev
4 reboot
5 apt install automake autoconf libtool autoconf-archive gcc libglibc2-0 pkg-config uriparser-dev libgcrypt-dev uthash-dev
6 apt search libglib
7 apt search glibc
8 apt install automake autoconf libtool autoconf-archive gcc glibc-source pkg-config uriparser-dev libgcrypt-dev uthash-dev
9 apt search uriparser
10 apt install automake autoconf libtool autoconf-archive gcc glibc-source pkg-config liburiparser-dev libgcrypt-dev uthash-dev
11 apt install git
12 apt install automake autoconf libtool autoconf-archive gcc glibc-source pkg-config liburiparser-dev libgcrypt-dev uthash-dev g++ libssl-dev uthash-dev m4 build-essential libmocka0 libmocka-dev
13 apt install automake autoconf libtool autoconf-archive gcc glibc-source pkg-config liburiparser-dev libgcrypt-dev uthash-dev g++ libssl-dev uthash-dev m4 build-essential libcmocka0 libcmocka-dev
14 cat /sys/class/tpm/tpm0/power
15 cat /sys/class/tpm/tpm0/power/runtime_status
16 cat /sys/class/tpm/tpm0/power/runtime_enabled
17 cat /sys/class/tpm/tpm0/device/status
18 cat /sys/class/tpm/tpm0/device/uid
19 cat /sys/class/tpm/tpm0/device/description
20 cat /sys/class/tpm/tpm0/device/driver/MSFT0101\:00
21 cat /sys/class/tpm/tpm0/dev
22 cat /sys/class/tpm/tpm0/ppi/tcg_operations
23 cat /sys/class/tpm/tpm0/ppi/version
24 cat /sys/class/tpm/tpm0/ppi/vs_operations
25 cat /sys/class/tpm/tpm0/ppi/transition_action
26 response
27 cat /sys/class/tpm/tpm0/ppi/response
28 cat /sys/class/tpm/tpm0/ppi/request
29 cat /sys/class/tpm/tpm0/ppi/response
30 reboot
31 cd tpm2-tss
32 ./configure --with-ptpm=/sys/class/tpm/tpm0 --with-prefix=/usr --with-udevrulesdir=/etc/udev/rules.d
33 make -j5
34 echo $?
35 make install
36 echo $?
37 udevadm control --reload-rules && udevadm trigger
38 ldconfig
39 ./configure --enable doxygen-doc
40 ./configure --enable-doxygen-doc
41 make doxygen-doc
42 make
43 make clean
44 make
45 make clean
46 ./configure --with-ptpm=/sys/class/tpm/tpm0 --with-prefix=/usr --with-udevrulesdir=/etc/udev/rules.d --enable-doxygen-doc
47 make -j5
48 make install
49 apt install doxygen-dev
50 apt install doxygen
51 ./configure --enable-doxygen-doc
52 make doxygen-doc
53 cd ../tpm2-abrmd/
54 ./bootstrap
55 apt install dbus-1
56 apt search dbus-a
57 apt search dbus
58 apt search dbus-1
59 apt install dbus dbus-1-dbg libdbus-1-dev libdbus-1-3
60 useradd --system --user-group tss
61 ./bootstrap
62 ./configure --help
63 #./configure --dbuspolicydir=/etc/dbus-1/system.d --with-udevrulesdir=/usr/lib/udev/rules.d --with-systemdsystemunitdir=/usr/lib/systemd/system --libdir=/usr/lib64 --prefix=/usr
64 exit
65 find / -name udev
66 #./configure --dbuspolicydir=/etc/dbus-1/system.d --with-udevrulesdir=/lib/udev/rules.d/ --with-systemdsystemunitdir=/lib/systemd/system --libdir=/lib64/ --prefix=/usr
67 cd tpm2-abmrd
68 cd tpm2-abrmd/
69 ./configure --dbuspolicydir=/etc/dbus-1/system.d --with-udevrulesdir=/lib/udev/rules.d/ --with-systemdsystemunitdir=/lib/systemd/system --libdir=/lib64/ --prefix=/usr
70 ./configure --with-dbuspolicydir=/etc/dbus-1/system.d --with-udevrulesdir=/lib/udev/rules.d/ --with-systemdsystemunitdir=/lib/systemd/system --libdir=/lib64/ --prefix=/usr
71 echo $?
72 apt install libglib2.0-dev
73 ./configure --with-dbuspolicydir=/etc/dbus-1/system.d --with-udevrulesdir=/lib/udev/rules.d/ --with-systemdsystemunitdir=/lib/systemd/system --libdir=/lib64/ --prefix=/usr
74 echo $?
75 ./configure --with-dbuspolicydir=/etc/dbus-1/system.d --with-systemdsystemunitdir=/lib/systemd/system --libdir=/lib64/ --prefix=/usr
76 make -j5
77 echo $?
78 make install
79 echo $?
80 cd ../tpm2-tools
81 ./bootstrap
82 ./configure --help
83 ./configure --prefix=/usr
84 echo $?
85 apt install libcurl
86 apt install curl-dev
87 apt install curl
88 ./configure --prefix=/usr
89 apt install libcurl-dev
90 apt install libcurl-openssl-dev
91 apt install libcurl4-dev
92 apt install libcurl4-openssl-dev
93 ./configure --prefix=/usr
94 apt install pyyaml
95 apt search pyyaml
96 apt install python-pretty-yaml
97 ./configure --prefix=/usr
98 echo $?
99 make -j5
100 make install
101 echo $?
102 tpm2pcrlist
103 tpm2_pcrlist
104 cd ..
105 git clone htttps://github.com/theopolis/tpm2-examples
106 git clone https://github.com/theopolis/tpm2-examples
107 cd tpm2-examples/
108 make
109 apt install clang
110 apt install clang++
111 apt install clang
112 apt remove clang
113 apt install clang
114 apt install clang++
115 apt install clang+
116 apt install clang
117 make
118 find /lib64 -name tpm20
119 find /lib -name tpm20
120 find /lib -name tpm
121 find / -name tpm20.h
122 cat /lib64/libtss2-tcti-tabrmd.1
123 cat /lib64/libtss2-tcti-tabrmd.a
124 tpm2_quote
125 tpm2_quote -L
126 tpm2_quote -l
127 man tpm2_quote
128 tpm2_nvlist
129 tpm2_getcap
130 tpm2_getmanufec
131 tpm2_listpersistent
132 tpm2_pcrlist
133 tpm2_pcrlist 0
134 tpm2_pcrlist --halg=sha256
135 tpm2_pcrlist --halg=sha384
136 tpm2_pcrlist --halg=sha256 --sel-list=1
137 tpm2_pcrlist --halg=sha256 -L
138 tpm2_pcrlist --halg=sha256 -s
139 tpm2_pcrlist --algs
140 tpm2_hash
141 tpm2_hash --help
142 tpm2_encryptdecrypt
143 tpm2_encryptdecrypt --mode=start
144 cd ..
145 rm -rf tpm2-examples/
146 cd Downloads/
147 dpkg install atom-amd64.deb
148 apt install atom-amd64.deb
149 apt install ./atom-amd64.deb
150 tpm2_encryptdecrypt
151 tpm2_encryptdecrypt --auth-key=helloworld
152 tpm2_encryptdecrypt --auth-key=helloworld 0
153 tpm2_encryptdecrypt --auth-key=helloworld --iv=helloworld
154 apt install unifont
155 ls -la
156 cat README
157 ./autogen.sh
158 ./configure
159 apt install bison
160 apt install flex bison binutils
161 apt install libdevmapper sdl libpciaccess libusb
162 apt search libdevmapper
163 apt search libpciaccess
164 apt searc hsdl
165 apt search sdl
166 apt search libusb
167 apt install libusb-1.0-0-dev libsdl2-dev libpciaccess-dev libdevmapper-dev
168 ./configure
169 configure --help
170 ./configure --help
171 ./configure --enable-efiemu --enable-grub-emu-sdl --enable-grub-emu-pci
172 make
173 echo $?
174 make check
175 make && make install
176 echo $?
177 make clean
178 ./configure --enable-efiemu --enable-grub-emu-sdl --enable-grub-emu-pci --prefix=/usr --target=i386 --with-platform=pc
179 make
180 make install
181 /etc/default/
182 cat /etc/default/grub
183 #/usr/sbin/grub-install --directory=/usr/lib/grub/i386-pc /dev/
184 mount
185 mount | grep boot
186 #/usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
187 cat /boot/grub/grub.cfg
188 cp /boot/grub/grub.cfg /boot/grub/grub.cfgbak
189 /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
190 reboot
191 nano /boot/grub/grub.cfg
192 reboot
193 nano /boot/grub/grub.cfg
194 reboot
195 /usr/sbin/grub-install /dev/nvme0n1
196 reboot
197 cat /boot/grub/grub.cfg
198 nano /boot/grub/grub.cfg
199 /usr/sbin/grub-install /dev/nvme0
200 /usr/sbin/grub-install -v /dev/nvme0
201 reboot
202 /usr/sbin/grub-install --directory=/usr/lib/grub/i386-pc /dev/nvme0
203 /usr/sbin/grub-install --directory=/usr/lib/grub/i386-pc /dev/nvme0n1
204 apt install grub-efi
205 cd grub-tpm2/
206 make clean
207 ./configure --enable-efiemu --enable-grub-emu-sdl --enable-grub-emu-pci --prefix=/usr --target=x86_64 --with-platform=efi
208 make
209 make install
210 /usr/sbin/grub-install --efi-directory=/boot/efi --target=x86-64 --boot-directory=/boot /dev/nvme0n1
211 /usr/sbin/grub-install --efi-directory /boot/efi --target=x86-64 --boot-directory=/boot /dev/nvme0n1
212 apt install libfreetype6-dev libfuse-dev liblzma-dev
213 cd ..
214 rm -rf ./grub-tpm2/
215 git clone https://github.com/rhopfer/grub-tpm2.git
216 cd grub-tpm2/
217 ./autogen.sh
218 ./configure --prefix=/usr --target=x86_64 --with-platform=efi --disable-werroro
219 ./configure --prefix=/usr --target=x86_64 --with-platform=efi --disable-werror
220 make && make install
221 /usr/sbin/grub-install --version
222 /usr/sbin/grub-install --efi-directory /boot/efi --target=x86-64 --boot-directory=/boot /dev/nvme0n1
223 /usr/sbin/grub-install --efi-directory /boot/efi --target=x86-64 --boot-directory=/boot /dev/nvme0
224 /usr/sbin/grub-install --efi-directory /boot/efi
225 /usr/sbin/grub-install --target=x86-64 --boot-directory=/boot /dev/nvme0
226 /usr/sbin/grub-install --efi-directory /boot/efi --target=x86-64
227 /usr/sbin/grub-install --target=x86-64 --boot-directory=/boot /dev/nvme0n1
228 reboot
229 cd grub-tpm2/
230 /usr/sbin/grub-install --target=x86-64 --boot-directory=/boot /dev/nvme0n1
231 /usr/sbin/grub-install --target=x86-64-efi --boot-directory=/boot /dev/nvme0n1
232 /usr/sbin/grub-install --efi-directory /boot/efi --target=x86-64-efi
233 /usr/sbin/grub-install --target=x86-64-efi --efi-directory /boot/efi
234 /usr/sbin/grub-install --target=x86-64-efi --efi-directory=/boot/efi --boot-directory=/boot /dev/nvme0n1
235 ls /usr/lib/grub/
236 /usr/sbin/grub-install --target=x86-64-efi --efi-directory=/boot/efi --boot-directory=/boot /dev/nvme0n1
237 /usr/sbin/grub-install --efi-directory=/boot/efi --boot-directory=/boot /dev/nvme0n1
238 reboot
239 nano /boot/grub/grub.cfg
240 reboot
241 tpm2_pcrlist
242 nano /boot/grub/grub.cfg
243 /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
244 nano /boot/grub/grub.cfg
245 reboot
246 nc
247 netcat
248 apt install netcat
249 apt install netcat
250 apt install netcat
251 exit
252 apt update && apt upgrade
253 apt install gnome-tweak
254 apt install gnome-tweaks
255 apt install gnome-tweak-tool
256 exit
257 apt update
258 apt install netcat
259 nc -l 3333
260 ip addr
261 nc -l 3333
262 nc -l 80
263 su
264 exit
265 mv /home/michael/Downloads/clion-2018.2.6 /opt
266 /opt/clion-2018.2.6/bin/clion.sh
267 exit
268 LD_LIBRARY_PATH
269 getenv LD_LIBRARY_PATH
270 get LD_LIBRARY_PATH
271 display LD_LIBRARY_PATH
272 printenv
273 printenv | grep LD
274 cd CLionProjects/untitled/
275 gcc main.c -o main -L/usr/local/lib -llibtss2-esys
276 gcc main.c -o main -L/usr/local/include -llibtss2-esys
277 gcc main.c -o main -L/usr/local/include/tpm2 -llibtss2-esys
278 gcc main.c -o main -L/usr/local/include/tpm2 -ltss2-esys
279 cc main.c -o main -L/usr/local/include/tpm2 -ltss2-esys
280 LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
281 cc main.c -o main -L/usr/local/include/tpm2 -ltss2-esys
282 LIBRARY_PATH=/usr/local/lib:$LIBRARY_PATH
283 gcc -v main.c -o main -L/usr/local/include/tpm2 -ltss2-esys
284 cc main.c -o main -L/usr/local/include/tpm2/ -ltss2-esys
285 gcc -v main.c -o main -L/usr/local/include -ltss2-esys
286 LIBRARY_PATH=/usr/local/include/tss2:$LIBRARY_PATH
287 getenv
288 printenv
289 LIBRARY_PATH=/usr/local/include/tss2
290 printenv | LIB
291 printenv | grep LIB
292 exit
293 apt install ldd ldconfig
294 apt install build-essentials
295 apt install build_essentials
296 apt search essentials
297 history | grep install
298 apt install libc-bin
299 ldconfig
300 exit
301 apt install cmake
302 ldconfig
303 ldconfig -p
304 man ldconfig
305 ldconfig -l
306 man ldconfig
307 cd /usr/local/lib/
308 ls
309 ldconfig -l /usr/local/lib/
310 ldconfig -l /usr/local/lib/*
311 ldconfig -p
312 ldconfig -p | local
313 ldconfig -p | grep local
314 cd /home/michael/CLionProjects/untitled/
315 ls
316 /opt/clion-2018.2.6/bin/cmake/linux/bin/cmake --build /home/michael/CLionProjects/untitled/cmake-build-debug --target untitled -- -j 2
317 cmake --build . --target untitled
318 cmake .
319 cmake .
320 ls
321 ls
322 make .
323 ls
324 ls -lha
325 cat Makefile
326 clear
327 ls
328 rm Makefile
329 ls
330 rm CMakeCache.txt
331 rm -r CMakeFiles/
332 ls
333 rm cmake_install.cmake
334 ls
335 rm main
336 ls
337 mkdir build
338 cd build/
339 cmake ..
340 ls
341 cat Makefile
342 ls
343 make
344 ldconfig -p | grep lib
345 ldconfig -p | grep local
346 ls
347 cd ..
348 cd build/
349 rm -rf .
350 ls
351 cd ..
352 rm -rf build/*
353 cd build/
354 cmake ..
355 make
356 tpm2tss-genkey -a rsa -s 2048 mykey_rsa
357 dbus
358 tpm2_pcrlist
359 cd ..
360 ls
361 cd build
362 ls
363 cd ..
364 cd cmake-build-debug/
365 ls
366 ./untitled
367 ls /dev
368 ./untitled
369 systemctl status
370 systemctl status --all
371 systemctl status --all | grep tpm
372 systemctl status --all | grep abrmd
373 systemctl status --all | grep abrm
374 tpm2-abrmd
375 exit
376 tpm2-abrmd --allow-root
377 tpm2-abrmd --allow-root &
378 ./untitled
379 ./cmake-build-debug/untitled
380 ls /dev
381 kill 5912
382 ./cmake-build-debug/untitled
383 ./cmake-build-debug/untitled
384 ./cmake-build-debug/untitled | grep Result
385 ./cmake-build-debug/untitled
386 ./cmake-build-debug/untitled | grep ess
387 ./cmake-build-debug/untitled
388 ./cmake-build-debug/untitled
389 ./cmake-build-debug/untitled
390 apt install valgrind
391 groups michael
392 groups
393 cat /etc/group
394 usermod -a -G tss michael
395 groups michael
396 ls -la /dev/tpm
397 ls -la /dev/tpm*
398 reboot
399 tpm2_getrandom
400 man tpm2_getrandom
401 tpm2_getrandom 5
402 tpm2_getrandom 650
403 tpm2_getrandom 32
404 tpm2_getrandom 32
405 sudo /opt/clion-2018.2.6/bin/clion.sh
406 history
407 /opt/clion-2018.2.6/bin/clion.sh
408 history > root.hist

102
install/user.hist

@ -1,102 +0,0 @@
1 su
2 git clone https://github.com/tpm2-software/tpm2-tss.git
3 git clone https://github.com/tpm2-software/tpm2-tools.git && git clone https://github.com/tpm2-software/tpm2-abrmd.git
4 git clone https://github.com/rhopfer/grub-tpm2.git
5 su
6 ifconfig
7 ip addr
8 cd tpm2-tss
9 ls
10 ./bootstrap
11 ./configure --help
12 ./configure --with-ptpm=/sys/class/tpm/tpm0 --with-prefix=/usr
13 ./configure --with-ptpm=/sys/class/tpm/tpm0 --with-prefix=/usr --with-udevrulesdir=/etc/udev/rules.d
14 cd tpm2-tss
15 su
16 xit
17 exit
18 cd grub-tpm2/
19 su
20 [ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
21 cd /boot/efi/
22 su
23 nano /boot/grub/grub.cfg
24 su
25 tpm2_pcrlist
26 su
27 nc
28 netcat
29 su
30 reboot
31 su
32 gcc
33 su
34 /opt/clion-2018.2.6/bin/clion.sh
35 su
36 printenv
37 printenv | grep LIB
38 setenv
39 export
40 export LIBRARY_PATH=/usr/local/include/tss2
41 printenv | grep LIB
42 gcc -v main.c -o main -ltss2-esys
43 ls
44 cd CLionProjects/untitled/
45 gcc -v main.c -o main -ltss2-esys
46 export LD_LIBRARY_PATH=/usr/local/include/tss2
47 gcc -v main.c -o main -ltss2-esys
48 export C_INCLUDE_PATH=/usr/local/include/tss2:$C_INCLUDE_PATH
49 printenv | grep INC
50 gcc -v main.c -o main -ltss2-esys
51 g++ -v main.c -o main -ltss2-esys
52 export CPLUS_INCLUDE_PATH=/usr/local/include/tss2:$CPLUS_INCLUDE_PATH
53 g++ -v main.c -o main -ltss2-esys
54 gcc -v main.c -o main -ltss2-esys
55 g++ -v main.c -o main -ltss2-esys
56 python ~/Documents/tpmtest.py
57 gcc -v main.c -o main -ltss2-esys
58 gcc -v main.c -o main -ltss2-esys -lesys_iutil
59 export C_PATH=/usr/local/include/tss2:$C_PATH
60 export C_PATH=/home/michael/tpm2-tss/src:$C_PATH
61 gcc -v main.c -o main -ltss2-esys -lesys_iutil
62 export C_PATH=/home/michael/tpm2-tss/src/tss2-esys:$C_PATH
63 gcc -v main.c -o main -ltss2-esys -lesys_iutil
64 gcc -v main.c -o main -ltss2-esys
65 cmake build
66 /opt/clion-2018.2.6/bin/cmake/linux/bin/cmake --build
67 /opt/clion-2018.2.6/bin/cmake/linux/bin/cmake --build .
68 ld
69 ldconfig
70 cd CLionProjects/untitled/
71 gcc -v main.c -o main -ltss2-esys
72 export C_PATH=/usr/local/include/tss2:$C_PATH
73 gcc -v main.c -o main -ltss2-esys
74 export C_PATH=/usr/local/include/tss2:$C_PATH
75 gcc -v main.c -o main -ltss2-esys
76 printenv
77 printenv | grep C_P
78 export C_PATH=/usr/local/include/tss2
79 export C_PATH=/usr/local/include:$C_PATH
80 gcc -v main.c -o main -ltss2-esys
81 export C_INCLUDE_PATH=$C_PATH
82 gcc -v main.c -o main -ltss2-esys
83 gcc main.c -o main -ltss2-esys
84 ./main
85 printenv | grep C_P
86 printenv | grep C_I
87 ldconfig
88 ldd
89 ld
90 su
91 ldconfig
92 su
93 tpm2-abrmd
94 su
95 tpm2_getrandom
96 sudo -i
97 su
98 history
99 sudo -i
100 su
101 history
102 history > user.hist

8
resources/plots/amd1-ima-enf.gnuplot

@ -11,7 +11,7 @@ set ylabel "seconds"
set xrange [ * : * ] noreverse writeback
set yrange [ 0.00000 : 12. ] noreverse writeback
set title "System 1 IMA enforce" font "roboto sans,25"
plot 'amd1-ima-enf.dat' using 1:5 t "Sensor send" w filledcurves x1 linestyle 5, \
'amd1-ima-enf.dat' using 1:4 t "Sensor collect" w filledcurves x1 linestyle 4, \
'amd1-ima-enf.dat' using 1:3 t "Sensor embed" w filledcurves x1 linestyle 3, \
'amd1-ima-enf.dat' using 1:2 t "Sensor capture" w filledcurves x1 linestyle 2
plot 'amd1-ima-enf.dat' using 1:5 t "Sensor send" w filledcurves x1 linestyle 7, \
'amd1-ima-enf.dat' using 1:4 t "Sensor collect" w filledcurves x1 linestyle 5, \
'amd1-ima-enf.dat' using 1:3 t "Sensor embed" w filledcurves x1 linestyle 6, \
'amd1-ima-enf.dat' using 1:2 t "Sensor capture" w filledcurves x1 linestyle 4

BIN
resources/plots/amd1-ima-enf.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 KiB

After

Width:  |  Height:  |  Size: 189 KiB

8
resources/plots/amd1-ima-fix.gnuplot

@ -11,7 +11,7 @@ set ylabel "seconds"
set xrange [ * : * ] noreverse writeback
set yrange [ 0.00000 : 12. ] noreverse writeback
set title "System 1 IMA fix" font "roboto sans,25"
plot 'amd1-ima-fix.dat' using 1:5 t "Sensor send" w filledcurves x1 linestyle 5, \
'amd1-ima-fix.dat' using 1:4 t "Sensor collect" w filledcurves x1 linestyle 4, \
'amd1-ima-fix.dat' using 1:3 t "Sensor embed" w filledcurves x1 linestyle 3, \
'amd1-ima-fix.dat' using 1:2 t "Sensor capture" w filledcurves x1 linestyle 2
plot 'amd1-ima-fix.dat' using 1:5 t "Sensor send" w filledcurves x1 linestyle 7, \
'amd1-ima-fix.dat' using 1:4 t "Sensor collect" w filledcurves x1 linestyle 5, \
'amd1-ima-fix.dat' using 1:3 t "Sensor embed" w filledcurves x1 linestyle 6, \
'amd1-ima-fix.dat' using 1:2 t "Sensor capture" w filledcurves x1 linestyle 4

BIN
resources/plots/amd1-ima-fix.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 KiB

After

Width:  |  Height:  |  Size: 194 KiB

8
resources/plots/intel2-ima-enf.gnuplot

@ -11,7 +11,7 @@ set ylabel "seconds"
set xrange [ * : * ] noreverse writeback
set yrange [ 0.00000 : 12. ] noreverse writeback
set title "System 3 IMA enforce" font "roboto sans,25"
plot 'intel2-ima-enf.dat' using 1:5 t "Sensor send" w filledcurves x1 linestyle 5, \
'intel2-ima-enf.dat' using 1:4 t "Sensor collect" w filledcurves x1 linestyle 4, \
'intel2-ima-enf.dat' using 1:3 t "Sensor embed" w filledcurves x1 linestyle 3, \
'intel2-ima-enf.dat' using 1:2 t "Sensor capture" w filledcurves x1 linestyle 2
plot 'intel2-ima-enf.dat' using 1:5 t "Sensor send" w filledcurves x1 linestyle 7, \
'intel2-ima-enf.dat' using 1:4 t "Sensor collect" w filledcurves x1 linestyle 5, \
'intel2-ima-enf.dat' using 1:3 t "Sensor embed" w filledcurves x1 linestyle 6, \
'intel2-ima-enf.dat' using 1:2 t "Sensor capture" w filledcurves x1 linestyle 4

BIN
resources/plots/intel2-ima-enf.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 126 KiB

8
resources/plots/intel2-ima-fix.gnuplot

@ -11,7 +11,7 @@ set ylabel "seconds"
set xrange [ * : * ] noreverse writeback
set yrange [ 0.00000 : 12. ] noreverse writeback
set title "System 3 IMA fix" font "roboto sans,25"
plot 'intel2-ima-fix.dat' using 1:5 t "Sensor send" w filledcurves x1 linestyle 5, \
'intel2-ima-fix.dat' using 1:4 t "Sensor collect" w filledcurves x1 linestyle 4, \
'intel2-ima-fix.dat' using 1:3 t "Sensor embed" w filledcurves x1 linestyle 3, \
'intel2-ima-fix.dat' using 1:2 t "Sensor capture" w filledcurves x1 linestyle 2
plot 'intel2-ima-fix.dat' using 1:5 t "Sensor send" w filledcurves x1 linestyle 7, \
'intel2-ima-fix.dat' using 1:4 t "Sensor collect" w filledcurves x1 linestyle 5, \
'intel2-ima-fix.dat' using 1:3 t "Sensor embed" w filledcurves x1 linestyle 6, \
'intel2-ima-fix.dat' using 1:2 t "Sensor capture" w filledcurves x1 linestyle 4

BIN
resources/plots/intel2-ima-fix.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 184 KiB

2
thesis/04_implementation.tex

@ -138,7 +138,7 @@ These packages need to be installed beforehand to make use of the scripts:
\item \texttt{tpm2-tools} to interact with the onboard TPM,
\end{itemize}
Installing trused boot is done in three steps, assuming being root on the target system:
Installing trusted boot is done in three steps, assuming being root on the target system:
\begin{enumerate}
\item \emph{Execute \texttt{install.sh}}: It installs the shell scripts into \texttt{/usr/sbin} and adds a new random passphrase to LUKS. It furthermore adds TPM support to the initramfs and creates the unified kernel described above.
\item \emph{Reboot}: During reboot, the new PCR values are generated.

BIN
thesis/MAIN.pdf

Binary file not shown.

4
thesis/config.tex

@ -11,7 +11,7 @@
%% Hier den Namen des Autors eingeben:
%% Enter the author’s name here:
\def\author{Michael Preisach BSc.}
\def\author{Michael Preisach BSc}
%% Hier Informationen für den rechten Block unter dem JKU-Logo eingeben, wobei die Elemente mit einem Buchstaben jeweils für die Beschreibung und mit Doppelbuchstaben für den Inhalt sind.
%% Anzuführen bei Masterarbeit: Eingereicht von, Anfegertigt am, BeurteilerIn, Mitbetreuung.
@ -38,7 +38,7 @@
%% Hier Datum eingeben (Monat der Abgabe im Prüfungs- und Anerkennungsservice):
%% Enter the date (Month and year of submission to Examination and Recognition Services):
\def\date{November 2021}
\def\date{January 2022}
%% Hier Ort eingeben:
%% Enter the location:

BIN
thesis_old/MAIN.pdf

Binary file not shown.

150
thesis_old/MAIN.tex

@ -1,150 +0,0 @@
% !TeX document-id = {0f6d0a45-d600-4120-afd6-63e947122e2b}
% !TeX encoding = UTF-8
% !TeX program = pdflatex
% !BIB program = biber
% Rev. 2.1 - 11/18 - av %
% Rev. 2.0 - 07/18 - av %
%% HINWEISE:
%% MAIN.tex ist die Hauptdatei. Hier sind sämtliche Pakete eingebunden und die allgemeine Struktur ist hier festgelegt. Im Allgemeinen müssen hier keine Änderungen vorgenommen werden.
%% In der eingebundenen Datei config.tex müssen Änderungen vorgenommen werden, die in der Datei näher erläutert sind.
%% Das Deckblatt wird mit der Datei cover/coversheet.tex eingebunden. Hier sollten keine Änderungen vorgenommen werden.
%% Für Text im Vorspann, d.h. vor der Inhaltsangabe (Seitenzahlen als kleine römische Zahlen; z.B. für Vorwort, Abstract etc.), ist die Datei frontmatter.tex vorgesehen.
%% Für den Hauptteil ist die Datei mainmatter.tex vorgesehen.
%% Das Literaturverzeichnis ist die eingebundene Datei literature.bib. Es ist vorgesehen, dass das Literaturverzeichnis mit Biber kompiliert wird.
%% Falls Fehler entdeckt werden, würde ich mich über eine E-Mail an a_v@gmx.net freuen.
%% Viel Erfolg :). Linz, im April 2018, Ali Varli.
\documentclass[
a4paper,
oneside,
onecolumn,
openany,
parskip=half*,
% toc=flat,
table,
11pt,
% draft
]{scrbook}
\usepackage[utf8]{inputenc}
\input{config}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\ifeng \usepackage[ngerman,english]{babel}
\else \usepackage[english,ngerman]{babel}
\fi
\usepackage[fleqn]{amsmath}
\usepackage{siunitx}
\usepackage[backend=biber,sortlocale=auto,style=numeric-comp]{biblatex}
\addbibresource{literature.bib}
\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}
\usepackage{csquotes}
\usepackage[a4paper,left=30mm,right=14mm,top=27mm,bottom=10mm,includeheadfoot]{geometry}
\usepackage{lastpage}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\clearscrheadfoot
\ifeng \ohead[{\includegraphics[width=3cm]{cover/jkuen.png}}]{\includegraphics[width=3cm]{cover/jkuen.png}}
\else \ohead[{\includegraphics[width=3cm]{cover/jkude.png}}]{\includegraphics[width=3cm]{cover/jkude.png}}
\fi
\ifoot[\date]{\date}
\cfoot[\name]{\name}
\ofoot[\pagemark/\pageref{LastPage}]{\pagemark/\pageref{LastPage}}
\setkomafont{pageheadfoot}{\sffamily \scriptsize}
\setkomafont{pagenumber}{\sffamily \scriptsize}
\usepackage[onehalfspacing]{setspace}
\usepackage{pdfpages}
\usepackage[pdfborder={0 0 0}]{hyperref}
\usepackage{tabularx}
\usepackage{ltxtable}
\usepackage{booktabs}
\usepackage{rotating}
\usepackage{colortbl}
\usepackage{multirow}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage[section]{placeins} %\FloatBarrier
\usepackage{float} %[H]
\usepackage{enumitem}
\usepackage{subfiles}
% \setcounter{tocdepth}{3} %subsubsection
% \setcounter{secnumdepth}{3}
\tolerance=100
\clubpenalty=10000
\widowpenalty=10000
\displaywidowpenalty=10000
% \addtocontents{toc}{\protect\enlargethispage{2\normalbaselineskip}}
% \addtocontents{lof}{\protect\enlargethispage{2\normalbaselineskip}}
% \addtocontents{lot}{\protect\enlargethispage{2\normalbaselineskip}}
\addtokomafont{caption}{\small}
\setkomafont{captionlabel}{\small\sffamily\bfseries}
\newcommand{\zB}{z.\,B.}
\newcommand{\ToDo}{\normalfont \normalsize \textcolor{red}{\textbf{ToDo!}}}
%
%%
%%%%
%%%%%%%%
%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%
\begin{titlepage}
\include{cover/coversheet}
\end{titlepage}
%%%%%%%%%%%%
\frontmatter
\input{frontmatter}
\begin{singlespace}
\tableofcontents
\end{singlespace}
%%%%%%%%%%%
\mainmatter
\input{mainmatter}
%%%%%%%%%%%
\backmatter
\begin{singlespace}
\listoffigures
{\let\clearpage\relax\listoftables}
\end{singlespace}
\printbibliography
\appendix
\end{document}

48
thesis_old/config.tex

@ -1,48 +0,0 @@
\newif\ifeng
%% HINWEISE:
%% Hier müssen folgende Einstellungen vorgenommen werden:
%% Sprache:
%% Falls die Dokumentensprache Deutsch ist, \engtrue mit einem %-Zeichen davor auskommentieren:
\engtrue
%% Hier den Namen des Autors eingeben:
\def\name{Michael Preisach}
%% Hier Informationen für den rechten Block unter dem JKU-Logo eingeben, wobei die Elemente mit einem Buchstaben jeweils für die Überschrift und mit Doppelbuchstaben für den Inhalt sind. Falls Elemente nicht benötigt werden, bitte NICHT LÖSCHEN, sondern frei lassen, wie z.B. elementE bzw. elementEE.
\def\elementA{Submitted by}
\def\elementAA{\textbf{\name} \\ 01155264}
\def\elementB{Submitted at}
\def\elementBB{\textbf{Institute for Networks and Security}}
\def\elementC{Supervisor and First Examiner}
\def\elementCC{Univ.-Prof.\@ Priv.-Doz.\@ DI Dr.\@ \textbf{Rene Mayrhofer}}
\def\elementD{Second Examiner}
\def\elementDD{DI \textbf{Tobias Höller}}
\def\elementE{}
\def\elementEE{}
%% Hier Datum eingeben:
\def\date{\today}
%% Hier Titel eingeben; steht über dem K:
\def\title{Project Digidow: Biometric Sensor}
%% Hier ggf. Untertitel und LVA eingeben; stehen unter dem K. Falls sie nicht benötigt werden, bitte NICHT LÖSCHEN sondern frei lassen:
\def\subtitle{}
\def\lva{}
\newif\ifthesis
%% Ab hier müssen nur Änderungen vorgenommen werden, falls es sich um eine Bachelor- oder Masterarbeit oder eine Dissertation handelt. Wenn es sich darum handelt, die Auskommentierung der folgenden Zeile aufheben:
\thesistrue
%% Hier den Typ der Arbeit eingeben (0: Bachelorarbeit, 1: Masterarbeit, 2: Dissertation, 3: Diplomarbeit):
\def\type{1}
%% Hier den angestrebten akademischen Grad eingeben:
\def\degree{Master of Science}
%% Hier die Studienrichtung eingeben:
\def\study{Computer Science}

BIN
thesis_old/cover/arr.pdf

Binary file not shown.

107
thesis_old/cover/coversheet.tex

@ -1,107 +0,0 @@
{
\singlespacing
\parindent 0pt
\def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax}
\makeatletter
\def\Huge{\@setfontsize\Huge{36pt}{32}}
\makeatother
\unitlength 1cm
\fontfamily{phv} \selectfont
\small
%
%
\begin{picture}(16.6,0)
\ifeng
\put(11.2,0){\includegraphics[width=5.2cm]{cover/jku_en}}
\else
\put(11.2,0){\includegraphics[width=5.2cm]{cover/jku_de}}
\fi
\put(12.6,-1.7){%
\begin{minipage}[t]{3.9cm}
\begin{flushleft}
\ifdefined\elementA
{\footnotesize\elementA \vskip.1mm}
{\elementAA}
\vskip5mm
\else
\relax
\fi
\ifdefined\elementB
{\footnotesize\elementB \vskip.1mm}
{\elementBB}
\vskip5mm
\else
\relax
\fi
\ifdefined\elementC
{\footnotesize\elementC \vskip.1mm}
{\elementCC}
\vskip5mm
\else
\relax
\fi
\ifdefined\elementD
{\footnotesize\elementD \vskip.1mm}
{\elementDD}
\vskip5mm
\else
\relax
\fi
\ifdefined\elementE
{\footnotesize\elementE \vskip.1mm}
{\elementEE}
\vskip5mm
\else
\relax
\fi
\date
\end{flushleft}
\end{minipage}
}
%
%
\put(12.6,-21.5){%
\begin{minipage}[t]{3.9cm}
{\fontfamily{ugq} \selectfont JOHANNES KEPLER\\
\ifeng
UNIVERSITY
\else
UNIVERSIT\"{A}T
\fi
LINZ}\\
Altenbergerstra{\ss}e 69\\
4040 Linz, \"{O}sterreich\\
www.jku.at\\
DVR 0093696
\end{minipage}
}
%
%
\put(0,-10.2){\begin{minipage}[b]{12cm}{\begin{flushleft}
\Huge \fontfamily{ugq} \selectfont \title
\end{flushleft}} \end{minipage}}
%
\put(0,-15.2){\includegraphics[width=4.4cm]{cover/arr}}
%
\put(0,-16.3){\begin{minipage}[t]{12cm}
\ifthesis \Large
\ifeng
\ifcase\type Bachelor \or Master \or Doctoral \or Diploma \fi Thesis \vskip1mm
{\normalsize to obtain the academic degree of} \vskip2mm
\degree \vskip1mm
{\normalsize in the \ifcase\type Bachelor's \or Master's \or Doctoral \or Diploma \fi Program} \vskip2mm
\else
\ifcase\type Bachelorarbeit \or Masterarbeit \or Dissertation \or Diplomarbeit \fi \vskip1mm
{\normalsize zur Erlangung des akademischen Grades} \vskip2mm
\degree \vskip1mm
{\normalsize im \ifcase\type Bachelorstudium \or Masterstudium \or Doktoratsstudium \or Diplomstudium \fi} \vskip2mm
\fi
\study
\else
{\Large\lva}
\vskip2mm
{\Large\bfseries\subtitle}
\fi
\end{minipage}}
\end{picture}
}

BIN
thesis_old/cover/jku_de.pdf

Binary file not shown.

BIN
thesis_old/cover/jku_en.pdf

Binary file not shown.

BIN
thesis_old/cover/jkude.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

BIN
thesis_old/cover/jkuen.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

16
thesis_old/frontmatter.tex

@ -1,16 +0,0 @@
\ifeng \chapter*{Abstract}
\else \chapter*{Zusammenfassung}
\fi
% Hier Abstact in der Sprache eingeben, in der die Arbeit geschrieben wurde.
{\let\clearpage\relax
\ifeng \selectlanguage{ngerman} \chapter*{Zusammenfassung}
\else \selectlanguage{english} \chapter*{Abstract}
\fi
% Hier Abstact in der jeweils anderen Sprache eingeben.
\ifeng \selectlanguage{english}
\else \selectlanguage{ngerman}
\fi}

33
thesis_old/literature.bib

@ -1,33 +0,0 @@
@Misc{key1,
title = {},
author = {},
howpublished= {},
month = {},
year = {},
note = {},
}
@Book{key2,
title = {},
publisher = {},
year = {},
author = {},
address = {},
edition = {},
}
@Booklet{key3,
author = {},
title = {},
howpublished= {},
month = {},
year = {},
}
@online{key4,
title = {},
date = {},
url = {},
urldate = {},
}

31
thesis_old/mainmatter.tex

@ -1,31 +0,0 @@
\chapter{Introduction}
\chapter{Trusted Environment}
\section{Trust and Security}
\section{Systems of Trust}
\subsection{Secure Boot}
\subsection{TPM1.2}
\subsection{TPM2.0}
\section{Verify Trust (DA and DAA)}
\chapter{Handling Biometric Data}
\section{Extend the Trust to External Hardware}
\section{Mitigation of Attack Vectors}
\chapter{Implemtentation and Limitations}
\chapter{Conclusion and Outlook}
\autoref{tab:example} is an example of a table, in which the numbers are aligned at the comma, every second line is colored and the commands \texttt{\textbackslash toprule}, \texttt{\textbackslash midrule} and \texttt{\textbackslash bottomrule} are used.
\begin{table}[ht]
\centering
\caption{Example} \label{tab:example}
\rowcolors{2}{lightgray}{white}
\begin{tabular}{SSS}
\toprule
\multicolumn{1}{c}{Länge $l$ in m} & \multicolumn{1}{c}{Breite $b$ in m} & \multicolumn{1}{c}{Höhe $h$ in m} \\
\midrule
12.454 & 1.24 & 335.3 \\
543.22 & 32.123 & 33.21 \\
353.0 & 33.0 & 33.0 \\
23.3 & 333.2 & 32.4 \\
\bottomrule
\end{tabular}
\end{table}
Loading…
Cancel
Save