Giter VIP home page Giter VIP logo

perry-experiments's Introduction

Perry Experiments

This directory contains the data required to reproduce the experiments described in our USENIX 2024 paper: A Friend's Eye is A Good Mirror: Synthesizing MCU Peripheral Models from Peripheral Drivers.

For driver source code we used in our experiments, please refer to this repo.

Requirements

Hardware Dependencies

  • Processor: We used two Intel Xeon E5-2620 v2 CPUs (12 cores, 24 threads). Comparable hardware may also suffice.
  • Memory: At least 64GB of RAM
  • Bluetooth: The machine must be equipped with a Bluetooth device to replicate 04-cve-reproducing

Software Dependencies

  • OS: We used Ubuntu 20.04. Other systems are not tested.
  • Misc: git and Docker

Preparations

It is assumed that you have built Perry with Docker as described here. All experiments should be conducted within the built container (execute /perry/run_docker.sh to launch a shell). This repository will be located under the /root/perry-experiments directory within the container.

Directory Layout

Directories/Files Experiment
01-efficiency Model synthesis time consumption as described in Section 5.2 ("Efficiency")
02-consistency P2IM unit tests passing rate as described in Section 5.2 ("Consistency" and "Scalability")
03-universality Emulating various firmware samples as described in Section 5.2 ("Universality" and "Scalability")
spec-violation-bugs.md The specification violation bugs we found in drivers as described in Section 6.1
04-cve-reproducing Reproducing firmware CVEs as described in Section 6.2 ("CS-II")
05-liteos-fuzzing Fuzzing LiteOS as described in Section 6.2 ("CS-III")
pre-generated-models Hardware models generated by Perry

Running the Experiments

Please refer to the README files in 01-efficiency, 02-consistency, 03-universality, 04-cve-reproducing and 05-liteos-fuzzing for detailed instructions.

Note that experiment 02-consistency and 05-liteos-fuzzing depends on hardware models generated in 01-efficiency. Hardware model generation takes ~20 hours. To facilitate reproduction, we provide pre-generated hardware models under the pre-generated-models folder.

Badges

perry-experiments's People

Contributors

voodoochild99 avatar

Stargazers

 avatar

Watchers

 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.