cc-api / cc-trusted-api

Unified API to Access TCG Compliant measurement, event log, quote in Confidential Computing Environment.
Apache License 2.0
28 stars 18 forks source link

vmsdk: add runtime event log fetching #65

Closed Ruoyu-y closed 5 months ago

Ruoyu-y commented 5 months ago
Ruoyu-y commented 5 months ago

Sample output for IMA event log:

cctrusted_base.tcg INFO     ----------------------------------Event Log Entry---------------------------------
cctrusted_base.tcg INFO     IMR               : 2
cctrusted_base.tcg INFO     Type              : 0x13 (IMA_MEASUREMENT_EVENT)
cctrusted_base.tcg INFO     Algorithm_id[0]   : 12 (TPM_ALG_SHA384)
cctrusted_base.tcg INFO     Digest[0]:
cctrusted_base.binaryblob INFO     00000000  81 2E 75 AD 86 6F 8E A2 C0 06 12 DB B8 22 EB 50  ..u..o.......".P
cctrusted_base.binaryblob INFO     00000010  F5 D2 5E F5 F8 BE 78 43 8B 6E 9D 05 02 DF F7 2D  ..^...xC.n.....-
cctrusted_base.binaryblob INFO     00000020  99 AC DF B1 15 2A 75 7A C8 A4 AA 5A 8D 11 10 21  .....*uz...Z...!
cctrusted_base.tcg INFO     Event:
cctrusted_base.binaryblob INFO     00000000  69 6D 61 3A 73 68 61 33 38 34 3A 37 36 30 39 31  ima:sha384:76091
cctrusted_base.binaryblob INFO     00000010  34 36 63 33 61 35 63 38 32 32 36 34 36 65 33 34  46c3a5c822646e34
cctrusted_base.binaryblob INFO     00000020  64 66 39 37 61 34 61 38 37 31 66 64 32 34 34 37  df97a4a871fd2447
cctrusted_base.binaryblob INFO     00000030  39 33 64 64 38 30 38 37 66 33 64 33 31 62 33 63  93dd8087f3d31b3c
cctrusted_base.binaryblob INFO     00000040  31 38 34 36 31 33 31 66 36 66 32 39 36 30 32 64  1846131f6f29602d
cctrusted_base.binaryblob INFO     00000050  65 35 65 30 61 30 64 31 61 36 38 62 39 35 65 37  e5e0a0d1a68b95e7
cctrusted_base.binaryblob INFO     00000060  64 35 64 37 30 61 32 39 62 33 30 20 62 6F 6F 74  d5d70a29b30 boot
cctrusted_base.binaryblob INFO     00000070  5F 61 67 67 72 65 67 61 74 65                    _aggregate