GithubHelp home page GithubHelp logo

fgsect / em-fault-it-yourself Goto Github PK

View Code? Open in Web Editor NEW
10.0 7.0 2.0 3.52 MB

EM-Fault It Yourself: Building a Replicable EMFI Setup for Desktop and Server Hardware

License: GNU General Public License v3.0

Python 20.44% JavaScript 1.34% CSS 0.34% HTML 3.18% C 74.70%
electromagnetic fault injection emfi

em-fault-it-yourself's Introduction

EM-Fault It Yourself

This repository contains supplementary hardware design files and software to our paper EM-Fault It Yourself: Building a Replicable EMFI Setup for Desktop and Server Hardware. You can view it as a starting point to build your own customizable and open-source electromagnetic fault injection setup.

  • emfi_station/ contains the main controller software
  • marlin/ contains Marlin configuration files
  • hardware/ contains hardware design files for 3D-printable parts

Detailed information can be found in the README.md files of the subdirectories.

Software

The main controller software is a Python package called emfi_station. It provides a web interface to control the XYZ stage, watch camera and sensor data and orchestrate complete electromagnetic fault injection attacks. To install the package clone this repository and run pip:

git clone 
pip install .

You can run EMFI Station using the command line:

usage: emfi-station [-h] [-i HOST] [-p PORT] [-s] [-a ATTACK_DIR] [-l LOG_DIR] [--marlin MARLIN] [--cal_cam CAL_CAM] [--pos_cam POS_CAM] [-v]

EMFI Station - Orchestrate electromagnetic fault injection attacks

options:
  -h, --help            show this help message and exit
  -i HOST, --host HOST  hostname or ip address
  -p PORT, --port PORT  http port (websocket port = http port + 1)
  -s, --simulate        simulate connection to Marlin
  -a ATTACK_DIR, --attack_dir ATTACK_DIR
                        attack scripts directory
  -l LOG_DIR, --log_dir LOG_DIR
                        log files directory
  --marlin MARLIN       (vendor_id, product_id) of Marlin board
  --cal_cam CAL_CAM     (vendor_id, product_id) of calibration camera
  --pos_cam POS_CAM     (vendor_id, product_id) of positioning camera
  -v, --verbosity       enable info log level

Attack Scripts

The EMFI Station has an interface in the form of an Attack base class (attack.py) to allow easy integration of task/attack scripts. Your own task/attack class should inherit from the base class and implement the required methods. Each class should have its own file and a unique name (name() method). You can specify a folder containing attack scripts in the command line parameters.

Troubleshooting

If you experience a select timeout while running EMFI Station under Raspbian, please try to adjust the quirks parameter of the uvcvideo kernel module:

rmmod uvcvideo
modprobe uvcvideo quirks=0x80

em-fault-it-yourself's People

Contributors

niclasku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

seasox

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.