Git Product home page Git Product logo

hertzbleed's Introduction

Overview

This repository contains the source code to reproduce the experiments of the paper:

NB: This source code is CPU-specific.

Tested Setup

The code of this repo was fully tested on a bare-metal machine with an Intel i7-9700 CPU. The machine was a stock Dell machine, running Ubuntu 20.04. We do not guarantee that this code works in virtualized environments, on other CPUs, on custom machines, or with other operating systems. Running this code on other CPUs (e.g., see the paper for a table with the models we tested), will likely require changing some of the code.

Materials

This repository contains the following materials:

  • 01-leakage-channel-workloads: contains the code that we used to test if the scaling of P-states leaks information about the current workload (Figure 1).
  • 02-leakage-channel-data: contains the code that we used to test if the scaling of P-states leaks information about the data being processed (Figure 2).
  • 03-leakage-model-hd: contains the code that we used to test the HD leakage model (Figures 4, 14).
  • 04-leakage-model-hw: contains the code that we used to test the HW leakage model (Figures 5-7, 15-17).
  • 05-leakage-model-hd_hw: contains the code that we used to test the additivity of HD and HW (Figure 8).
  • 06-circl: contains the code that we used to perform the SIKE attack on the circl library.
  • 07-pqcrypto: contains the code that we used to perform the SIKE attack on the pqcrypto-sidh library.
  • 08-kaslr: contains the code that we used to perform the timer-free KASLR break.
  • 09-cc: contains the code that we used to test a timer-free covert channel.
  • scripts: contains scripts that can be used to run all the leakage model experiments and parse their results.
  • util: contains scripts that can be used to run all the leakage model experiments and parse their results.

We suggest that you run these experiments in order (from 01 to 09). In the paper, we ran some experiments in two setups: with the default system configuration (Turbo Boost on) or with the P-state capped at the base frequency (Turbo Boost off). We provide the scripts to switch between these 2 setups in the scripts folder.

Preliminaries

  • Install stress-ng using sudo apt install -y stress-ng.
  • Set up a Python virtual environment as follows:
virtualenv -p python3 venv
source venv/bin/activate
pip install seaborn

Citation

If you make any use of this code for academic purposes, please cite the paper:

@inproceedings{wan2022hertzbleed,
    author = {Yingchen Wang and Riccardo Paccagnella and Elizabeth He and Hovav Shacham and Christopher W. Fletcher and David Kohlbrenner},
    title = {Hertzbleed: Turning Power Side-Channel Attacks Into Remote Timing Attacks on x86},
    booktitle = {Proc.\ of the USENIX Security Symposium (USENIX)},
    year = {2022},
}

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.