Git Product home page Git Product logo

cross-vm-side-channel's Introduction

Cross VM Side Channel Attack using L1 I-Cache

Checking out repository

$ git clone https://github.com/aditya-wate/cross-vm-side-channel.git

Steps to compile the code

libsync compilation
  1. Navigate to 'sync' directory from repo root

$ cd sync

  1. Execute Makefile

$ make

  1. It will generate a dynamic library 'libsync.so'. Copy it to '/usr/local/lib.' Also copy the header file to the include directory

$ sudo cp libsync.so /usr/local/lib
$ sudo cp sync.h /usr/include

modular exponentiation compilation
  1. Navigate to 'cross-vm' directory from repo root

$ cd cross-vm

  1. Execute Makefile

$ make

Running the code to collect data
  1. libsync library requires label file location. Environment variable LABEL_FILE should be set first.

$ export LABEL_FILE=<location of the file>

  1. Run the spy binary

$ ./spy

This will generate a label file as specified in step 1, also a binary file namee 'timings.bin' in the current directory.

The number of times the spy needs to be executed should be set in measurement.c. Change the value of const int n on line # 11 to the number of times the prime and probe process needs to be executed. Change the value of op->e on line # 68 to change the exponent value.

Northeastern University, 2016.

Note: The header files in cross-vm/include has been reused from a similar paper for ARM architecture(http://daim.idi.ntnu.no/masteroppgaver/009/9231/masteroppgave.pdf).

cross-vm-side-channel's People

Contributors

aditya-wate avatar

Watchers

 avatar  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.