Giter Club home page Giter Club logo

primeprobe's Introduction

prime+probe code targeting a given physical address

Basically our code for prime+probe cache attack is a simplified version of the code from the paper: Last-Level Cache Side-Channel Attacks are Practical.

Within the threat model of SGX the attacker can know the physical address of a target virtual address, as such in our code we provide a parameter for the targeted physical address (-a option). However you may need to write a kernel module to get the physical address for a target virtual address.

We have performed the attack against libgcrypt (the attached source files.) Also we verifed the attack on an unmodifed version of libgcrypt with the help of graphene-SGX. The target virtual address will be the address of the function mpih_sqr_n_basecase.

Attention should be paid to the cache slice mapping which is hardcoded in function getslicemapping(...) of newattack.c. Our testbed is equipped with an i7-6700k processor with hyperthreading enabled. It is likely to work for other processors with 4 physical cores when hyperthreading is turned on.

If hyperthreading is turned off or not supported, you may try other configurations provided in the paper (e.g. the first pair of h1 and h0). I am not sure about the slice mapping for processors with 6 cores supporting SGX.

sudo ./newattack -a $physical_address

primeprobe's People

Contributors

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