GithubHelp home page GithubHelp logo

bar18_avatar2's Introduction

bar18_avatar2

This repository contains the examples described in "Avatar²: A Multi-target Orchestration Platform" [1], which is available here.

It comes with a handy Vagrantfile, which sets up an avatar² environment with everything needed to dive into the examples right ahead. However, if you don't feel like having built anything from scratch, we also provide an already set up vagrant box on app.vagrantup.com, which can be checked out with vagrant init avatar2/bar18_avatar2.

However two out of the three examples require dedicated hardware, while the third example requires some manual setup - all of this is described in more detail below.

Examples

01_harvey

This example replicates the proof-of-concept I/O Interception implementation of Harvey, a rootkit for Programmable Logic Controllers (PLCs) presented in [2]. This example requires the presence of an Allen Bradley CompactLogix 5370 with an attached JTAG-Debugger.

The scripts in this repository are developed against model version 1769-L16ER-BB1B of the plc, firmware version 30.012 and the usage of an SEGGER JLINK as debugger. Other configurations will likely require minimal changes to the scripts in this repository.

02_firefox

This examples finds a bug artificially inserted into firefox 52.0, by utilizing avatar² to execute firefox concretely inside gdb and copying this concrete state into angr [3] at an interesting function, while symbolizing some of the function arguments.

It doesn't come with any hardware dependencies, however as compiling firefox requires a reasonable amount of time, we are hosting a pre-compiled version of firefox externally, which gets downloaded and extracted by the bootstrap.sh script. However, we also include a script for automatically building firefox with the inserted bug from source at 02_firefox/build_firefox.sh.

For running the actually example, X forwarding has to be enabled to prevent firefox from not finding a display during startup: vagrant ssh -- -X Furthermore, firefox should be at least run once before starting the analysis, in order to disable the check for using firefox as default browser.

03_panda_rr

This example demonstrates the orchestration and memory forwarding capabilities of avatar². It utilizes PANDA [4] to create a record of a firmware's execution during partial emulation, which then can be replayed without the need of having the physical device attached anymore.

For replicating this example, a NUCLEO STM32L152RE development board is required. The firmware.bin used here is the same as in the Nucleo-L152RE example and needs to be flashed on the device beforehand.

References

[1] M. Muench, D. Nisi, A. Francillon, D. Balzarotti. "Avatar²: A Multi-target Orchestration Platform." Workshop on Binary Analysis Research, San Diego, California, February 2018.

[2] L. Garcia, F. Brasser, M. H. Cintuglu, A. R. Sadeghi, O. Mohammed, S. A. Zonouz. "Hey, my malware knows physics! attacking plcs with physical model aware rootkit." Network & Distributed System Security Symposium, San Diego, California, February 2017.

[3] Y. Shoshitaishvili, R. Wang, C. Salls, N. Stephens, M. Polino, A. Dutcher, J. Grosen, S. Feng, C. Hauser, C. Kruegel, G. Vigna. "SoK: (State of) The Art of War: Offensive Techniques in Binary Analysis." IEEE Symposium on Security and Privacy, San Jose, California, May 2016.

[4] B. Dolan-Gavitt, J. Hodosh, P. Hulin, T. Leek, R. Whelan. "Repeatable Reverse Engineering with PANDA." Program Protection and Reverse Engineering Workshop, Los Angeles, California, December 2015.

bar18_avatar2's People

Contributors

mariusmue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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