zhengyangruc / dolma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 78.7%Language:Python 14.2%Language:C 3.9%Language:Assembly 1.5%Language:Hack 0.5%Language:HTML 0.3%Language:Shell 0.2%Language:CMake 0.2%Language:M4 0.2%Language:Makefile 0.1%Language:Perl 0.1%Language:Fortran 0.0%Language:SuperCollider 0.0%Language:Roff 0.0%Language:Scala 0.0%Language:Vim Script 0.0%Language:sed 0.0%Language:Awk 0.0%Language:Java 0.0%Language:VBA 0.0%Language:Emacs Lisp 0.0%Language:Forth 0.0%Language:SWIG 0.0%Language:Objective-C 0.0%