Download presentation
Presentation is loading. Please wait.
1
Assignment #7 โ Solutions
2
Problem 1a Migrating secrets between platform configurations on a single machine. TPM command to seal ๐: ๐ถ=๐๐๐๐( ๐พ ๐ธ๐๐๐ต,๐ด ,๐,๐๐ถ ๐
0 ,๐๐ถ ๐
1 ,๐๐ถ ๐
2 ,๐๐ถ ๐
3 ,๐๐ถ ๐
4 ,๐๐ถ ๐
5 ) TPM command to unseal ๐ถ and retrieve ๐: ๐๐๐ ๐๐๐( ๐พ ๐ธ๐๐
๐ผ๐,๐ด ,๐ถ,๐๐ถ ๐
0 ,๐๐ถ ๐
1 ,๐๐ถ ๐
2 ,๐๐ถ ๐
3 ,๐๐ถ ๐
4 ,๐๐ถ ๐
5 ) 11/27/2018 Practical Aspects of Modern Cryptography
3
Problem 1b Patching part of the measured OS
Before applying the patch, the OS needs to seal ๐ to the set of new PCR values that match the patched OS and save this sealed value away Then, after patching, the PCR values of the patched OS will update and allow this sealed value to be unsealed. ๐๐๐๐( ๐พ ๐ธ๐๐๐ต,๐ด ,๐,๐๐ถ ๐
0 ,๐๐ถ ๐
1 ,๐๐ถ ๐
2 ,๐๐ถ ๐
3 ,๐๐ถ ๐
โฒ 4 ,๐๐ถ ๐
โฒ 5 ) 11/27/2018 Practical Aspects of Modern Cryptography
4
Problem 2 Migrating secrets between machines with TPMs
Basic idea: use ๐๐๐๐ (without any PCR values) to encrypt ๐ to ๐ตโs TPM. ๐ด needs a copy of ๐ตโs public encryption key for ๐๐๐๐, so ๐ด queries the PKI (or perhaps B itself) for a copy of the PKIโscertificate issued to ๐พ ๐ธ๐๐๐ต,๐ต . ๐ด verifies that the cert chains properly to the PKIโs trusted root, then extracts ๐พ ๐ธ๐๐๐ต,๐ต from the certificate With ๐พ ๐ธ๐๐๐ต,๐ต , ๐ด computes ๐ถ=๐๐๐๐( ๐พ ๐ธ๐๐๐ต,๐ต ,๐) ๐ด then sends ๐ถ to ๐ต B computes ๐๐๐ ๐๐๐ ๐พ ๐พ๐๐
๐ผ๐,๐ต ,๐ถ =๐. 11/27/2018 Practical Aspects of Modern Cryptography
5
Problem 3 Migrating secrets between machines with TPMs with assurance of equivalent software stacks Before sending ๐ to ๐ต (in any form), ๐ด should receive from ๐ต some proof that ๐ต โฒ ๐ OS boot sequence (measured by PCRs 0-5) is the same as ๐ด โฒ ๐ . When ๐ is transmitted to ๐ต, ๐ด should ensure that ๐ will only be accessible on ๐ต if the same software stack is running on ๐ต as on ๐ด at the time the migration begins. 11/27/2018 Practical Aspects of Modern Cryptography
6
Problem 3a โBefore sending ๐ to ๐ต (in any form), ๐ด should receive from ๐ต some proof that ๐ต โฒ ๐ OS boot sequence (measured by PCRs 0-5) is the same as ๐ด โฒ ๐ .โ ๐ด can request an attestation from ๐ต to something that includes PCRs 0-5. To make sure the attestation is โfreshโ, ๐ด should send a random challenge value to ๐ต and ask ๐ต to ๐๐ข๐๐ก๐ that. ๐ด ๏ ๐ต: random value ๐
(say 128 bits of random) ๐ต ๏ ๐ด: ๐=๐๐ข๐๐ก๐( ๐พ ๐๐๐ผ๐บ,๐ต ,๐
, ๐๐ถ ๐
0 ,๐๐ถ ๐
1 ,โฆ, ๐๐ถ ๐
5 ) ๐ด verifies the signature on ๐, checks ๐
hasnโt changed, checks ๐๐ถ ๐
0 ,โฆ, ๐๐ถ ๐
5 . 11/27/2018 Practical Aspects of Modern Cryptography
7
Problem 3b ๐ด uses ๐๐๐๐ to encrypt ๐ to ๐ต and the values of PCRs 0-5
โWhen ๐ is transmitted to ๐ต, ๐ด should ensure that ๐ will only be accessible on ๐ต if the same software stack is running on ๐ต as on ๐ด at the time the migration begins.โ ๐ด uses ๐๐๐๐ to encrypt ๐ to ๐ต and the values of PCRs 0-5 We assume ๐ด has a copy of ๐ต โฒ ๐ public encryption key ๐พ ๐ธ๐๐๐ต,๐ต Using ๐พ ๐ธ๐๐๐ต,๐ต , ๐ด computes ๐ถ=๐๐๐๐( ๐พ ๐ธ๐๐๐ต,๐ต ,๐, ๐๐ถ ๐
0 ,๐๐ถ ๐
1 ,โฆ, ๐๐ถ ๐
5 ) ๐ด then sends ๐ถ to ๐ต B computes ๐๐๐ ๐๐๐ ๐พ ๐พ๐๐
๐ผ๐,๐ต ,๐ถ, ๐๐ถ ๐
0 , ๐๐ถ ๐
1 , โฆ, ๐๐ถ ๐
5 =๐. 11/27/2018 Practical Aspects of Modern Cryptography
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.