GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cc-api/tdx-measure-python: Gather and verify event logs and measurement for confidential computing

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
tdxmeasure
tdxmeasure
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
__init__.py
__init__.py
 
 
requirements.txt
requirements.txt
 
 
setup.py
setup.py
 
 
setupenv.sh
setupenv.sh
 
 
tdx_eventlogs
tdx_eventlogs
 
 
tdx_rtmr
tdx_rtmr
 
 
tdx_tdquote
tdx_tdquote
 
 
tdx_verify_rtmr
tdx_verify_rtmr
 
 

Repository files navigation

CC Measurement Tool

The measurement tool runs within Confidential VM (CVM), such as TDX guest, to get measurement, event logs and replay event logs.

It supports Intel® TDX to get RTMR, event logs, Quote and verify RTMR. Find more details of RTMT and Quote in Intel® TDX Documentation.

The tool is implemented based on APIs from cc-trusted-api and SDK from cc-trusted-vmsdk.

Getting Started

It provides 4 commands as follows.

  • tdx_eventlogs: Get TD event logs, including both launch time and runtime event logs.
  • tdx_rtmr: Get TD RTMRs.
  • tdx_tdquote: Get TD Quote for remote attestation.
  • tdx_verify_rtmr: Replay event logs and verify the hash with RTMR values.

NOTE: The tool should be installed and run in a TDX guest with root permission.

Installation

Build and install CC Measurement Tool in a TDX guest.

$ cd tdx-measure-python
$ source setupenv.sh

Run the commands

  1. Get Event Logs.

    $ sudo ./tdx_eventlogs
    
    # Display event log in Canoical Event Logs (CEL) format.
    $ sudo ./tdx_eventlogs -f true
    
    # Display event logs from index 10.
    $ sudo ./tdx_eventlogs -s 10
    
    # Display 10 event logs from index 10.
    $ sudo ./tdx_eventlogs -s 10 -c 10
    

    The example output for the event log is example event logs output with IMA.

  2. Get TD Quote.

    NOTE: Make sure you have remote attestation environment setup on the host to get quote.

    $ sudo ./tdx_tdquote
    
    # Display quote in human friendly format.
    $ sudo ./tdx_tdquote -f human
    
  3. Get RTMR.

    $ sudo ./tdx_rtmr
    
  4. Verify the event logs.

    $ sudo ./tdx_verify_rtmr
    
  5. (Optional) Exit python virtual environment after running the commands.

    $ deactivate
    

About

Gather and verify event logs and measurement for confidential computing

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

6 stars

Watchers

9 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.