GithubHelp home page GithubHelp logo

ruomengh / cc-measure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cc-api/cc-measure

0.0 0.0 0.0 16 KB

Gather and verify event logs and measurement for confidential computing

License: Apache License 2.0

Python 94.32% Shell 5.68%

cc-measure's Introduction

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.

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 cc-measure
$ 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
    

cc-measure's People

Contributors

ruomengh avatar wenhuizhang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.