Giter Club home page Giter Club logo

dolma's Introduction

DOLMA

This is the source code for our USENIX Security paper "DOLMA: Securing Speculation with the Principle of Transient Non-Observability". DOLMA is a defense against transient execution attacks, implemented in the gem5 simulator. When using code from this repository, please be sure to cite the paper.

We recommend compiling and running this code on Ubuntu 20.04, as that's where we've tested our setup. However, you may be able to compile and run on Ubuntu 18.04. See this document for the differences in gem5 dependencies on Ubuntu 20.04 versus 18.04.

To install the necessary dependencies on Ubuntu 20.04, run ./install_dependencies_ubuntu20.sh from the repo's top level directory (requires sudo). For Ubuntu 18.04, run , ./install_dependencies_ubuntu18.sh.

To compile DOLMA, run python2 $(which scons) -j$(nproc) build/X86_MESI_Two_Level/gem5.opt from the repo's top level directory.

The attacks we used to test DOLMA's security, along with usage instructions, can be found in attacks/. These can be used to verify DOLMA's availability, functionality, and reproducibility during artifact evaluation. See also artifact_evaluation/README.md.

Changes to gem5

Most of the changes made for DOLMA can be found in src/cpu/o3/. At a high level, they include adding the infrastructure for tracking speculative status and enforcing restricted execution for unsafe micro-ops. A good place to start is src/cpu/base_dyn_inst.hh, as this file contains the additional status flags for instructions added by DOLMA. Note that a few changes are also made in src/mem/ in order prevent unsafe memory ops from modifying the cache hierarchy. All in all, git grep -il dolma should reveal most/all of the files we changed.

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.