intel / trustauthority-client-for-go

BSD 3-Clause "New" or "Revised" License
20 stars 19 forks source link

event_log format #32

Open mythi opened 5 months ago

mythi commented 5 months ago

The API docs says:

event_log   
Array of integers <uint8> [ items <uint8 > ]

Log of all events that get extended to RTMRs (runtime-extendable measurement registers). RTMR event log is available through ACPI.

a naive interpretation suggests that this is about reading the CCEL table and adding a base64 encoded string of the TCG formatted file to the request. However, that errors with a bad request.

Looking at the client code here, I can see it's parsing the CCEL file to drop the TCG format to build a custom JSON. Is there a doc somewhere what's in event_log that is passed via the REST API?

arvind5 commented 5 months ago

@mythi, here is the JSON format for event log:

[
  {
    "rtmr": {
      "index": 1,
      "bank": "SHA384"
    },
    "rtmr_events": [
      {
        "type_id": "0x8000000b",
        "type_name": "EV_EFI_HANDOFF_TABLES2",
        "tags": [
          "TdxTable"
        ],
        "measurement": "bb8f1f2815e1778fd8413db49e429bf78380638b22c668a9c90a1540776bb5545a08361b673c3c845bb582e51df766e6"
      },
      {
        "type_id": "0x8000000a",
        "type_name": "EV_EFI_PLATFORM_FIRMWARE_BLOB2",
        "tags": [
          "Fv(XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)"
        ],
        "measurement": "344bc51c980ba621aaa00da3ed7436f7d6e549197dfe699515dfa2c6583d95e6412af21c097d473155875ffd561d6790"
      },
      {
        "type_id": "0x80000001",
        "type_name": "EV_EFI_VARIABLE_DRIVER_CONFIG",
        "tags": [
          "SecureBoot"
        ],
        "measurement": "cfa4e2c606f572627bf06d5669cc2ab1128358d27b45bc63ee9ea56ec109cfafb7194006f847a6a74b5eaed6b73332ec"
      },
      {
        "type_id": "0x80000001",
        "type_name": "EV_EFI_VARIABLE_DRIVER_CONFIG",
        "tags": [
          "PK"
        ],
        "measurement": "6f2e3cbc14f9def86980f5f66fd85e99d63e69a73014ed8a5633ce56eca5b64b692108c56110e22acadcef58c3250f1b"
      },
      {
        "type_id": "0x80000001",
        "type_name": "EV_EFI_VARIABLE_DRIVER_CONFIG",
        "tags": [
          "KEK"
        ],
        "measurement": "d607c0efb41c0d757d69bca0615c3a9ac0b1db06c557d992e906c6b7dee40e0e031640c7bfd7bcd35844ef9edeadc6f9"
      },
      {
        "type_id": "0x80000001",
        "type_name": "EV_EFI_VARIABLE_DRIVER_CONFIG",
        "tags": [
          "db"
        ],
        "measurement": "08a74f8963b337acb6c93682f934496373679dd26af1089cb4eaf0c30cf260a12e814856385ab8843e56a9acea19e127"
      },
      {
        "type_id": "0x80000001",
        "type_name": "EV_EFI_VARIABLE_DRIVER_CONFIG",
        "tags": [
          "dbx"
        ],
        "measurement": "18cc6e01f0c6ea99aa23f8a280423e94ad81d96d0aeb5180504fc0f7a40cb3619dd39bd6a95ec1680a86ed6ab0f9828d"
      },
      {
        "type_id": "0x4",
        "type_name": "EV_SEPARATOR",
        "measurement": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0"
      },
      {
        "type_id": "0xa",
        "type_name": "EV_PLATFORM_CONFIG_FLAGS",
        "tags": [
          "FACS"
        ],
        "measurement": "0e8892bbdd54b2731c4e4a5ce35f1f7ee633a7d9dc853aed56be56b291ed789f105e926397d88c5d21b75fdb78b744e9"
      },
      {
        "type_id": "0xa",
        "type_name": "EV_PLATFORM_CONFIG_FLAGS",
        "tags": [
          "DSDT"
        ],
        "measurement": "c0a619c1cb050fc425d779fb7673b4cbfea3339a65da6989c37b65bfa198154da24719011da374d1c5841f34ed8c2862"
      },
      {
        "type_id": "0xa",
        "type_name": "EV_PLATFORM_CONFIG_FLAGS",
        "tags": [
          "FACP"
        ],
        "measurement": "84be1421d61dda3f673cd3666ef3873038d2e1b4bf1f5c8174f3da33a6ea7a6b35d6f06a5bbcd4dc9db8f779d4aeffb8"
      },
      {
        "type_id": "0xa",
        "type_name": "EV_PLATFORM_CONFIG_FLAGS",
        "tags": [
          "APIC"
        ],
        "measurement": "6271c0b58cd79a9b632c1007769ba37b382011442ece397e14315145b903521979a1cff902db3536169908eeaffd74bf"
      },
      {
        "type_id": "0xa",
        "type_name": "EV_PLATFORM_CONFIG_FLAGS",
        "tags": [
          "MCFG"
        ],
        "measurement": "33275c8a91c3398ec51ff8f17bb97ed411eb9381554604d8cc8f12f2498f4441377acba5e8ee3338b946daac077f794a"
      },
      {
        "type_id": "0xa",
        "type_name": "EV_PLATFORM_CONFIG_FLAGS",
        "tags": [
          "WAET"
        ],
        "measurement": "06d9b87c34d12cec22d97a3bf65055c3eb5029d9ab50aea0581a5e9c645fb52b545abf1f9c326f5535b48bdbc0b33a72"
      },
      {
        "type_id": "0x800000e0",
        "type_name": "EV_EFI_VARIABLE_AUTHORITY",
        "tags": [
          "SbatLevel"
        ],
        "measurement": "f143e2948d63fcd3442e841bb36a7e180871f0a8946541961fe9d12e70d0727874600956264dba531e2edd8729c5eb38"
      }
    ]
  },
  {
    "rtmr": {
      "index": 2,
      "bank": "SHA384"
    },
    "rtmr_events": [
      {
        "type_id": "0x80000002",
        "type_name": "EV_EFI_VARIABLE_BOOT",
        "tags": [
          "BootOrder"
        ],
        "measurement": "17ac1475128af46c9ea8f807632543c44415306dd06cca9efc8ecf3913146c3095f47ba61d93bcf0618de8759fc13989"
      },
      {
        "type_id": "0x80000002",
        "type_name": "EV_EFI_VARIABLE_BOOT",
        "tags": [
          "Boot0003"
        ],
        "measurement": "718d97fba60023b1bb31e6d35ed63ac6ab348771e5858d96df047841bbb59cc181206b864dce89b1f527c0589f6a9275"
      },
      {
        "type_id": "0x80000002",
        "type_name": "EV_EFI_VARIABLE_BOOT",
        "tags": [
          "Boot0000"
        ],
        "measurement": "23ada07f5261f12f34a0bd8e46760962d6b4d576a416f1fea1c64bc656b1d28eacf7047ae6e967c58fd2a98bfa74c298"
      },
      {
        "type_id": "0x80000002",
        "type_name": "EV_EFI_VARIABLE_BOOT",
        "tags": [
          "Boot0001"
        ],
        "measurement": "e1ebe64bc230e0f003cdf5edb010ebf07b277ed437a069ab41e251e5230ec8f94e6f62cd0bd45eb9b7a8d01101201cf9"
      },
      {
        "type_id": "0x80000002",
        "type_name": "EV_EFI_VARIABLE_BOOT",
        "tags": [
          "Boot0002"
        ],
        "measurement": "f0fb2cdcc47bf204b41a858f6878b5809c3a9bf6acbd5c4a130f666937a710070c5cf959d3b59c8007b6e63018097d9a"
      },
      {
        "type_id": "0x80000007",
        "type_name": "EV_EFI_ACTION",
        "tags": [
          "Calling EFI Application from Boot Option"
        ],
        "measurement": "77a0dab2312b4e1e57a84d865a21e5b2ee8d677a21012ada819d0a98988078d3d740f6346bfe0abaa938ca20439a8d71"
      },
      {
        "type_id": "0x4",
        "type_name": "EV_SEPARATOR",
        "measurement": "394341b7182cd227c5c6b07ef8000cdfd86136c4292b8e576573ad7ed9ae41019f5818b4b971c9effc60e1ad9f1289f0"
      },
      {
        "type_id": "0x80000003",
        "type_name": "EV_EFI_BOOT_SERVICES_APPLICATION",
        "measurement": "f521646c3189e90b4b441ddea97816c5b95fa8c57e7272fb6592d0e60df841bcf6d2ca071803e39141f5ffeaac594cfe"
      },
      {
        "type_id": "0x80000003",
        "type_name": "EV_EFI_BOOT_SERVICES_APPLICATION",
        "measurement": "7812329bfd8e277fa66273bd79a7549bc6b594c225291271e717e357e11742c9aa2d6efd2e3ff2274fc407ed10d64f5a"
      },
      {
        "type_id": "0x80000007",
        "type_name": "EV_EFI_ACTION",
        "tags": [
          "Exit Boot Services Invocation"
        ],
        "measurement": "214b0bef1379756011344877743fdc2a5382bac6e70362d624ccf3f654407c1b4badf7d8f9295dd3dabdef65b27677e0"
      },
      {
        "type_id": "0x80000007",
        "type_name": "EV_EFI_ACTION",
        "tags": [
          "Exit Boot Services Returned with Success"
        ],
        "measurement": "0a2e01c85deae718a530ad8c6d20a84009babe6c8989269e950d8cf440c6e997695e64d455c4174a652cd080f6230b74"
      }
    ]
  },
  {
    "rtmr": {
      "index": 3,
      "bank": "SHA384"
    },
    "rtmr_events": [
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "MokList"
        ],
        "measurement": "4793c2425df6a882daddd56a80a155a293a2271977680c51d8a0c0bcc9a7d45121ed4e70aac92a840b80c3a479a156b2"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "MokListX"
        ],
        "measurement": "80ee2571334a57bf90238d21964447e542079d4805fa87887817a97dcb720906683a09b1ac634c76c0c0be1177f76110"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd set pager=1"
        ],
        "measurement": "541610ba1bed91de4f8c36d97ec689d7497ef6c243187c3f3fd1e1ba6add24654dd4dd768419b04e4ef354607d4f78a7"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [ -f (hd0,msdos2)/EFI/centos/grubenv ]"
        ],
        "measurement": "6bd904d5d3ca9ca93f43c23a24ae804afbcc79bda1ea7132ebfbe7d695854fbe7f857aac49dc4cc31af6f2420a7a3364"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd load_env -f (hd0,msdos2)/EFI/centos/grubenv"
        ],
        "measurement": "9aa6f93256a56229e5227b064940573579bfa424bcee196057e7f76cf0941518ad49e9d908a51fa1ef2c74c628e6a7c0"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [  ]"
        ],
        "measurement": "ed6c2151b8752cebfcc22c918c46d145b2bcadc7ab2613375075ac2d710d99569fad1b72afe4d39d514b26902e6acc47"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd set default=4a89044d00b241d18f4b84dff9ce1568-5.15.0-spr.bkc.pc.8.8.5.x86_64"
        ],
        "measurement": "a32d494d28e5c0264732dace2a87dd20feb4ff3d7f4166f627faf2fd7b79341c6c3d4ab8beb5f6af8c07a83fbe097bf9"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [ xy = xy ]"
        ],
        "measurement": "abfd87916395ba336c8493c6609014c188eb8ae02bad29420f43063053511e1b853d73b2c2fc5ff1ad6c6a9df9efac63"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd menuentry_id_option=--id"
        ],
        "measurement": "a3551c6a27b846cd634f6d2a67d1c0f7ea39d752a5988c209555418267d9445336207edfabe8e7d589cb312f122cf22d"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd export menuentry_id_option"
        ],
        "measurement": "6cbdaeef168b42d6332b4cdb73e8cd06f99ae41296618f7213bfab7cec309ea341bda3a89ba7b989517fc90b7df63b19"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [  ]"
        ],
        "measurement": "ed6c2151b8752cebfcc22c918c46d145b2bcadc7ab2613375075ac2d710d99569fad1b72afe4d39d514b26902e6acc47"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd serial --speed=115200"
        ],
        "measurement": "233d550cd9df99b4c8640a9b03f3b8bd9c46daf5383e18bd3e1a0ab8a174bdf87d1af23752b74cb6514ca621af1b4f9b"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd terminal_input serial console"
        ],
        "measurement": "b82b65b3fe686030161566f1e957b4f3daa701a910f6f494eb1f09960f069f94c3f807def70e4035bff6b11ba84e3ecc"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd terminal_output serial console"
        ],
        "measurement": "723c4eb5b66d71b4c4479d27fc0d1ef7350856f91485058d332a5637328dac4d9d07e68c14f5ecd6e58f8a3b5b5c80d3"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [ xy = xy ]"
        ],
        "measurement": "abfd87916395ba336c8493c6609014c188eb8ae02bad29420f43063053511e1b853d73b2c2fc5ff1ad6c6a9df9efac63"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd set timeout_style=menu"
        ],
        "measurement": "9050f208cac2b78d1ff0fad5f8e59b5869beabc2129b7bd17b5b16f0d28c929704a70630060ea4acf968f15ad226daa4"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd set timeout=5"
        ],
        "measurement": "aa07db3884436937829a0f709ca29a20b1118d744936bf18cfee4f05c9e14e677905c06df2cccf16d0d9fb7d0971c88d"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd set tuned_params="
        ],
        "measurement": "e7398a8d0b8c3656d53b8173b6844a193dc79f76072c157fae7e76cdd63b9396a0cde2897f6d1c0f5c2765c95b4fe26a"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd set tuned_initrd="
        ],
        "measurement": "3a74cde705411602dcf2350d8cda85954eb9cc2fe74f39d0aa0a9d4d42d121a4b81227cf6b26d0e4c0e6fa1e5d0ede46"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [ -f (hd0,msdos2)/EFI/centos/user.cfg ]"
        ],
        "measurement": "e1b84d6dbc88c7d6ca04ec2debcbb4b391801ae7251fc7c6144be58ff9b7434c382f09c9c34de59471601a2937c2bc45"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd insmod increment"
        ],
        "measurement": "f6e32f8a184ac29e78be95a10d8ce9206318645ae6c5e7a9a753c94c1f8e1fa409ab318ca8d0fdb18091d91305ed07a2"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [ -n  -a 0 = 0 ]"
        ],
        "measurement": "765405cb564cfdbad5cd346e6ef6a57e7c7a82b594f7e31e055b2b119c78747f37795487332e0c6a7a4718cfae6d600c"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd insmod part_msdos"
        ],
        "measurement": "172e792a3c930cafd3bce3da4b61bf3b445344219e0d05028cb2e21573cf1a12ab42265bc0a23f9838b48d8907dfaab1"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd insmod ext2"
        ],
        "measurement": "44adf16d5b9fb7e2fdae89adbe097c246baa5bd35ea09026cdf9c990b21a1716e03ae357e8f094650ac7b4e23526d934"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd set root=hd0,msdos3"
        ],
        "measurement": "9a9c5d39a46dc20245728764ee33dc54d1df1905899c42afb1a9e840f28691948498f3f83d629ddb1dfdef82a917ef9f"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [ xy = xy ]"
        ],
        "measurement": "abfd87916395ba336c8493c6609014c188eb8ae02bad29420f43063053511e1b853d73b2c2fc5ff1ad6c6a9df9efac63"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd search --no-floppy --fs-uuid --set=root --hint=hd0,msdos3 9485ea18-42e3-4f1b-b8c1-82789d37f527"
        ],
        "measurement": "db46cd68cc56b9012931dfd5f2c355e9e371ed4ffaca51463b4f2a920ecd63ca373563b78413d36209fef8ccccc64902"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd insmod part_msdos"
        ],
        "measurement": "172e792a3c930cafd3bce3da4b61bf3b445344219e0d05028cb2e21573cf1a12ab42265bc0a23f9838b48d8907dfaab1"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd insmod ext2"
        ],
        "measurement": "44adf16d5b9fb7e2fdae89adbe097c246baa5bd35ea09026cdf9c990b21a1716e03ae357e8f094650ac7b4e23526d934"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd set boot=hd0,msdos3"
        ],
        "measurement": "2fda3216b4c817f45b356a0d3657a4d709f4babb582cfd50ed1e93e16d53b621c69f66444812816300049a9fc1252413"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [ xy = xy ]"
        ],
        "measurement": "abfd87916395ba336c8493c6609014c188eb8ae02bad29420f43063053511e1b853d73b2c2fc5ff1ad6c6a9df9efac63"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd search --no-floppy --fs-uuid --set=boot --hint=hd0,msdos3 9485ea18-42e3-4f1b-b8c1-82789d37f527"
        ],
        "measurement": "dd66036a5521ce7248d6f596015f17c3e3e18b85735f78cab40432f66c89105ccd0ac95d4a4b839ab490105f8f06a076"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [ -z root=UUID=9485ea18-42e3-4f1b-b8c1-82789d37f527 ro crashkernel=auto selinux=0 console=ttyS0,115200  ]"
        ],
        "measurement": "03afcd2fe59e46bb88f507f2f7587236112117ccfdb14e80587b967e7d36550aa25bf07c82671e8f1d615531f684035c"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd insmod blscfg"
        ],
        "measurement": "20e74f04f6c6690600634d1071b2d0c7df6b1d20cffd8ed916f4a391a7872f68e8299127442bdd51617674b04998666d"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd blscfg"
        ],
        "measurement": "134200ae62ba8c93d6ddf14bb15161067c1f3882d166ccb9077d698443fc4ade8bcbd9f69a3deb02cc652d540ea3a99f"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [ 0 = 1 -o  = 1 ]"
        ],
        "measurement": "c0ce14ffa31741acdf895a752f3450a38b2072e22e773f05508fb33e9cf0138907dde4f724cb3ddb2a128a96eed470cf"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd set menu_hide_ok=0"
        ],
        "measurement": "cd81327d6b6b3d0cd70dda916c12f8df02ddf1f251d53721f60a20d8bc8821c48b209bdccc44ffe645193d2cc85dfc3a"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [ 0 = 1 ]"
        ],
        "measurement": "4c09d89df2f1fc4144192fce1ed0d499ee8a825c195710fd1f6cfce2b78d447696ae976f02065785da54660818a341a0"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [  = 1 ]"
        ],
        "measurement": "9232e2efad224807177491aa665b60c5a9905aba0119fdfe43f87f0a87147c6d0495b2412870f5d2124a5fdf16f1b8d6"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd set boot_success=0"
        ],
        "measurement": "4c8ffd4bb6067d7d288b4b19d6c496d036468bb6f1139d0ba47a7b62572b85cf31d922666e4c7975137ea36721c50016"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd save_env boot_success boot_indeterminate"
        ],
        "measurement": "19a9c0cdc635cd16f5e2b6f7f14f8f6114f987ca8fa466c22a9e1baa4cc0b19f344135debde1400e6a2a5ed236a37ab5"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [ -f (hd0,msdos2)/EFI/centos/custom.cfg ]"
        ],
        "measurement": "aa9e39816b1535dd265000eb34ae1c60397f60149c33fed7acbba780e5228340dd8dccb4a044b54015b48e768fa6cdd4"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [ -z (hd0,msdos2)/EFI/centos -a -f (hd0,msdos2)/EFI/centos/custom.cfg ]"
        ],
        "measurement": "ec9a481c52d4ac703639903ef65932c1a0b4399118324667cfa860ede64ea22fb81ec2574be3086315c86e86fc6f4162"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd load_video"
        ],
        "measurement": "aa7a659b9b166fa2a50936ffcf937984828a7ccb864239d6c73683ee216088ac103f0988e668293a140ba7f5049ebb17"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd [ xy = xy ]"
        ],
        "measurement": "abfd87916395ba336c8493c6609014c188eb8ae02bad29420f43063053511e1b853d73b2c2fc5ff1ad6c6a9df9efac63"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd insmod all_video"
        ],
        "measurement": "d3f2edb62f6e652681db7dd3ca50d98e6755c1336bc99c70fae4486215bdc2665e0aa6d8728fa1e37a5befecac7d6354"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd set gfx_payload=keep"
        ],
        "measurement": "99d55f94c0d9e8c9f2a570b2543f449f67d78e8e35222920ab305d438d6e1f7e0ba2424497f617fe74adaefa2f1ff685"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd insmod gzio"
        ],
        "measurement": "af8eab8c8a4ce406f93153ad019b061ab90b75185ee4061c43dfaf75d668ad97b6cfa3d41e77d15652b6be8a13f78b9f"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd linux (hd0,msdos3)/boot/vmlinuz-5.15.0-spr.bkc.pc.8.8.5.x86_64 root=UUID=9485ea18-42e3-4f1b-b8c1-82789d37f527 ro crashkernel=auto selinux=0 console=tty0 console=ttyS0,115200n8 earlyprintk=ttyS0,115200 intel_iommu=on,sm_on tdx_host=on numa_balance=0"
        ],
        "measurement": "99e0cb85aeebf63658dccc8454a44621eaea6fe9d669aef00131d68f7f85c02eabfb4ce0f2639d0db913d2bffdaabee6"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_linuxefi Kernel"
        ],
        "measurement": "76951b44915c8b802f4359a401372b88827c6d1b89bfc98a98f0703eb6ae7bb84169511d4ac4b9ad1795387e46c2bec0"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_kernel_cmdline (hd0,msdos3)/boot/vmlinuz-5.15.0-spr.bkc.pc.8.8.5.x86_64 root=UUID=9485ea18-42e3-4f1b-b8c1-82789d37f527 ro crashkernel=auto selinux=0 console=tty0 console=ttyS0,115200n8 earlyprintk=ttyS0,115200 intel_iommu=on,sm_on tdx_host=on numa_balance=0"
        ],
        "measurement": "46347d9a596ca1c237d074607b51532e142aaf59774415f9f78d7c8d171c51da710ed01c0945454ff2404e5cbbc52529"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_cmd initrd (hd0,msdos3)/boot/initramfs-5.15.0-spr.bkc.pc.8.8.5.x86_64.img"
        ],
        "measurement": "abc32ccd0b1c87f0e6bc9e02aa8e98b44fa1621b5c0ceb27e809eb02bd96c9af2862d3a49660f6ec0efef85c49d10d03"
      },
      {
        "type_id": "0xd",
        "type_name": "EV_IPL",
        "tags": [
          "grub_linuxefi Initrd"
        ],
        "measurement": "fd36c3015c42dd8ec3762a1418cd6b7c6691bb0c4794868a4ef4d58771ed2759644e0cb1e15938e7daa55c31e1da94f4"
      }
    ]
  }
]
mythi commented 5 months ago

here is the JSON format for event log:

is this the format ITA accepts? Do you have the documentation what the different fields are about (e.g., tags)?

arvind5 commented 5 months ago

is this the format ITA accepts? Do you have the documentation what the different fields are about (e.g., tags)?

yes, this is the format ITA accepts. Here is the mapping from TCG_PCR_EVENT2 struct:

rtmr.index field maps to pcrIndex field
rtmr.bank field maps to digests.hashAlg field
rtmr_event.type_id maps to eventType value (e.g., 0x80000001)
rtmr_event.type_name maps to eventType label (e.g., EV_EFI_VARIABLE_DRIVER_CONFIG)
rtmr_event.measurement maps to digests.digest field
rtmr_event.tags maps to event data (e.g., SecureBoot)

image

mythi commented 5 months ago

@arvind5 thanks!

mythi commented 4 months ago

@arvind5 did you update any docs/readme for this?

arvind5 commented 3 months ago

@arvind5 did you update any docs/readme for this?

We have updated Intel Trust Authority API docs to capture the format. Just checked it's not released yet, reopening the issue.