DevTalk #13 Summary
Here is a short 12 minute recording of our 90+ minutes awesome dev talk this week - Freshness and timeliness of measurements and attestation, along other topics.
On this week's call we hit a lot of topics, thanks to Ian Oliver, Daniel Smith, Michael Richardson, Ken Goldman, Nico Oliver, Paul Kissinger for joining in and special thanks to David Garske for helping out with the summary below!
From now on, we will be recording a small portion of the call to help lower the knowledge barrier and at the same time continue to have our open dev talk. :)
Resources mentioned from the talk in the forum and here is a quick summary
1. Based on feedback from the call, Michael Richardson filled an issue for adding PC example for RATS, how a TPM Quote fits when using RATS - https://github.com/ietf-rats-wg/eat/issues/64
2. From Daniel Smith - https://web.cs.wpi.edu/~guttman/pubs/good_attest.pdf
Principle 1 (Fresh information) Assertions about the target should reflect the running system, rather than just disk images. Some measurement tools pro- vide only start-up time information about the target in the expectation that its security-relevant properties still hold. Other tools can inspect the current state of an active target, as discussed in Section 5.1.
The architecture cannot predict the uses to which appraisers will put the information it delivers. Appraisers may need to make very different decisions, and—to justify them—need to make different predictions about the future behavior of the target. This suggests the next principle.”
3. Ken Goldman's Remote Attestation Client / Server examples that uses JSON to encapsulate the Quotes from the TPM with some other information, exchanged between the Server(Versifier) and the Client(Attester)
The data exchanged between the Server and Client includes
Hostname (index to lookup the public key)
Quote (TPM data)
Signature (as part of the quote)
Pre-os event log and post-os event log.
https://sourceforge.net/projects/ibmtpm20acs/
4. "Load time integrity vs run-time integrity. Prime paper done by Trent", big thanks to Daniel one more time ;)
https://dl.acm.org/doi/pdf/10.1145/1133058.1133063
5. Daniel Smith is going ahead with developing a new fTPM for Xen
6. Interesting discussion around Dynamic root of trust and halting system execution. Will expand into an article
7. Very interesting discussion around Remote Attestation. Will expand into an article. This is the part I originally wanted to record, but forgot to press the button on Teams... my bad :|
8. Curious mentioning of TAG memory from the time of VAX by Ian and Daniel. Every 4GB address space tagged on heap / stack, etc.. Could use the non-active memory regions to check without having to halt the system. This was continuation of the SRTM/DRTM
9. Daniel - "CHERI guys at Cambridge are adding tagged memory. ARM and CHERI announced a chip together. CHERI presented at PSEC back in November about TAGGED memory. https://www.cl.cam.ac.uk/research/security/ctsrd/cheri/ch...
And so much more, it is really difficult to describe everything short and clear.
Join in for this week's call ! RSVP in events ;)
#MeetupsAnnouncements❤️
👍
💡
👏
😂
Explore More Posts
The latest tpm2-tools 5.8 release addresses three GitHub security advisories. One is a heap overflow in tpm2_getekcertificate, and the other is an out-of-bounds write that happens when too many sessions are in use. I don’t have information on the third advisory. Beyond the fixes, 5.8 extends EK certificate handling. It adds the option to read EK certificates from NV RAM, introduces new EK templates and supports a marshaled quote format. https://github.com/tpm2-software/tpm2-tools/releases/tag/5.8
Random Number Generator (TPM2)
1. IntroductionAmong other features, Trusted Platform Modules (TPM) comes with a True Random Number Generator (TRNG) that can be used for various applications including cryptographic purposes. This RNG module serves as the source for randomness for the TPM 2.0 Chip. A RNG module in TPM2 will typically contain the following -
An entropy source and collector
State Register
A mixing func.
There can be two types of calls to the TPM’s Random Number Generator, Internal call and External Call. RNG is capable to provide enough randomness for all the internal calls made. As well as, RNG is capable of providing 32 octets of randomness as per the specification to an external call. Another thing to note here is, each call made to the RNG produces a new value irrespective of the type of call. 1.1 The source of RandomnessThe source of entropy in the TPM is the entropy collector. As the name suggests, entropy collector collects entropy from entropy sources and also removes bias. A TPM2.0 has at least one internal source of entropy. These sources can include noise, clock variations, air movement amongst other events. As depicted in Fig 1.1 the entropy collector provides input to the State Register. 1.2 Stages involved Various algorithms and process supported by TPM calls RNG for unpredictable numbers, which is actually obtained from “RNG Protected Capability”. The “Deterministic Random Bit Generator (DRBG) Protected Capability“ obtains entropy from “Entropy Protected Capability”. Along with Entropy Protected Capability, TPM2_StirRandom() can also gather entropy from other entropy sources within the same TPM. 2. Random Numbers via TPM2 ToolsIf one needs to use TPM’s RNG for other external applications, then TPM2 Tools Command Line tools can be a great option. TPM2 Tools Command : tpm2_getrandom - - hex 16 - - hex : Converts output to hexadecimal 16 : Size in bytes Now, if one wants to have additional randomness, TPM2 Tools provides a convenient utility for this purpose called tpm2_stirrandom. To inject entropy via TPM2_StirRandom() to “Entropy Protected Capability” , we can use some file or use stdin. TPM2 Tools Command : echo -n “some_random_data” | tpm2_stirrandom Note : 128 bytes can only be injected using stdin at once through stirrandom() 3. ConclusionThe TPM2 provides in a sense True Random Numbers for use. These unpredictable numbers are coming from a dedicated hardware, hence can be trusted to be given as input to Crypto Algorithms amongst other applications. TPM2 also uses this for its internal use, and TCG claims it to be as secure as the strongest algorithm that TPM supports. Also, using the RNG is pretty straight forward via TPM2 Tools. #Tutorials



Comments
Start the Conversation