Skip to content

A1exSt/fuckshitfuck

 
 

Repository files navigation

Side Channels 'n' Stuff

Just for fun

The fuckshitfuck toolkit is a repository of code used for side channel acquisition, preprocessing and analysis, similar to the ChipWhisperer, but written ground-up as an (extremely successful) learning exercise.

This toolkit comprises:

  • Acquisition:
    • ./grab3.py, for acquisition from picoscope scopes
    • ./rigol-new.py, for acquisition from rigol scopes
    • ./grab-smartcard.py, for pcsc+picoscope acquisition from smartcards
  • Preprocessing:
    • ./preprocessor.py, for temporal alignment of traces
  • Analysis:
    • ./cpa.py, a multi-model tool for correlation analysis
    • ./dpa.py, a multi-model tool for differential analysis
    • ./plot.py, a simple matplotlib-based tool to view sets of traces
    • ./tlva.py, an implementation of non-specific welch's t-test leak detector

Note the correlation and differential analysis front-ends are now decoupled from the leakage modelling back-ends - models can be found in support/attack.py. cpa.py and dpa.py typically do not need to be changed to analyze traces using different leakage hypotheses.

Some test targets are provided in target/ and pictarget-3.X/

The code is provided as-is, pull requests and feature requests are welcome.

About

Magneto was right, side channel is fun.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 54.7%
  • C 37.0%
  • Makefile 6.5%
  • Other 1.8%