-
Notifications
You must be signed in to change notification settings - Fork 1
/
EFI TCG2 protocol in U-Boot and QEMU.html
executable file
·550 lines (496 loc) · 43.9 KB
/
EFI TCG2 protocol in U-Boot and QEMU.html
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
548
549
550
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,700;1,400&family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,400&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://apalos.github.io/theme/stylesheet/style.min.css">
<link id="pygments-light-theme" rel="stylesheet" type="text/css"
href="https://apalos.github.io/theme/pygments/github.min.css">
<link rel="stylesheet" type="text/css" href="https://apalos.github.io/theme/font-awesome/css/fontawesome.css">
<link rel="stylesheet" type="text/css" href="https://apalos.github.io/theme/font-awesome/css/brands.css">
<link rel="stylesheet" type="text/css" href="https://apalos.github.io/theme/font-awesome/css/solid.css">
<link href="https://apalos.github.io/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Volatile rumblings Atom">
<meta name="author" content="Ilias Apalodimas" />
<meta name="description" content="TPMs are starting to play an important role in system security and integrity. So let's take a look on the latest U-Boot additions enabling TPMs when booting with UEFI" />
<meta name="keywords" content="Bootloaders, Security, U-Boot, UEFI, TPM">
<meta property="og:site_name" content="Volatile rumblings"/>
<meta property="og:title" content="EFI TCG2 protocol in U-Boot and QEMU"/>
<meta property="og:description" content="TPMs are starting to play an important role in system security and integrity. So let's take a look on the latest U-Boot additions enabling TPMs when booting with UEFI"/>
<meta property="og:locale" content="en_US"/>
<meta property="og:url" content="https://apalos.github.io/EFI TCG2 protocol in U-Boot and QEMU.html"/>
<meta property="og:type" content="article"/>
<meta property="article:published_time" content="2021-08-31 10:20:00+03:00"/>
<meta property="article:modified_time" content=""/>
<meta property="article:author" content="https://apalos.github.io/author/ilias-apalodimas.html">
<meta property="article:section" content="UEFI"/>
<meta property="article:tag" content="Bootloaders"/>
<meta property="article:tag" content="Security"/>
<meta property="article:tag" content="U-Boot"/>
<meta property="article:tag" content="UEFI"/>
<meta property="article:tag" content="TPM"/>
<meta property="og:image" content="site_images/profile.png">
<title>Volatile rumblings – EFI TCG2 protocol in U-Boot and QEMU</title>
</head>
<body class="light-theme">
<aside>
<div>
<a href="https://apalos.github.io">
<img src="site_images/profile.png" alt="" title="">
</a>
<h1>
<a href="https://apalos.github.io"></a>
</h1>
<p>Volatile rumblings</p>
<nav>
<ul class="list">
<li>
<a target="_self" href="http://github.com/Xdp-project" >XDP</a>
</li>
</ul>
</nav>
<ul class="social">
<li>
<a class="sc-github" href="https://github.com/apalos" target="_blank">
<i class="fab fa-github"></i>
</a>
</li>
<li>
<a class="sc-linkedin" href="https://www.linkedin.com/in/ilias-apalodimas-91891a34/" target="_blank">
<i class="fab fa-linkedin"></i>
</a>
</li>
<li>
<a class="sc-twitter" href="https://www.twitter.com/_apalos" target="_blank">
<i class="fab fa-twitter"></i>
</a>
</li>
</ul>
</div>
</aside>
<main>
<nav>
<a href="https://apalos.github.io">Home</a>
<a href="/archives.html">Archives</a>
<a href="/categories.html">Categories</a>
<a href="/tags.html">Tags</a>
<a href="https://apalos.github.io/feeds/all.atom.xml">Atom</a>
</nav>
<article class="single">
<header>
<h1 id="EFI TCG2 protocol in U-Boot and QEMU">EFI TCG2 protocol in U-Boot and QEMU</h1>
<p>
Posted on Tue 31 August 2021 in <a href="https://apalos.github.io/category/uefi.html">UEFI</a>
• 5 min read
</p>
</header>
<div>
<h6></h6>
<p><link rel="stylesheet" href="overload.css"></p>
<h2><strong>Do I need a TPM?</strong></h2>
<p>I won't go into details regarding why a TPM is useful. There is an excellent
<a href="https://mjg59.dreamwidth.org/57199.html" target="_blank">article</a>
from Matthew Garrett on that, but the short answer is "yes you do".</p>
<h2><strong>U-Boot Support</strong></h2>
<p>There's a spec defining a standard interface to the TPM on an UEFI platform.
It's purpose is to define APIs and provide information, for things like,
is a TPM present, which PCR banks are active, change active PCR banks, obtain the TCG boot log,
extend hashes to PCRs, and append events to the TCG boot log etc.</p>
<p>U-Boot recently got support for this as well as support for the
<a href="https://trustedcomputinggroup.org/wp-content/uploads/TCG_PCClient_PFP_r1p05_v22_02dec2020.pdf" target="_blank">TCG PC Client Platform Firmware Profile</a>.</p>
<p>Patches can be found
<a href="https://lore.kernel.org/u-boot/[email protected]/" target="_blank"> here</a>,
<a href="https://lore.kernel.org/u-boot/[email protected]/" target="_blank">here</a>
and
<a href="https://lore.kernel.org/u-boot/[email protected]/" target="_blank">here</a>.</p>
<p>Finding an Arm device with with a TPMv2 can prove hard. So it would be useful
to emulate that in software. If you have a board with an RPMB and OP-TEE support,
I suggest you try Microsoft's <a href="https://github.com/microsoft/ms-tpm-20-ref/" target="_blank">fTPM</a>.
However testing that in QEMU won't work since it lacks RPMB emulation. Luckily
there's another solution.</p>
<h2><strong>Using SWTPM</strong></h2>
<p><a href="https://github.com/stefanberger/swtpm" target="_blank">SWTPM</a> is a
TPM emulator that works under QEMU. It provides a memory mapped device which
adheres to the <a href="https://trustedcomputinggroup.org/wp-content/uploads/TCG_PCClientTPMInterfaceSpecification_TIS__1-3_27_03212013.pdf" target="_blank">TCG TPM Interface Specification</a>.
The problem is that U-Boot had no support for memory mapped TPMs, which is
exactly what <a href="https://lore.kernel.org/u-boot/[email protected]/" target="_blank">this</a> patchset does.</p>
<h3><strong>Building U-Boot</strong></h3>
<p><s>At the time of this article the U-Boot patches are under review, so we need to
apply them manually.</p>
<p>So download the patches prepare your U-Boot binary.</s>
Patches are now in U-Boot mainline and the arm64 defconfig has the
required config options enabled.</p>
<div class="highlight"><pre><span></span><code>git clone https://github.com/u-boot/u-boot.git
<span class="nb">pushd</span> u-boot
make qemu_arm64_defconfig
make menuconfig
</code></pre></div>
<p>We need to enable the TPMv2 support in U-Boot
<code>CONFIG_TPM</code>, <code>CONFIG_CMD_TPM</code>, <code>CONFIG_TPM2_MMIO</code> must be enabled. Once
those are selected <code>CONFIG_EFI_TCG2_PROTOCOL</code> should be automatically included.
Make sure you enable <code>CONFIG_CMD_EFIDEBUG</code>, since we will need it to boot our
kernel.</p>
<div class="highlight"><pre><span></span><code>make -j <span class="k">$(</span>nproc<span class="k">)</span>
<span class="nb">popd</span>
</code></pre></div>
<h3><strong>Running QEMU</strong></h3>
<p>Make sure swtpm is installed and running on your system. For debian and friends
there's a swtpm package, so just do </p>
<div class="highlight"><pre><span></span><code>sudo apt install swtpm
mkdir /tmp/mytpm1
swtpm socket --tpmstate <span class="nv">dir</span><span class="o">=</span>/tmp/mytpm1 <span class="se">\</span>
--ctrl <span class="nv">type</span><span class="o">=</span>unixio,path<span class="o">=</span>/tmp/mytpm1/swtpm-sock <span class="se">\</span>
--log <span class="nv">level</span><span class="o">=</span><span class="m">40</span> --tpm2 <span class="p">&</span>
</code></pre></div>
<p>and launch QEMU with swtpm support</p>
<div class="highlight"><pre><span></span><code>sudo qemu-system-aarch64 <span class="se">\</span>
-bios u-boot.bin <span class="se">\</span>
-machine virt,gic-version<span class="o">=</span><span class="m">3</span>,accel<span class="o">=</span>kvm <span class="se">\</span>
-cpu host -m 4G <span class="se">\</span>
-nographic -no-acpi <span class="se">\</span>
-chardev socket,id<span class="o">=</span>chrtpm,path<span class="o">=</span>/tmp/mytpm1/swtpm-sock <span class="se">\</span>
-tpmdev emulator,id<span class="o">=</span>tpm0,chardev<span class="o">=</span>chrtpm <span class="se">\</span>
-device tpm-tis-device,tpmdev<span class="o">=</span>tpm0 <span class="se">\</span>
-drive <span class="nv">id</span><span class="o">=</span>disk0,file<span class="o">=</span>rootfs-linaro-buster-raw-unknown-20200720-440.ext4,if<span class="o">=</span>none,format<span class="o">=</span>raw <span class="se">\</span>
-device virtio-blk-device,drive<span class="o">=</span>disk0
</code></pre></div>
<h3><strong>Booting linux</strong></h3>
<p>From U-Boot's command line do something along the lines of</p>
<div class="highlight"><pre><span></span><code>tpm2 startup TPM2_SU_CLEAR <span class="o">&&</span> virtio scan
efidebug boot add -b ABE0 <span class="s1">'kernel'</span> virtio <span class="m">0</span> boot/Image -s <span class="s1">'root=/dev/vda'</span>
efidebug boot order ABE0
bootefi bootmgr
</code></pre></div>
<p>If everything is compiled and launched correctly, you should see the kernel
reporting the location of some related EventLog pointers.</p>
<div class="highlight"><pre><span></span><code><span class="go">efi: EFI v2.80 by Das U-Boot</span>
<span class="go">efi: TPMFinalLog=0x13ddcc040 RTPROP=0x13ddcb040 SMBIOS=0xffffe000 TPMEventLog=0x13ddc4040 MEMRESERVE=0x13ddc3040 </span>
</code></pre></div>
<h3><strong>Reading the EventLog</strong></h3>
<p>I am using a debian .ext4 image, where I have installed the latest tpm2 tools.
If you don't have them install them with</p>
<div class="highlight"><pre><span></span><code>sudo apt install tpm2-tools
</code></pre></div>
<p>The kernel exposes the eventlog in /sys. So you can read it with:</p>
<div class="highlight"><pre><span></span><code><span class="n">tpm2_eventlog</span> <span class="sr">/sys/</span><span class="n">kernel</span><span class="o">/</span><span class="n">security</span><span class="o">/</span><span class="n">tpm0</span><span class="o">/</span><span class="n">binary_bios_measurements</span>
<span class="o">---</span>
<span class="ss">events</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">0</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">0</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_NO_ACTION</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"0000000000000000000000000000000000000000"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">37</span>
<span class="ss">SpecID</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">Signature</span><span class="p">:</span> <span class="no">Spec</span> <span class="no">ID</span> <span class="no">Event03</span>
<span class="ss">platformClass</span><span class="p">:</span> <span class="mi">0</span>
<span class="ss">specVersionMinor</span><span class="p">:</span> <span class="mi">0</span>
<span class="ss">specVersionMajor</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">specErrata</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">uintnSize</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">numberOfAlgorithms</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Algorithms</span><span class="p">:</span>
<span class="o">-</span> <span class="no">Algorithm</span><span class="o">[</span><span class="mi">0</span><span class="o">]</span><span class="p">:</span>
<span class="ss">algorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">digestSize</span><span class="p">:</span> <span class="mi">20</span>
<span class="o">-</span> <span class="no">Algorithm</span><span class="o">[</span><span class="mi">1</span><span class="o">]</span><span class="p">:</span>
<span class="ss">algorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">digestSize</span><span class="p">:</span> <span class="mi">32</span>
<span class="ss">vendorInfoSize</span><span class="p">:</span> <span class="mi">0</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">1</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">0</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_S_CRTM_VERSION</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"0772fd675fbebcdd4401008ee8d609760c1675df"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"69f66450f9a8780cf2fbab358d46b8fabd4b7e9ae886b3d80083646c30e91b4c"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">74</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s2">"552d426f6f7420323032312e31302d7263322d30303031302d67643536666231666138352d646972747920284175672032342032303231202d2030363a33343a3335202b303830302900"</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">7</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_EFI_VARIABLE_DRIVER_CONFIG</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"57cd4dc19442475aa82743484f3b1caa88e142b8"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"115aa827dbccfb44d216ad9ecfda56bdea620b860a94bed5b7a27bba1c4d02d8"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">53</span>
<span class="ss">Event</span><span class="p">:</span>
<span class="ss">VariableName</span><span class="p">:</span> <span class="mi">61</span><span class="n">dfe48b</span><span class="o">-</span><span class="n">ca93</span><span class="o">-</span><span class="n">d211</span><span class="o">-</span><span class="n">aa0d</span><span class="o">-</span><span class="mo">00</span><span class="n">e098032b8c</span>
<span class="ss">UnicodeNameLength</span><span class="p">:</span> <span class="mi">10</span>
<span class="ss">VariableDataLength</span><span class="p">:</span> <span class="mi">1</span>
<span class="ss">UnicodeName</span><span class="p">:</span> <span class="no">SecureBoot</span>
<span class="ss">VariableData</span><span class="p">:</span> <span class="s2">"00"</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">3</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">7</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_EFI_VARIABLE_DRIVER_CONFIG</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"9b1387306ebb7ff8e795e7be77563666bbf4516e"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"dea7b80ab53a3daaa24d5cc46c64e1fa9ffd03739f90aadbd8c0867c4a5b4890"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">36</span>
<span class="ss">Event</span><span class="p">:</span>
<span class="ss">VariableName</span><span class="p">:</span> <span class="mi">61</span><span class="n">dfe48b</span><span class="o">-</span><span class="n">ca93</span><span class="o">-</span><span class="n">d211</span><span class="o">-</span><span class="n">aa0d</span><span class="o">-</span><span class="mo">00</span><span class="n">e098032b8c</span>
<span class="ss">UnicodeNameLength</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">VariableDataLength</span><span class="p">:</span> <span class="mi">0</span>
<span class="ss">UnicodeName</span><span class="p">:</span> <span class="no">PK</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">4</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">7</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_EFI_VARIABLE_DRIVER_CONFIG</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"9afa86c507419b8570c62167cb9486d9fc809758"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"e670e121fcebd473b8bc41bb801301fc1d9afa33904f06f7149b74f12c47a68f"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">38</span>
<span class="ss">Event</span><span class="p">:</span>
<span class="ss">VariableName</span><span class="p">:</span> <span class="mi">61</span><span class="n">dfe48b</span><span class="o">-</span><span class="n">ca93</span><span class="o">-</span><span class="n">d211</span><span class="o">-</span><span class="n">aa0d</span><span class="o">-</span><span class="mo">00</span><span class="n">e098032b8c</span>
<span class="ss">UnicodeNameLength</span><span class="p">:</span> <span class="mi">3</span>
<span class="ss">VariableDataLength</span><span class="p">:</span> <span class="mi">0</span>
<span class="ss">UnicodeName</span><span class="p">:</span> <span class="no">KEK</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">5</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">7</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_EFI_VARIABLE_DRIVER_CONFIG</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"5bf8faa078d40ffbd03317c93398b01229a0e1e0"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"baf89a3ccace52750c5f0128351e0422a41597a1adfd50822aa363b9d124ea7c"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">36</span>
<span class="ss">Event</span><span class="p">:</span>
<span class="ss">VariableName</span><span class="p">:</span> <span class="n">cbb219d7</span><span class="o">-</span><span class="mi">3</span><span class="n">a3d</span><span class="o">-</span><span class="mi">9645</span><span class="o">-</span><span class="n">a3bc</span><span class="o">-</span><span class="n">dad00e67656f</span>
<span class="ss">UnicodeNameLength</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">VariableDataLength</span><span class="p">:</span> <span class="mi">0</span>
<span class="ss">UnicodeName</span><span class="p">:</span> <span class="n">db</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">6</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">7</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_EFI_VARIABLE_DRIVER_CONFIG</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"734424c9fe8fc71716c42096f4b74c88733b175e"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"9f75b6823bff6af1024a4e2036719cdd548d3cbc2bf1de8e7ef4d0ed01f94bf9"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">38</span>
<span class="ss">Event</span><span class="p">:</span>
<span class="ss">VariableName</span><span class="p">:</span> <span class="n">cbb219d7</span><span class="o">-</span><span class="mi">3</span><span class="n">a3d</span><span class="o">-</span><span class="mi">9645</span><span class="o">-</span><span class="n">a3bc</span><span class="o">-</span><span class="n">dad00e67656f</span>
<span class="ss">UnicodeNameLength</span><span class="p">:</span> <span class="mi">3</span>
<span class="ss">VariableDataLength</span><span class="p">:</span> <span class="mi">0</span>
<span class="ss">UnicodeName</span><span class="p">:</span> <span class="n">dbx</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">7</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">4</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_EFI_BOOT_SERVICES_APPLICATION</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"d2702383b2e042ebefbb318f9382fd094c1c2d6b"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"8fb6a4c7a0c7e7f22b944906eb07786cd3860394c7929e7c0768b2c99a2a3d87"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">162</span>
<span class="ss">Event</span><span class="p">:</span>
<span class="ss">ImageLocationInMemory</span><span class="p">:</span> <span class="mh">0x7adb3000</span>
<span class="ss">ImageLengthInMemory</span><span class="p">:</span> <span class="mi">893720</span>
<span class="ss">ImageLinkTimeAddress</span><span class="p">:</span> <span class="mh">0x0</span>
<span class="ss">LengthOfDevicePath</span><span class="p">:</span> <span class="mi">130</span>
<span class="ss">DevicePath</span><span class="p">:</span> <span class="s2">"01041400b9731de684a3cc4aaeab82e828f3628b031d050002031d05000104012a0001000000009800000000000000f805000000000050641c65888b6b418f2257061a9dc3c50202040436005c004500460049005c00640065006200690061006e005c007300680069006d0061006100360034002e0065006600690000007fff0400"</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">8</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">1</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">Unknown</span> <span class="n">event</span> <span class="n">type</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"50eb6bd100c48e81644d666a437725f49c6aed3c"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"eb881b78feeb95756141a8d5358b891b297fad61b296f667de1f59b66bc92f4f"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">52</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s2">"61dfe48bca93d211aa0d00e098032b8c0900000000000000020000000000000042006f006f0074004f0072006400650072000000"</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">9</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">1</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">Unknown</span> <span class="n">event</span> <span class="n">type</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"74e29a0674816dfdfc2c2e9cbbcec357132da4e8"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"5d123811f51e2e46c437c7e88e07053c81f4e63da3f11de8a8a2afb5334db137"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">198</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s2">"61dfe48bca93d211aa0d00e098032b8c0800000000000000960000000000000042006f006f0074003000300030003000010000008200640065006200690061006e00000001041400b9731de684a3cc4aaeab82e828f3628b031d050002031d05000104012a0001000000009800000000000000f805000000000050641c65888b6b418f2257061a9dc3c50202040436005c004500460049005c00640065006200690061006e005c007300680069006d0061006100360034002e0065006600690000007fff0400"</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">10</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">4</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_EFI_ACTION</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"cd0fdb4531a6ec41be2753ba042637d6e5f7f256"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"3d6772b4f84ed47595d72a2c4c5ffd15f5bb72c7507fe26f2aaee2c69d5633ba"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">40</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s1">'Calling EFI Application from Boot Option'</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">11</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">0</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_SEPARATOR</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"9069ca78e7450a285173431b3e52c5c25299e473"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">4</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s2">"00000000"</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">12</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">1</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_SEPARATOR</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"9069ca78e7450a285173431b3e52c5c25299e473"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">4</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s2">"00000000"</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">13</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_SEPARATOR</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"9069ca78e7450a285173431b3e52c5c25299e473"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">4</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s2">"00000000"</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">14</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">3</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_SEPARATOR</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"9069ca78e7450a285173431b3e52c5c25299e473"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">4</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s2">"00000000"</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">15</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">4</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_SEPARATOR</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"9069ca78e7450a285173431b3e52c5c25299e473"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">4</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s2">"00000000"</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">16</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">5</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_SEPARATOR</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"9069ca78e7450a285173431b3e52c5c25299e473"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">4</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s2">"00000000"</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">17</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">6</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_SEPARATOR</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"9069ca78e7450a285173431b3e52c5c25299e473"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">4</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s2">"00000000"</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">18</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">7</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_SEPARATOR</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"9069ca78e7450a285173431b3e52c5c25299e473"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">4</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s2">"00000000"</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">19</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">5</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_EFI_ACTION</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"443a6b7b82b7af564f2e393cd9d5a388b7fa4a98"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"d8043d6b7b85ad358eb3b6ae6a873ab7ef23a26352c5dc4faa5aeedacf5eb41b"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">29</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s1">'Exit Boot Services Invocation'</span>
<span class="o">-</span> <span class="ss">EventNum</span><span class="p">:</span> <span class="mi">20</span>
<span class="ss">PCRIndex</span><span class="p">:</span> <span class="mi">5</span>
<span class="ss">EventType</span><span class="p">:</span> <span class="no">EV_EFI_ACTION</span>
<span class="ss">DigestCount</span><span class="p">:</span> <span class="mi">2</span>
<span class="ss">Digests</span><span class="p">:</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha1</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"475545ddc978d7bfd036facc7e2e987f48189f0d"</span>
<span class="o">-</span> <span class="ss">AlgorithmId</span><span class="p">:</span> <span class="n">sha256</span>
<span class="ss">Digest</span><span class="p">:</span> <span class="s2">"b54f7542cbd872a81a9d9dea839b2b8d747c7ebd5ea6615c40f42f44a6dbeba0"</span>
<span class="ss">EventSize</span><span class="p">:</span> <span class="mi">40</span>
<span class="ss">Event</span><span class="p">:</span> <span class="s1">'Exit Boot Services Returned with Success'</span>
<span class="ss">pcrs</span><span class="p">:</span>
<span class="ss">sha1</span><span class="p">:</span>
<span class="mi">0</span> <span class="p">:</span> <span class="mh">0x3e26be54f5f15140afbe509cc4580538d979598d</span>
<span class="mi">1</span> <span class="p">:</span> <span class="mh">0x5b4c188c39baa249f688460a63b68df6d3d3ec94</span>
<span class="mi">2</span> <span class="p">:</span> <span class="mh">0xb2a83b0ebf2f8374299a5b2bdfc31ea955ad7236</span>
<span class="mi">3</span> <span class="p">:</span> <span class="mh">0xb2a83b0ebf2f8374299a5b2bdfc31ea955ad7236</span>
<span class="mi">4</span> <span class="p">:</span> <span class="mh">0x260ae65533f38ab643f157bd176c72f9fdece410</span>
<span class="mi">5</span> <span class="p">:</span> <span class="mh">0xd16d7e629fd8d08ca256f9ad3a3a1587c9e6cc1b</span>
<span class="mi">6</span> <span class="p">:</span> <span class="mh">0xb2a83b0ebf2f8374299a5b2bdfc31ea955ad7236</span>
<span class="mi">7</span> <span class="p">:</span> <span class="mh">0x518bd167271fbb64589c61e43d8c0165861431d8</span>
<span class="ss">sha256</span><span class="p">:</span>
<span class="mi">0</span> <span class="p">:</span> <span class="mh">0x7f35c1ef1bb7b9d2aee58ec4c36cf384d70524c2ce2b6801772d7fdb1d2b5f5a</span>
<span class="mi">1</span> <span class="p">:</span> <span class="mh">0xf35b74319598e48a6a69a6a04e903a872558b891563b0af23c877c8472c277a6</span>
<span class="mi">2</span> <span class="p">:</span> <span class="mh">0x3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969</span>
<span class="mi">3</span> <span class="p">:</span> <span class="mh">0x3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969</span>
<span class="mi">4</span> <span class="p">:</span> <span class="mh">0xbe4d7464e3a3c0a04040355368006a5fbe02c0ef232c8c18926df9b718374f36</span>
<span class="mi">5</span> <span class="p">:</span> <span class="mh">0xa5ceb755d043f32431d63e39f5161464620a3437280494b5850dc1b47cc074e0</span>
<span class="mi">6</span> <span class="p">:</span> <span class="mh">0x3d458cfe55cc03ea1f443f1562beec8df51c75e14a9fcf9a7234a13f198e7969</span>
<span class="mi">7</span> <span class="p">:</span> <span class="mh">0x65caf8dd1e0ea7a6347b635d2b379c93b9a1351edc2afc3ecda700e534eb3068</span>
</code></pre></div>
</div>
<div class="tag-cloud">
<p>
<a href="https://apalos.github.io/tag/bootloaders.html">Bootloaders</a>
<a href="https://apalos.github.io/tag/security.html">Security</a>
<a href="https://apalos.github.io/tag/u-boot.html">U-Boot</a>
<a href="https://apalos.github.io/tag/uefi.html">UEFI</a>
<a href="https://apalos.github.io/tag/tpm.html">TPM</a>
</p>
</div>
</article>
<footer>
<p>© </p>
<p>
Built with <a href="http://getpelican.com" target="_blank">Pelican</a> using <a href="http://bit.ly/flex-pelican" target="_blank">Flex</a> theme
</p> </footer>
</main>
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Blog",
"name": " Volatile rumblings ",
"url" : "https://apalos.github.io",
"image": "site_images/profile.png",
"description": ""
}
</script>
</body>
</html>