Skip to content

bdlmt/remill

 
 

Repository files navigation

Remill

Remill is a static binary translator that translates machine code instructions into LLVM bitcode. It translates x86 and amd64 machine code (including AVX and AVX512) into LLVM bitcode. AArch64 support is underway.

Remill focuses on accurately lifting instructions. It is meant to be used as a library for other tools, e.g. McSema.

Build Status

master
Linux Build Status

Additional Documentation

Getting Help

If you are experiencing undocumented problems with Remill then ask for help in the #binary-lifting channel of the Empire Hacking Slack.

Supported Platforms

Remill is supported on Linux platforms and has been tested on Ubuntu 14.04 and 16.04.

We are actively working on porting Remill to macOS.

Dependencies

Most of Remill's dependencies can be provided by the cxx-common repository. Trail of Bits hosts downloadable, pre-built versions of cxx-common, which makes it substantially easier to get up and running with Remill. Nonetheless, the following table represents most of Remill's dependencies.

Name Version
Git Latest
CMake 3.2+
Google Flags 2.2.0
Google Log 0.3.4
Google Test 1.8.0
LLVM 3.5+
Clang 3.5+
Intel XED 2016-02-02
Python 2.7
Unzip Latest

Getting and Building the Code

On Linux

First, update aptitude and get install the baseline dependencies.

sudo apt-get update
sudo apt-get upgrade

sudo apt-get install \
     git \
     python-pip \
     build-essential \
     realpath

Next, clone the repository. This will clone the code into the remill directory.

git clone [email protected]:trailofbits/remill.git

Next, we build Remill. This script will create another directory, remill-build at the same level as the remill directory. All remaining dependencies needed by Remill will be built in the remill-build directory.

./remill/scripts/build.sh

Next, we can install Remill. Remill itself is a library, and so there is no real way to try it. However, you can head on over to the McSema repository, which uses Remill for lifting instructions.

cd ./remill-build
sudo make install

We can also build and run Remill's test suite.

cd ./remill-build
make build_x86_tests
./cmake-3.2.0-Linux-x86_64/bin/ctest

About

Machine code to LLVM binary translator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 89.1%
  • Assembly 9.1%
  • C 0.7%
  • Python 0.6%
  • CMake 0.4%
  • Shell 0.1%