Skip to content

CreateRemoteThread/sparkgap

Repository files navigation

sparkgap

Sparkgap is a set of scripts and a python library to assist in hardware control and execution of side channel and fault injection attacks. It includes the following components:

  • lib/: the sparkgap library
  • emu/: targets and loaders for software (rainbow) emulated attacks
  • analysis tools:
  • utilities:
    • capturebuddy.py: helper to capture data from different frontends
    • plot.py: inspect captured waves, plot various aspects of them for manual analysis
    • traceutil.py: trace-set manipulation utility (e.g. join hdfs, split, etc)
    • preprocessor.py: scripted preprocessor engine for aligning and noise removal
  • experiments/
    • *.cmd: preprocessor scripting files
    • files in here are work in progress, and may arbitrarily not work / brick things

This can be installed like a standard Python library:

python3 -m pip install -r requirements.txt
cd lib/
python3 setup.py install --user

The code is provided as-is, pull requests welcome :)